Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Output of copy-of into a variable? Output of copy-of into a variable?To: NULL Date: 1/9/2009 2:29:00 AM Hi,
I want to transform nodes into a file with a maximum linewidth.
Therefore I need to have the output result of copy-of into a variable
and then use substring to output a specific number of characters on
each line. I have tried:
<xsl:variable name="VarName">
<xsl:copy-of select="."/>
</xsl:variable>
<xsl:value-of select="substring($VarName, 1, 20)"/>
<xsl:text>
</xsl:text>
<xsl:value-of select="substring($VarName, 21, 40)"/>
<xsl:text>
</xsl:text>
But this does not give the nodenames etc. and I can understand why as
the variable contains the node.
Does anyone know how to do this?
Thanks,
Michael
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
