[x3d-public] Possible issue with X3dToPython.xslt, newly tested file from X3D4WA

John Carlson yottzumm at gmail.com
Mon Jan 10 16:05:33 PST 2022


X3D XML file attached.  From X3DJSONLD's maven build log:

[INFO] --- xml-maven-plugin:1.0.2:transform (default) @ X3DJSONLD ---
[INFO] Transforming file: 
/home/coderextreme/X3DJSONLD/src/main/data/MaterialModulatorExamples.x3d
[INFO] Transforming file: 
/home/coderextreme/X3DJSONLD/src/main/data/MaterialModulator.x3d
Type error at char 37 in xsl:value-of/@select on line 610 column 120 of 
X3dToPython.xslt:
   XPTY0004: A sequence of more than one item is not allowed as the 
first argument of
   normalize-space() ("", "", ...)
   at xsl:apply-templates 
(file:/home/coderextreme/X3DJSONLD/src/main/lib/stylesheets/X3dToPython.xslt#606)
      processing /X3D/Scene[1]/ProtoDeclare[1]/ProtoBody[1]/Script[1]
   at xsl:apply-templates 
(file:/home/coderextreme/X3DJSONLD/src/main/lib/stylesheets/X3dToPython.xslt#606)
      processing /X3D/Scene[1]/ProtoDeclare[1]/ProtoBody[1]
   at xsl:apply-templates 
(file:/home/coderextreme/X3DJSONLD/src/main/lib/stylesheets/X3dToPython.xslt#606)
      processing /X3D/Scene[1]/ProtoDeclare[1]
   at xsl:apply-templates 
(file:/home/coderextreme/X3DJSONLD/src/main/lib/stylesheets/X3dToPython.xslt#606)
      processing /X3D/Scene[1]
   at xsl:apply-templates 
(file:/home/coderextreme/X3DJSONLD/src/main/lib/stylesheets/X3dToPython.xslt#123)
      processing /X3D
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time:  2.840 s
[INFO] Finished at: 2022-01-10T17:59:22-06:00
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.codehaus.mojo:xml-maven-plugin:1.0.2:transform (default) on project 
X3DJSONLD: Failed to transform input file 
/home/coderextreme/X3DJSONLD/src/main/data/MaterialModulator.x3d: A 
sequence of more than one item is not allowed as the first argument of 
normalize-space() ("", "", ...)  -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MaterialModulator.x3d
Type: model/x3d+xml
Size: 6504 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220110/95a0af25/attachment.x3d>


More information about the x3d-public mailing list