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

RE: one element and two namespaces

Subject: RE: one element and two namespaces
From: "Sunil Dua" <sdua@xxxxxxxxxxxxxxx>
Date: Wed, 22 Aug 2001 12:55:18 -0700
xsl element with two namespaces
thanks buddy....It was really helpful

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of DuCharme, Bob
(LNG)
Sent: Wednesday, August 22, 2001 9:25 AM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE:  one element and two namespaces


>	<first>
>		<record></record>
>	</first>
>	<first xmlns="http://www.imsproject.org/metadata">
>		<record></record>
>	</first>
>
>I am able to extract all the element with the name first except the one
>with this namespace declaration. I need to treat all element with the
>name "first" equally.

In match condition terms, you want all the elements for whom the local part
of the name (the part after the ":" that delimits the namespace prefix)
equals "first":

  match="*[local-name()='first']"

Simply writing match="first", which I imagine is what you did, is only
asking for all the first elements from the default namespace.

I did an article that covered this and some related cases at
http://www.xml.com/pub/a/2001/05/02/trxml.html. See the xq257.xsl example in
particular.

Bob DuCharme            www.snee.com/bob             <bob@
snee.com>      see http://www.snee.com/bob/xsltquickly for
info on new book "XSLT Quickly" from Manning Publications.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.