[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: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx>
Date: Wed, 1 Feb 2012 16:54:35 +0100
Re:  Need debug help xslt+svg
> 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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.