![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: help w/HTML escaping in XML tags? [Thread Next] Re: help w/HTML escaping in XML tags?To: NULL Date: 3/3/2005 6:04:00 PM
I thought I'd replied to this but it hasn't shown up so I'll try again
sorry if you get two.
<myDocument>
<tag1>This is some <b>HTML</b> code</tag1>
</myDocument>
In this case, the <b> tags are HTML-escaped during the XSL
transformation;
that wouldn't happen by default, only if you explictly program it that
way, eg
<xsl:template name="b">
<b><xsl:apply-templates/> </b>
</xsl:template>
If you copy nodes from the source or generate nodes rather than text in
teh stylesheet they will be linearised as xml element tags so the nodes
get re-created when the result is parsed.
David
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
