[x3d-public] ROUTE toNode duplicated in examples
Don Brutzman
brutzman at nps.edu
Sun Sep 3 12:50:02 PDT 2017
Apologies for the problem, thanks for re-notification. I had thought the fixes were applied and uploaded 2 weeks ago... clearly not. (must have been a versionitis problem between 2 machines on my end.)
Have restarted the update process. Will report confirmation.
On 9/3/2017 7:46 AM, Andreas Plesch wrote:
> Hi Don,
>
> working through the various examples archives I noticed that most, perhaps all ROUTE statements are affected by duplicated toNode attributes, not just the NIST examples. Just a heads up if the fix is ready to go,
>
> Andreas
>
> On Aug 14, 2017 9:06 PM, "Don Brutzman" <brutzman at nps.edu <mailto:brutzman at nps.edu>> wrote:
>
> Thanks for reporting this error in the HTML pretty-print capability Andreas.
>
> The offending error is in line 1803 of X3dToXhtml.xslt which sayeth:
>
> <xsl:when test="local-name()='ROUTE'">
> <xsl:apply-templates select="@fromNode"/>
> <xsl:apply-templates select="@fromField"/>
> <xsl:apply-templates select="@toNode"/>
> <xsl:apply-templates select="@toField"/>
> <xsl:apply-templates select="@*[local-name()!='fromNode' and local-name()!='fromField' and
> local-name()!= '@toNode' and local-name()!= 'toField']"/><!-- safety net -->
> </xsl:when>
>
> the expression
> local-name()!= '@toNode'
>
> has been corrected to
> local-name()!= 'toNode'
>
> This was a relative recent change intended to expose stray attributes (such as DEF or USE or id) which might appear erroneously in a ROUTE.
>
> Bugfix checked in. I will update the HTML documentation files in the published archives as time permits. Again thanks.
>
>
> On 8/13/2017 5:41 AM, Andreas Plesch wrote:
>
> ROUTE statements in examples listed at http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/index.html <http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/index.html>
>
> have their toNode attribute duplicated:
>
> <ROUTE fromNode='TOUCH <http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/cycleinterval.html#TOUCH <http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/cycleinterval.html#TOUCH>>' fromField='touchTime' toNode='TIME <http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/cycleinterval.html#TIME <http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/cycleinterval.html#TIME>>' toField='startTime' toNode='TIME <http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/cycleinterval.html#TIME <http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/cycleinterval.html#TIME>>'/>
>
>
> The canonical xml and json encodings do not have the duplication.
>
> I checked a few other examples and suspect but that all ConformanceNist examples are affected.
>
> Andreas
>
> --
> Andreas Plesch
> 39 Barbara Rd.
> Waltham, MA 02453
>
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org <mailto:x3d-public at web3d.org>
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org <http://web3d.org/mailman/listinfo/x3d-public_web3d.org>
>
>
>
> all the best, Don
> --
> Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu <mailto:brutzman at nps.edu>
> Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149 <tel:%2B1.831.656.2149>
> X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman <http://faculty.nps.edu/brutzman>
>
>
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list