Friday, 20 November 2015

XML : Turn XML attribute with 2 or more values into SVG x/y coordinates using XSL

I need to turn the values in a xml attribute through xsl into a svg rect pos x and y

Therefore need to parse from

Examples

  <item value="20 10 40" />  <item value="200 0 100" />  <item value="2666 10 40 95" />    

into

  <rect x="{$var1}" y="{$var2}" />    

(if I want the first and third value in any case)

Basically I need to understand how to parse in any multiple values case within one xml attribute

No comments:

Post a Comment