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

RE: Matching and changing attributes.

Subject: RE: Matching and changing attributes.
From: Thorbjørn Ravn Andersen <Thorbjoern.Ravn.Andersen@xxxxxxxxxx>
Date: Wed, 30 May 2001 20:47:55 +0100
RE:  Matching and changing attributes.
 [Note also it's easy to enhance this. So the test

        <xsl:when test=".='badvalue'">
          <xsl:value-of select="local-name(..)"/>
        </xsl:when>


 Is that something like what you want? The basic trick is to make sure you
are applying templates on the attribute axis (something that doesn't happen
by default), and then to match="@class" and create the replacement
attribute the way you want it in that template.
The above was exactly what I was looking for (along with the xsl:text way of
putting new text in it), and it is very concise.  Thank you very much for
answering so promptly and correct.
--
  Thorbjørn Ravn Andersen
  Systemkonsulent - Value Added Services
  Media Development Group
  # MOBILIX  - Prags Boulevard 80 - DK-2300 København S 
  +45 82 33 62 87 


 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.