Click here to Skip to main content
15,899,679 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionHow to define the font types in xsl output. Pin
CodingLover14-Aug-08 0:06
CodingLover14-Aug-08 0:06 
QuestionHow to convert an xml file to sql table by C# ? Pin
kakaleyte13-Aug-08 21:22
kakaleyte13-Aug-08 21:22 
AnswerRe: How to convert an xml file to sql table by C# ? Pin
That's Aragon14-Aug-08 1:09
That's Aragon14-Aug-08 1:09 
GeneralRe: How to convert an xml file to sql table by C# ? Pin
kakaleyte14-Aug-08 1:22
kakaleyte14-Aug-08 1:22 
GeneralRe: How to convert an xml file to sql table by C# ? Pin
That's Aragon14-Aug-08 1:39
That's Aragon14-Aug-08 1:39 
AnswerRe: How to convert an xml file to sql table by C# ? Pin
kakaleyte14-Aug-08 1:40
kakaleyte14-Aug-08 1:40 
AnswerRe: How to convert an xml file to sql table by C# ? Pin
Cosby26-Aug-08 21:56
Cosby26-Aug-08 21:56 
QuestionHow to edit the single value in xml using xsl Pin
ThangamSundar13-Aug-08 18:31
ThangamSundar13-Aug-08 18:31 
Hai,
my xml format:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="PersonalDetails.xsl"?>

<!-- Edited by XMLSpy® -->
<PersonalDetails>
<Record>
<Name input="false">
<value>Saraswathi</value>
</Name>
<Address input="true">
<value>KML</value>
</Address>
<Age input="false">
<value>56</value>
</Age>
<Sex input="false">
<value>F</value>
</Sex>
<DOB input="false">
<value>24-07-1952</value>
</DOB>
</Record>

<Record>
<Name input="false">
<value>Latha</value>
</Name>
<Address input="false">
<value>KML</value>
</Address>
<Age input="false">
<value>28</value>
</Age>
<Sex input="false">
<value>F</value>
</Sex>
<DOB input="true">
<value>24-07-1980</value>
</DOB>
</Record>
<Record>
<Name input="false">
<value>hari</value>
</Name>
<Address input="false">
<value>KML</value>
</Address>
<Age input="false">
<value>58</value>
</Age>
<Sex input="true">
<value>M</value>
</Sex>
<DOB input="false">
<value>24-07-1950</value>
</DOB>
</Record>

</PersonalDetails>
And my xsl of that xml is:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>

<xsl:template match="/">
<html>
<body>
<h2>Personal Details</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="left">Name</th>
<th align="left">Address</th>
<th align="left">Age</th>
<th align="left">Sex</th>
<th align="left">DOB</th>
</tr>
<xsl:for-each select="PersonalDetails/Record">
<xsl:sort select="Name"/>
<tr>
<td>
<input type="text">
<xsl:attribute name="id">
<xsl:value-of select="Name"/>
</xsl:attribute>
<xsl:attribute name="name">
<xsl:value-of select="Name"/>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="value"/>
</xsl:attribute>

</input>
</td>
<td>
<xsl:value-of select="Address"/>
</td>
<td>
<xsl:value-of select="Age"/>
</td>
<td>
<xsl:value-of select="Sex"/>
</td>
<td>
<xsl:value-of select="DOB"/>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

I got the textboxes in the name field..
but the output(Name) didn't have the value....
QuestionXSD output (Enforcing XML Closing Tags) Pin
tranzformerz13-Aug-08 12:51
tranzformerz13-Aug-08 12:51 
AnswerRe: XSD output (Enforcing XML Closing Tags) Pin
tranzformerz13-Aug-08 13:44
tranzformerz13-Aug-08 13:44 
QuestionTransform to convert True to true? Pin
Ed K13-Aug-08 8:04
Ed K13-Aug-08 8:04 
QuestionHow to Add new Xml Node Pin
salmonraju13-Aug-08 2:57
salmonraju13-Aug-08 2:57 
AnswerRe: How to Add new Xml Node Pin
PIEBALDconsult13-Aug-08 18:13
mvePIEBALDconsult13-Aug-08 18:13 
QuestionHow to write a XSD for the xml have the node name have Full colon Pin
vicky0000013-Aug-08 1:04
vicky0000013-Aug-08 1:04 
QuestionXSLT stylesheets and Reporting Services Pin
Tracy N12-Aug-08 19:03
Tracy N12-Aug-08 19:03 
QuestionSome elements not showing any values [modified] Pin
Ekjon11-Aug-08 9:34
Ekjon11-Aug-08 9:34 
QuestionHelp Required Pin
kash_jack11-Aug-08 2:10
kash_jack11-Aug-08 2:10 
GeneralLoading various objects simultaneously Pin
AmitDey6-Aug-08 19:59
AmitDey6-Aug-08 19:59 
GeneralRe: Loading various objects simultaneously Pin
AmitDey6-Aug-08 21:38
AmitDey6-Aug-08 21:38 
QuestionLoop through XML Elements Pin
Illegal Operation6-Aug-08 16:38
Illegal Operation6-Aug-08 16:38 
AnswerRe: Loop through XML Elements Pin
Illegal Operation6-Aug-08 16:40
Illegal Operation6-Aug-08 16:40 
GeneralRe: Loop through XML Elements Pin
George L. Jackson7-Aug-08 9:06
George L. Jackson7-Aug-08 9:06 
QuestionOdd Occurrence Happening... Pin
myNameIsRon5-Aug-08 10:36
myNameIsRon5-Aug-08 10:36 
AnswerRe: Odd Occurrence Happening... Pin
led mike5-Aug-08 10:54
led mike5-Aug-08 10:54 
QuestionHow to combine two different xml schemas using ado.net Pin
abja3-Aug-08 23:03
abja3-Aug-08 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.