Click here to Skip to main content
15,905,504 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Using existing XSD with WebService Pin
Grimolfr12-Jul-05 6:12
Grimolfr12-Jul-05 6:12 
GeneralGetListItems in List web service and infopath Pin
Steven M Hunt7-Jul-05 3:45
Steven M Hunt7-Jul-05 3:45 
GeneralXML Binding with Java Pin
qadirchalla@yahoo.com6-Jul-05 7:53
qadirchalla@yahoo.com6-Jul-05 7:53 
GeneralRe: XML Binding with Java Pin
DavidNohejl6-Jul-05 10:23
DavidNohejl6-Jul-05 10:23 
GeneralRe: XML Binding with Java Pin
qadirchalla@yahoo.com6-Jul-05 11:04
qadirchalla@yahoo.com6-Jul-05 11:04 
GeneralRendering xforms in xslt Pin
korayyersel6-Jul-05 0:03
korayyersel6-Jul-05 0:03 
GeneralXML relational data Pin
Member 17770424-Jul-05 10:51
Member 17770424-Jul-05 10:51 
GeneralRe: XML relational data Pin
toujin4-Jul-05 14:06
toujin4-Jul-05 14:06 
Hi kiterjohnso

Assuming you're outputting HTML, this XSL should do the transformation you're after. Then you can use the ASP.NET XML web control to perform the XSLT transformation on the XML file server side.

<?xml version = "1.0"?>
<xsl:stylesheet version = "1.0"
xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
<xsl:template match = "NewDataSet">

<table border = "2">

<xsl:for-each select = "Data">

<xsl:variable name = "Analysis_ID">
<xsl:value-of select = "Analysis_ID"/>
</xsl:variable>

<xsl:variable name = "Station_ID">
<xsl:value-of select = "Station_ID"/>
</xsl:variable>

<xsl:variable name = "Demographic_ID">
<xsl:value-of select = "Demographic_ID"/>
</xsl:variable>

<tr>
<td>
<xsl:value-of select = "../Analysis[ID =

$Analysis_ID]/Description"/>
</td>

<td>
<xsl:value-of select = "../Station[ID =

$Station_ID]/Description"/>
</td>

<td>
<xsl:value-of select = "../Demographics[ID =

$Demographic_ID]/Description"/>
</td>
</tr>

</xsl:for-each>

</table>

</xsl:template>
</xsl:stylesheet>

I think you may want individual records in your XML file though, e.g.

<Demographics>
<Demographic />
<Demographic />
<Demographic />
</Demographics>

Otherwise, I don't see how the XPath can distinguish between multiple Demographic, Section and Analysis table rows.

GeneralRe: XML relational data Pin
Member 17770425-Jul-05 9:42
Member 17770425-Jul-05 9:42 
Generalhelp needed for parsing XML document Pin
satishrg1-Jul-05 9:04
satishrg1-Jul-05 9:04 
GeneralRe: help needed for parsing XML document Pin
DavidNohejl1-Jul-05 13:22
DavidNohejl1-Jul-05 13:22 
QuestionWeb Service chat? Pin
wakkerjack1-Jul-05 3:45
wakkerjack1-Jul-05 3:45 
GeneralNeed help creating objects from xml file!! Pin
richiemac30-Jun-05 0:44
richiemac30-Jun-05 0:44 
GeneralRe: Need help creating objects from xml file!! Pin
richiemac1-Jul-05 0:13
richiemac1-Jul-05 0:13 
GeneralRe: Need help creating objects from xml file!! Pin
Gavin Jeffrey1-Jul-05 2:20
Gavin Jeffrey1-Jul-05 2:20 
GeneralRe: Need help creating objects from xml file!! Pin
richiemac1-Jul-05 7:03
richiemac1-Jul-05 7:03 
GeneralRe: Need help creating objects from xml file!! Pin
richiemac8-Jul-05 1:01
richiemac8-Jul-05 1:01 
QuestionIE Requirements for DOM and XSLT? Pin
Anonymous29-Jun-05 8:08
Anonymous29-Jun-05 8:08 
AnswerRe: IE Requirements for DOM and XSLT? Pin
DavidNohejl29-Jun-05 8:29
DavidNohejl29-Jun-05 8:29 
AnswerRe: IE Requirements for DOM and XSLT? Pin
Christian Graus29-Jun-05 11:59
protectorChristian Graus29-Jun-05 11:59 
Generalinfopath: need help Pin
Steven M Hunt28-Jun-05 6:37
Steven M Hunt28-Jun-05 6:37 
GeneralNeed resources for C++ &amp; XML Pin
Wheatbread28-Jun-05 5:03
Wheatbread28-Jun-05 5:03 
GeneralRe: Need resources for C++ &amp; XML Pin
DavidNohejl28-Jun-05 7:12
DavidNohejl28-Jun-05 7:12 
GeneralLooking for Developers to try new C++ XML interface. Pin
Stuart Konen25-Jun-05 12:35
Stuart Konen25-Jun-05 12:35 
GeneralXML text reader Pin
letusC#24-Jun-05 11:25
letusC#24-Jun-05 11:25 

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.