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

@xmlns retrieving value of

Subject: @xmlns retrieving value of
From: Mario Madunic <hajduk@xxxxxxxx>
Date: Mon, 11 Sep 2006 19:52:54 -0700
madunic
Hi I'm hoping somebody might have some insight.

Saxon 8
XSLT 2

Here is a sample piece of xml to help get the idea of what I'm trying to achieve.

<root>
...
     <p xmlns:anElem="http://www.namespace.com/namespaces/anElem">this is a test
to retrieve the namespace uri and name.</p>
...
</root>

I've been trying to get the namespace and uri from the @xmlns with no success. I
would like to reuse both the ns and uri when I transform the p into something like
<newDoc>
...
<anElem:para xmlns="http://www.namespace.com/namespaces/anElem">this is a test
to retrieve the namespace uri and name.</anElem:para>
...
</newDoc>

I've used

namespace-uri()
name()
namespace-uri-for-prefix()
namespace-uri-from-QName()

I'm pretty sure the last 2 were being used inappropriately

Any ideas or solution would be appreciated.

Thanks

Marijan Madunic

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.