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

RE: check if a* not equal to attribute value

Subject: RE: check if a* not equal to attribute value
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Thu, 31 Jan 2002 12:25:15 +0100
xsl if not equal
>I'm not entirely clear what you do want
I probably don't explain myself very well, it's strange, I write very well
except in the case of letters and email.:)
no it's just that you have the name() for elements, right, what I want is
something that allows access to the names of attributes, can one do this
with local-name(), for-each local-name(@*), sorry but I've never seen a
convincing use of local-name() instead of name()

>> but I can't see anything in the
>>above that could give different results on different processors.  If you
>>write two attributes with the same name, the one written "later" is
>>guaranteed to win: this is based not on the order of execution, but on the
>>position of the two attributes in the result sequence.

okay thanks, that's the way I used to think it was until our conversation
about overwriting the same document you're reading in confused me. Sometimes
things here get too theoretical for a poor developer like meself. :)

>>Your code does seem a bit convoluted, it could be rewritten as:
Thanks again, I was going to ask about code improvement next.


><xsl:copy-of select="@*[every $x in
>$cssdocSelect//selector[@it:class=$itclass]/s satisfies name($x) !=
>name(.)]"/>

>but I don't think I would bother.

cool, actually I think I will, am trying to get to grips with 2.0 right now.


 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.