[x3d-public] ROUTE toNode duplicated in examples
Andreas Plesch
andreasplesch at gmail.com
Sun Sep 3 07:46:51 PDT 2017
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> 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/conte
> nt/examples/ConformanceNist/Sensors/TimeSensor/index.html
>
> have their toNode attribute duplicated:
>
> <ROUTE fromNode='TOUCH <http://www.web3d.org/x3d/cont
> ent/examples/ConformanceNist/Sensors/TimeSensor/cycleinterval.html#TOUCH>'
> fromField='touchTime' toNode='TIME <http://www.web3d.org/x3d/cont
> ent/examples/ConformanceNist/Sensors/TimeSensor/cycleinterval.html#TIME>'
> toField='startTime' toNode='TIME <http://www.web3d.org/x3d/cont
> ent/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
> 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
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170903/d4e6d596/attachment.html>
More information about the x3d-public
mailing list