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

Name Spaces in Selects and xsl:element

Subject: Name Spaces in Selects and xsl:element
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Thu, 5 May 2005 08:00:46 -0700
in selects
I have some questions about namespaces, I'd like to use them in
selects as a way to say "here's the data I really want to evaluate,
all other will be ignored.  So, given the sample data, how would one
select all elements who's namespace is "fn"?

<fn:A>
  <fn:B>12</fn:B>
  <B>88</B>
  <fn:B>
    <fn:B>34</B>
    <B>99</B>
  </fn:B>
  <fn:B>56</fn:B>
</fn:A>

Desired result:
123456

Another question, about xsl:element.  When I use this to create
elements, the elements never get the appended xmlns attribute added.
If I just type the new element out like this
<NewElement><xsl:select="."/></NewElement> I am lible to get something
like this in my result:

<NewElement xmlns:ms="urn:schemas-microsoft-com:xslt">

How can this be avoided without using the xsl:element command?

That's it for now, I will most likely have more...
Thanks, Karl

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.