xsl-list
[Top] [All Lists]

RE: Coma delimited values in attribute

2005-09-16 05:38:52
In XSLT 2.0, use the tokenize() function.

In 1.0, you could use the EXSLT tokenize() template available at
www.exslt.org

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Belousov Alexey [mailto:web(_at_)biplane(_dot_)ru] 
Sent: 16 September 2005 14:05
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Coma delimited values in attribute

Hello all.
I'm a bit new to XSL and currently having a problem. Any help would be
greately apreciated.

I have the following XML:

-------[XML]--------------------------------------------------
----------
<Fields>
<field name="tarifSelect" value="tarif1,tarif2,tarif3,tarif4" />
<field name="numberType"  value="str,cur,str,cur" />
<field name="cardsNum"    value="1,1,1,1" />
<field name="price"       value="152,100,252,203" />
</Fields>
--------------------------------------------------------------
----------

I want it to be representd as a HTML table like:

+--------+-----+---+-----+
| tarif1 | str | 1 | 152 |
+--------+-----+---+-----+
| tarif2 | cur | 1 | 100 |
+--------+-----+---+-----+
| tarif3 | str | 1 | 252 |
+--------+-----+---+-----+
| tarif4 | cur | 1 | 203 |
+--------+-----+---+-----+

--
Best regards, Belousov Alexey


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





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