I am creating an XSLT to convert some XML data to SVG. The data is 
exported from a program the customer is using, and it exports text 
data, but the actual SVG text is written out as paths. I need to 
find the x,y data in path/@d so I can position the text properly on 
the screen. Here is a snippet of code:

<CADConverterDwgEntity>
<Type>AcDbText</Type>
<Handle>604</Handle>
<Layer>TEXT</Layer>
<Linetype>CONTINUOUS</Linetype>
<Text>2</Text>
</CADConverterDwgEntity>
<path d="M556.42 509.02L556.42 508.86M556.42 508.86L556.58 
508.54M556.58 508.54L556.74 508.37M556.74 508.37L557.07 
508.21M557.07 508.21L557.72 508.21M557.72 508.21L558.05 
508.37M558.05 508.37L558.21 508.54M558.21 508.54L558.37 
508.86M558.37 508.86L558.37 509.19M558.37 509.19L558.21 
509.51M558.21 509.51L557.88 510M557.88 510L556.26 511.62M556.26 
511.62L558.53 511.62"
fill="none" stroke="black" stroke-width="0.1"/>
<EndCADConverterDwgEntity>
</EndCADConverterDwgEntity>

What I need is:

<text x="nnn" y="nnn" fill="none" stroke="black" stroke-
width="0.1">2</text>

where the values of x and y are derived from the information in 
path/@d.

Any help would be greatly appreciated.






-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to