Re: using HTML tags in XML documents
Martin Honnen <[email protected]> Wed, 14 Mar 2007 19:15:26 +0100
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
[email protected] wrote: > But, this doesn't seem to work with my stylesheet, only when I use a > clean one. :X > I've looked over it several times, but I can't seem to find the cause : > \ > Any chance you could help me figure it out? > The current version is again at http://l2f.noodley.com/xml/ Once you have child elements like xhtml:br inside of your item elements it does not make much sense to use <xsl:value-of select="."/> instead use <xsl:apply-templates/> and then use the template I already posted e.g. <xsl:template xmlns:xhtml="http://www.w3.org/1999/xhtml" match="xhtml:*"> <xsl:element name="{local-name()}"> <xsl:apply-templates select="@* | node()"/> </xsl:element> </xsl:template> -- Martin Honnen http://JavaScript.FAQTs.com/