xsl-list
[Top] [All Lists]

Re: hard coded list - match?

2004-07-27 03:36:41
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(_dot_)Claeys(_at_)sportpaleis(_dot_)be>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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.

****************************************************************************
*********************


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




<Prev in Thread] Current Thread [Next in Thread>