cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
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>
>tag.
><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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message