[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Need debug help xslt+svg
Subject: Re: Need debug help xslt+svg
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 02 Feb 2012 12:28:32 -0500
|
Hermann,
This looks challenging enough that I dare say even the interested may
not have the time to dig in.
What I'm wondering is, why not XSLT 2.0? This could make a very nice
demonstration of XSLT 2.0 in the client using Saxon CE.
And the code would probably be about one quarter the length, since you'd
have actual sequences to work with, could write functions, etc.
Cheers,
Wendell
On 2/1/2012 10:54 AM, Hermann Stamm-Wilbrandt wrote:
I am not sure I understand the problem but you seem to do something like
<xsl:if test="document($nxt)">
in there and with MSXML I think you get a fatal transformation error if
the document you are trying to load (i.e. snake.07.xml) does not exist.
Thank for that explanation.
Please have a look at the real problem I described in my previous email.
The first time the index of the cube to rotate decreases (idx="7" for
snake and idx="3" for small.xml) the corresponding cube gets drawn at its
original position and not at the correctly transformed position.
You can see that best when starting with snake.00.xml, and then clicking
next two times (with Non-IE browser because of your explanation).
The first rotation is fine, and the problem in the 2nd is easy to see.
$ tail -20 snake.xml
<cube x="12" y="0" z="11" c="&b;"/>
<cube x="13" y="0" z="11" c="&d;"/>
<cube x="13" y="0" z="12" c="&b;"/>
<cube x="13" y="0" z="13" c="&d;"/>
<!--
<rot r="z" x0="1" y0="0" idx="4"/>
<rot r="y" x0="1" z0="2" idx="3"/>
-->
<rot r="x" y0="0" z0="2" idx="3"/>
<rot r="z" x0="1" y0="0" idx="4"/>
<rot r="Y" x0="1" z0="2" idx="4"/>
<rot r="x" y0="0" z0="3" idx="5"/>
<rot r="X" y0="0" z0="4" idx="8"/>
<rot r="y" x0="3" z0="4" idx="7"/>
<rot r="Z" x0="5" y0="0" idx="10"/>
<rot r="Z" x0="5" y0="0" idx="10"/>
</snake>
$
Mit besten Gruessen / Best wishes,
Hermann Stamm-Wilbrandt
Level 3 support for XML Compiler team, Fixpack team lead
WebSphere DataPower SOA Appliances
https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/
----------------------------------------------------------------------
IBM Deutschland Research& Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
From: Martin Honnen<Martin.Honnen@xxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx,
Date: 02/01/2012 02:01 PM
Subject: Re: Need debug help xslt+svg
Hermann Stamm-Wilbrandt wrote:
The problem I need debug help is step 6 of the animation:
http://stamm-wilbrandt.de/en/xsl-list/cube/snake.00.xml
Clicking on the link gives you the start. The clicking next 5 times
gives fine results. When clicking the 6th time you can see the
problem, one of the cubes is not rotated correctly.
I am not sure I understand the problem but you seem to do something like
<xsl:if test="document($nxt)">
in there and with MSXML I think you get a fatal transformation error if
the document you are trying to load (i.e. snake.07.xml) does not exist.
--
Martin Honnen --- MVP Data Platform Development
http://msmvps.com/blogs/martin_honnen/
--
======================================================================
Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|