
July 19th, 2011, 05:20 PM
|
|
Registered User
|
|
Join Date: Jul 2011
Posts: 2
Time spent in forums: 23 m 20 sec
Reputation Power: 0
|
|
|
Newbie xml/xsl question
i have this xml file, and i am pulling certain information out of it via an xsl file, like this.
Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="utf-8"/>
<xsl:param name="sep" select="'	' " />
<xsl:param name="eol" select="' ' " />
<xsl:template match="Items">
<xsl:for-each select="Item">
<xsl:value-of select="ItemKey"/>
<xsl:value-of select="$sep"/>
<xsl:value-of select="Name/English"/>
and about 30 more lines
<xsl:value-of select="$eol"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
and it transforms the information just like i want but i cant figure out how to wrap ItemKey and Name/English ( all the node's ) in '' like this 'Name/English' for the transformed text.
how would i go about this?
and thanks in-advance for any help on this question.
Last edited by requinix : July 19th, 2011 at 05:35 PM.
|