xsl-list
[Top] [All Lists]

Name Spaces in Selects and xsl:element

2005-05-05 08:00:46
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--