Tech Support Forum banner
Status
Not open for further replies.
1 - 1 of 1 Posts

·
Registered
Joined
·
1 Posts
Discussion Starter · #1 ·
I'm trying to transform an the xml document Staff.txt attached using the xsl file listed below.

The reason for this is so I can use the XML file with a GridView control in MS VB.Net 2005. Can someone please give me an idea why it's not working. Thanks


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:eek:utput omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="rss">
<rss>
<xsl:apply-templates/>
</rss>
</xsl:template>

<xsl:template match="channel">
<xsl:element name="channel">
<xsl:for-each select="item">
<xsl:for-each select="title">
<xsl:attribute name="FName">
<xsl:value-of select="title"/>
</xsl:attribute>

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

<xsl:for-each select="div">
<xsl:attribute name="LName">
<xsl:value-of select="div"/>
</xsl:attribute>
<xsl:attribute name="Title1">
<xsl:value-of select="div"/>
</xsl:attribute>
<xsl:attribute name="WorkSCh">
<xsl:value-of select="div"/>
</xsl:attribute>
<xsl:attribute name="Ext">
<xsl:value-of select="div"/>
</xsl:attribute>
<xsl:attribute name="Section">
<xsl:value-of select="div"/>
</xsl:attribute>
<xsl:attribute name="Phone">
<xsl:value-of select="div"/>
</xsl:attribute>
<xsl:attribute name="Cell">
<xsl:value-of select="div"/>
</xsl:attribute>
<xsl:attribute name="Email">
<xsl:value-of select="div"/>
</xsl:attribute>
<xsl:attribute name="Dist">
<xsl:value-of select="div"/>
</xsl:attribute>
</xsl:for-each>

</xsl:for-each>

</xsl:for-each>
</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
 

Attachments

1 - 1 of 1 Posts
Status
Not open for further replies.
Top