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

Re: self axis and attributes

Subject: Re: self axis and attributes
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Wed, 22 Nov 2000 11:22:15 +0000
Re: self axis and attributes
Kevin,

>> Am I missing something? Is there any way of testing the identity of
>> namespaced attributes while retaining independence between the source
>> and stylesheet and without testing the namespace-uri()?
>
> It's a bit ugly but I think this works,
[snip]
>       <xsl:variable name="dem" select="generate-id(@dem:count)"/>
>       <xsl:copy-of select="@*[generate-id()!=$dem]" />

Or squash it all into one line like:

  <xsl:copy-of
    select="@*[generate-id() != generate-id(current()/@dem:count)]" />

It is unwieldy, but not as unwieldy as testing namespace-uris!  Good
thinking.

> Of course its not so easy if you are dealing with more than one attribute...

Nor is the other solution, though.  This is a better workaround.

Thanks very much,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 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.