[x3d-public] Please fix X3dToJson.xslt to work with Saxon-CE, Saxon-Js and xslt3
John Carlson
yottzumm at gmail.com
Sun Apr 11 23:29:42 PDT 2021
Here's the code that gets execute in the X3dToJson.xslt stylesheet. Is
there some way to fix it with a flag?
<xsl:otherwise>
<!-- Note that this error condition occurs
if DTD default attribute values are suppressed before invocation -->
<xsl:text>IllegalChildNodeFieldNameNotFound</xsl:text>
<xsl:message>
<xsl:text>Error:
IllegalChildNodeFieldNameNotFound no containerField or field name found
for the X3D JSON object. Check spelling of node.</xsl:text>
<xsl:text>
</xsl:text>
<xsl:text> $elementName=</xsl:text>
<xsl:value-of select="$elementName"/>
<xsl:if test="(string-length(@DEF) > 0)">
<xsl:text>, DEF=</xsl:text>
<xsl:value-of select="@DEF"/>
</xsl:if>
<xsl:if test="(string-length(@USE) > 0)">
<xsl:text>, USE=</xsl:text>
<xsl:value-of select="@USE"/>
</xsl:if>
<xsl:text>, $parentName=</xsl:text>
<xsl:value-of select="$parentName"/>
<xsl:text>
</xsl:text>
<xsl:choose>
<xsl:when test="not($isTestScene)">
<xsl:text> Please
report this error to x3d-public at web3d.org - thanks for your help
improving X3D Quality Assurance (QA).</xsl:text>
</xsl:when>
<xsl:when
test="(string-length(//meta[(@name='title')]/@content) > 0)">
<xsl:text> </xsl:text>
<xsl:value-of
select="//meta[(@name='title')]/@content"/>
<xsl:text> is a test
scene supporting X3D Quality Assurance (QA).</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:message>
</xsl:otherwise>
More information about the x3d-public
mailing list