[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] hard coded list - match?
Subject: Re: [xsl] hard coded list - match? From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx> Date: Tue, 27 Jul 2004 11:36:41 +0100 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] hard coded list - match?, Bart Claeys | Thread | Re: [xsl] hard coded list - match?, David Carlisle |
Re: [xsl] XSL resources - Flat to h, David Carlisle | Date | Re: [xsl] can you select name() of , Ragulf Pickaxe |
Month |
Keywords