Re: using HTML tags in XML documents

[email protected] 15 Mar 2007 07:00:17 -0700
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization http://groups.google.com
Message-ID <[email protected]>
On Mar 14, 8:15 pm, Martin Honnen <[email protected]> wrote:
> [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 athttp://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/

Thank you! :)