cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject Re: xslt ignore attributes
Date Mon, 17 May 2004 17:51:21 GMT
Kirk Storer wrote:

>I am including an xhtml document in my page using the
>following which works fine with a plain old <html>
><xsl:copy-of select="html/body/*"/>
>However, if the html tag contains an xmlns attribute
>it doesn't work. How can I get the xslt to reconize
>the html tag even though it has attributes.

Declare a namespace in your XSLT, such as xhtml.

Then do <xsl:copy-of select="xhtml:html/xhtml:body/*"/>

Should do it, I think.

Upayavira, who is delighted that the engineers working busily somewhere 
in West London have restored his internet connection.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message