|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to process individual values of an attribute
I don't think there's a really easy way to do it for all cases in XSLT 1.0. If the values are IDREFs, you can use id() to create a nodeset and use for-each or apply-templates to process the nodes. If they aren't IDREFs, you can write a recursive template using substring-before() to loop through the space-separated values. Lars -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Néstor Boscán Sent: Monday, August 04, 2003 3:36 PM To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: How to process individual values of an attribute Hello If I have an XML file like the following: <element values="a b c d"/> Is there a way to process individual values of attributes using for-each or apply-templates. I want to be able to process a, b, c, d like I process elements. Thanks Néstor Boscán ? Consultor Teléfono Móvil: +58 414 2490162 Teléfono Oficina: +58 212 2437103 Fax Oficina: +58 212 2435796 Correo Electrónico: nestor.boscan@xxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








