[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

copy-namespaces declaration - supported in Saxon? What about Zorba?

Chris Maloney voldrani at gmail.com
Tue Apr 3 06:59:58 PDT 2012


  copy-namespaces declaration - supported in Saxon? What about Zorba?
Very nice!  Thanks again, both of you.

On Tue, Apr 3, 2012 at 5:39 AM, Dennis Knochenwefel <
http://x-query.com/mailman/listinfo/talk> wrote:

>
>  Hi,
>>
>> I have this document:
>>
>>     <AppConfig xmlns:paf="http://ncbi.gov/**portal/paf<http://ncbi.gov/portal/paf>
>> "
>> xmlns:qs="http://ncbi.gov/**portal/paf/querystring<http://ncbi.gov/portal/paf/querystring>
>> ">
>>        <AppController foo='bar'>
>>          <fleegle/>
>>        </AppController>
>>     </AppConfig>
>>
>> which I'm processing with this XQuery:
>>
>>     xquery version "1.0";
>>     declare copy-namespaces no-preserve, no-inherit;
>>     doc("AppConfig.xml")//**AppController/fleegle
>>
>> and I'm getting this as output from Saxon PE 9.3:
>>
>>     <?xml version="1.0" encoding="UTF-8"?>
>>     <fleegle xmlns:paf="http://ncbi.gov/**portal/paf<http://ncbi.gov/portal/paf>
>> "
>>              xmlns:qs="http://ncbi.gov/**portal/paf/querystring<http://ncbi.gov/portal/paf/querystring>
>> "/>
>>
>> But I want to get rid of the unused namespace nodes, and I thought
>> "no-preserve" should do it.
>>
>> I found an email message from Michael Kay in Apr. 7, 2005, on the
>> saxon help list, in which he wrote:
>>
>>     The basic functionality of copying an element without copying its
>> namespaces
>>     is there in the product (and used in XSLT) but it's not yet wired
>> up to the syntax
>>     of the query prolog. Sorry.
>>
>> Is it still not implemented, or am I doing something wrong?
>>
>> Can anybody tell me whether or not this is supported in Zorba?
>>
>
> Indeed it is supported in zorba as well: http://www.zorba-xquery.com/**
> html/demo#**ISPAkCCZNTANJwiOYJEigxqlkVw=<http://www.zorba-xquery.com/html/demo#ISPAkCCZNTANJwiOYJEigxqlkVw=>
>
> regards,
>
> Dennis
>
>
> --
> Dennis Knochenwefel
> Software Architect
>
> 28msec Inc.
> http://www.28msec.com
> http://twitter.com/28msec
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20120403/bf11e41b/attachment.html>


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-2011 All Rights Reserved.