Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: using html in variables [Thread Next] Re: using html in variablesTo: NULL Date: 8/6/2008 1:16:00 PM David Schwartz wrote: >> If your variable contains a result tree fragment then you need to use >> xsl:copy-of instead of xsl:value-of e.g. >> <xsl:copy-of select="$bar"/> > > That was it! Can you explain what the issue was a bit more fully? Well xsl:value-of takes the string value and inserts a text node in the result tree. xsl:copy-of however copies the nodes into the result tree. Your variable contains nodes and you want to copy them to the transformation result hence you need to use xsl:copy-of. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
