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

How do I force the XSLT processor to retain a namespac

Subject: How do I force the XSLT processor to retain a namespace declaration despite an ancestor element having that same namespace declaration?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Mon, 25 Jul 2011 13:05:00 -0400
 How do I force the XSLT processor to retain a namespac
Hi Folks,

When this is evaluated:

    <test xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <inner xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string"
/>
    </test>

The output is this:

    <test xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <inner type="xs:string" />
    </test>

Notice that the namespace declaration on <inner> is gone.

How do I force the XSLT processor to retain that namespace declaration and not
discard it? (I am passing the <inner> element to other functions that don't
have access to its surrounding elements, so I need that namespace declaration
retained.)

/Roger

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.