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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.