[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|