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

Matching and changing attributes.

Subject: Matching and changing attributes.
From: Thorbjørn Ravn Andersen <Thorbjoern.Ravn.Andersen@xxxxxxxxxx>
Date: Wed, 30 May 2001 18:24:44 +0100
 Matching and changing attributes.
I have a situtation where I would like add a few rules to clean up an
XHTML-document which uses too many @class attributes.
 
I know that I can match a node with a class-attribute with a specific text,
but this means that other rules cannot come in play with that node, and it
would be most intuitive to work on the attribute level.
 
So my question is,
 
Given a node with a class attribute, like
 
	<mynode class="somestring"/>
 
how do I write a template that is fired when <xsl:apply-templates
match="@*"> is executed,  and optionally change the attribute giving the
result
 
	<mynode class="someotherstring">
 
I've tried looking in the FAQ and the archives, but apparantly my mind uses
the wrong words for this.
 
Thanks for any help.


(PS:  If anyone can point me to a page about how to use both this list and
Outlook while keeping my sanity, I will appreciate it).

--
  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.