XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
joe jSubject: SVG, XML & XSLT
Author: joe j
Date: 18 Mar 2005 09:55 PM
Hello,

I am trying to do an xslt to transform svg d attribute to xml? How can I do that?

Another question is; how can I transform an xml to another xml but what if
I dont know what tags are in. The only thing I know is that a parent tag called
<path> and a sub <d> should exist?

---------
I have this xml file

<path>
<d>
<move position="absolute"> <x>0</x><y>312</y></move>
<dcubic>
<dx>40</dx><dy> 48</dy><dx>120</dx><dy>-32</dy><dx>160</dx><dy>-6</dy></dcubic>
<dcubic>
<dx>0</dx><dy>0</dy><dx>5</dx><dy>4</dy><dx>10</dx><dy>-3</dy></dcubic>
<dcubic>
<dx>10</dx><dy>-103</dy><dx>50</dx><dy>-83</dy><dx>90</dx><dy>-42</dy></dcubic>
<dcubic>
<dx>0</dx><dy>0</dy><dx>20</dx><dy>12</dy><dx>30</dx><dy>7</dy></dcubic>
<dcubic>
<dx>-2</dx><dy>12</dy><dx>-18</dx><dy>17</dy><dx>-40</dx><dy>17</dy></dcubic>
<dcubic>
<dx>-55</dx><dy>-2</dy><dx>-40</dx><dy>25</dy><dx>-20 </dx><dy>35</dy></dcubic>
<dcubic>
<dx>30</dx><dy>20</dy><dx>35</dx><dy>65</dy><dx>-30</dx><dy>71</dy></dcubic>
<dcubic>
<dx>-50</dx><dy>4</dy><dx>-170</dx><dy>4</dy><dx>-200</dx><dy>-79</dy></dcubic>
<z />
</d>
</path>


I want to tranform it to another xml file but with alittle calculations on the dx and dy,
how can I do that?!

thanks in advance

Postnext
(Deleted User) Subject: SVG, XML & XSLT
Author: (Deleted User)
Date: 24 Mar 2005 03:05 PM
Hi Joe,

>I am trying to do an xslt to transform svg d attribute to
>xml? How can I do that?

I guess this has already been covered by another thread on this forum

>Another question is; how can I transform an xml to another
>xml but what if I dont know what tags are in.
>The only thing I know is that a parent tag called
><path> and a sub <d> should exist?

You should create a template with a match attribute of "path/d"; it
will be executed whenever this pattern is found in the XML, regardless
of the position.

Alberto

Postnext
joe jSubject: SVG, XML & XSLT
Author: joe j
Date: 30 Mar 2005 10:02 AM
Originally Posted: 30 Mar 2005 10:03 AM
hello,

thanks for your reply.

I have tried to find the the topic in this forum regarding d attribute transformation but couldnt!
could you please refer me. thank you

Joe

Posttop
(Deleted User) Subject: SVG, XML & XSLT
Author: (Deleted User)
Date: 31 Mar 2005 04:32 AM
Joe,
I am referring to the thread "SVG path d --> XSLT" that you started; the
direct link is http://www.stylusstudio.com/SSDN/default.asp?action=9&read=3429&fid=48

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.