XML file >>>>
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="forEach.xslt"?>
<page>
<items>
<item>js_one</item>
<item>js_two</item>
</items>
</page>
XSLT file >>>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xslutput method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="//page/items/item">
<xsl:variable name="it" select="."/>
<div class="{$it}"><xsl:value-of select="."/></div>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
and I don't get the {$it}
how can I put a value between double quotes ?
class="?"
thank you
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="forEach.xslt"?>
<page>
<items>
<item>js_one</item>
<item>js_two</item>
</items>
</page>
XSLT file >>>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xslutput method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="//page/items/item">
<xsl:variable name="it" select="."/>
<div class="{$it}"><xsl:value-of select="."/></div>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
and I don't get the {$it}
how can I put a value between double quotes ?
class="?"
thank you