C
cyphos
Hi,
I'm trying to display the data from my typed dataset on a page using
the Xml web control.
I have the following code:
Xm1.Document = new XmlDataDocument(ds);
Using the debugger, I found that the xml representation of my dataset
looks like the following:
[code:1:b261030e14]
<dsData>
<Entry>
<Title>Test</Title>
<Description>This is a test</Description>
</Entry>
</dsData>
[/code:1:b261030e14]
My xsl file looks like this
[code:1:b261030e14]
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="dsData/Entry">
<div class="Entry">
<div class="EntryTitle">
<xsl:value-of select="Title"/>
</div>
<div class="EntryDescription">
<xsl:value-of select="Description"/>
</div>
</div>
</xsl:for-each>
</xsl:template>
</xsl"stylesheet>
[/code:1:b261030e14]
Using this stylesheet, nothing is displayed/transformed. I know that
it must be a stylesheet problem because if I don't set the
TransformSource property of the Xml control the raw xml of the
dataset (XmlDataDocument) is displayed.
I hope that someone understands this, as I'm lost.
Thanks,
Cyp.
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
I'm trying to display the data from my typed dataset on a page using
the Xml web control.
I have the following code:
Xm1.Document = new XmlDataDocument(ds);
Using the debugger, I found that the xml representation of my dataset
looks like the following:
[code:1:b261030e14]
<dsData>
<Entry>
<Title>Test</Title>
<Description>This is a test</Description>
</Entry>
</dsData>
[/code:1:b261030e14]
My xsl file looks like this
[code:1:b261030e14]
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="dsData/Entry">
<div class="Entry">
<div class="EntryTitle">
<xsl:value-of select="Title"/>
</div>
<div class="EntryDescription">
<xsl:value-of select="Description"/>
</div>
</div>
</xsl:for-each>
</xsl:template>
</xsl"stylesheet>
[/code:1:b261030e14]
Using this stylesheet, nothing is displayed/transformed. I know that
it must be a stylesheet problem because if I don't set the
TransformSource property of the Xml control the raw xml of the
dataset (XmlDataDocument) is displayed.
I hope that someone understands this, as I'm lost.
Thanks,
Cyp.
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*