Next in thread → Next in month →

RE: [docbook-apps] xsl:copy-of Syntax Question

From
Miller, Ray \(Centech\) <>
Date
2007-02-12T19:40:10+00:00
ID
Thread
RE: [docbook-apps] xsl:copy-of Syntax Question
>> At a quick scan it looks like you are referring to no namespace
elements 
in your copy-of instruction, see 
<xsl:copy-of select="$foo-header/html/head/node()"/>

while your document contains elements with the same local name but in 
the http://www.w3.org/1999/xhtml namespace.

Therefore my suggestion will be to define the 
http://www.w3.org/1999/xhtml namespace in your stylesheet mapped for 
instance to the xhtml prefix and use that in your name tests in the 
XPath expression, like below:

<xsl:copy-of xmlns:xhtml="http://www.w3.org/1999/xhtml" 
select="$foo-header/xhtml:html/xhtml:head/node()"/> <<


Works perfectly; many thanks.

Ray
Next in thread → Next in month →