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

Re: hard coded list - match?

Subject: Re: hard coded list - match?
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Tue, 27 Jul 2004 11:36:41 +0100
xsl option value list
If you intend to produce the same XML but with some changes to the original
node,
you could do an identity transformation as in
http://www.dpawson.co.uk/xsl/sect2/identity.html

and then define the template for the nodes you want to change,,
you can then create attributes in that template,
HTH
Vasu


----- Original Message ----- 
From: "Bart Claeys" <Bart.Claeys@xxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, July 27, 2004 11:28 AM
Subject:  hard coded list - match?


> Hello,
>
> I go the following hard coded list, and I retrieve an ID from a node. Now
I need to put selected="true" at one on of the
> following options. How should I do this? I guess by using match?
>
>      <option value="1">News - left</option>
>       <option value="2">News - right</option>
>       <option value="3">Docu - left</option>
>       <option value="4">Docu - right</option>
>       <option value="5">Tips - left</option>
>       <option value="6">Tips - right</option>
>
>      <option value="7">Tickets - left</option>
>       <option value="8">Tickets - right</option>
>       <option value="9">Concerts - left</option>
>       <option value="10">Concerts - right</option>
>       <option value="11">Festivals - left</option>
>       <option value="12">Festivals - right</option>
>
>      <option value="13">Fun - left</option>
>       <option value="14">Fun - right</option>
>       <option value="15">Games - left</option>
>       <option value="16">Games - right</option>
>       <option value="17">Ringtones - left</option>
>       <option value="18">Ringtones - right</option>
>
> Thx a lot for the help! I'm learning a lot in this list.
>
> Barton
>
****************************************************************************
*********************
> The contents of this email and any attachments are confidential.
> It is intended for the named recipient(s) only.
> If you have received this email in error please notify the system manager
or
> the sender immediately.
> Do not disclose the contents to anyone nor make copies of this mail.
>
****************************************************************************
*********************

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.