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

RE: comparing attributes values dynamically

Subject: RE: comparing attributes values dynamically
From: Adam Foran <aforan@xxxxxxxxx>
Date: Mon, 5 Jan 2004 14:03:01 -0500
xsl comparing attributes
Thanks a lot for your help Michael. That was exactly
what I wanted.

Adam

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Michael Kay
> Sent: Monday, January 05, 2004 1:31 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  comparing attributes values dynamically
> 
> 
> > 
> > My XSLT code has a template into which I pass the two
> > nodes in $newNode and $oldNode but I'm getting compilation 
> > errors. I know the following code is wrong but hopefully 
> > it'll be obvious what I'm trying to accomplish with it:
> > 
> > <xsl:for-each select="$newNode/@*">
> >   <xsl:if test="string(current()) = $oldNode/@{name()}">
> 
> XPath expressions *never* contain curly braces. They are only used to
> surround an XPath expression that is embedded in an ordinary attribute
> value.
> 
> You want
> 
> test=". = $oldNode/@*[name()=name(current())]"
> 
> Michael Kay
> 
> 
> 
>  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.