[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Global namespace prefixes (Corrected Examples)

Subject: Re: Global namespace prefixes (Corrected Examples)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 14 Nov 2008 17:03:01 GMT
Re:  Global namespace prefixes (Corrected Examples)
> 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. 
________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.