xsl-list
[Top] [All Lists]

Re: [xsl] Global namespace prefixes (Corrected Examples)

2008-11-14 12:03:32


No top level att prefix.

that's a bug although clarifaction of copying of namepsace nodes was
clarified via an erraum to xslt 1 but that was years ago, I'd expect it
to work now.


And if I add a copy-of the dummy element to the result tree:

...
 <xsl:copy-of select="exslt:node-set($dummy)/*/namespace::att"/>

That's not copying the element its copying a namepace attribute, ie what
I posted. Your output suggested that you did do what you said not what
you showed:

 <xsl:copy-of select="exslt:node-set($dummy)/*/>

I get this:

as you'd expect, a copy of the dummy element.
Although I note here you are generating an unprefixed dummy element
you (again) didn't post the stylesheet that produced the result you
posted, it would be consistent with you your variable containing an
unprefixed dummy element so there would be no binding for the prefix att
so <xsl:copy-of select="exslt:node-set($dummy)/*/namespace::att"/>
would select nothing.



Since this is rdf do you really mind an extra attribute?

Without using any extension function you could do as sufggested
previously
       
 <xsl:attribute name="att:foo" namespace="{/dap:Dataset/@base}/att#"/>

which would make 

 <rdf:RDF att:foo="" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
         xmlns:dap="http://xml.opendap.org/ns/DAP/3.2#";
         xmlns:att="http://base.document/att#";>


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>