[x3d-public] X3dToNodeJS.xslt XML to Node.JS conversion issue?

John Carlson yottzumm at gmail.com
Mon Sep 13 18:35:42 PDT 2021


Errors in X3dToNodeJS.xslt translation below.  There are errors my 
example code, too, but different.  They seem to be more data oriented.

One XML attached.  I will recopy over HAnim files in hopes of 
eliminating issues.

John




/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/DiamondManLOA1.js:147
         this.MetadataSet_HAnimHumanoid.info_4_29_reference = new 
autoclass.SFString("https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/ObjectInterfaces.html#Humanoid");
                                                            ^

TypeError: Cannot set property 'info_4_29_reference' of undefined
     at DiamondManLOA1.initialize 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/DiamondManLOA1.js:147:53)
     at new DiamondManLOA1 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/DiamondManLOA1.js:135:10)
     at Object.<anonymous> 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/DiamondManLOA1.js:469:1)
     at Module._compile (internal/modules/cjs/loader.js:1138:30)
     at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:1158:10)
     at Module.load (internal/modules/cjs/loader.js:986:32)
     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
     at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:71:12)
     at internal/main/run_main_module.js:17:47
indexedfaceset_pixeltexture_entire execution self-validation test 
results: success
indexedfaceset_pixeltexture_plus execution self-validation test results: 
success
t4 execution self-validation test results: success
/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/KoreanCharacter02Chul.js:116
         this.MetadataSet_HAnimHumanoid.info_4_22_reference = new 
autoclass.SFString("https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/ObjectInterfaces.html#Humanoid");
                                                            ^

TypeError: Cannot set property 'info_4_22_reference' of undefined
     at KoreanCharacter02Chul.initialize 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/KoreanCharacter02Chul.js:116:53)
     at new KoreanCharacter02Chul 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/KoreanCharacter02Chul.js:107:10)
     at Object.<anonymous> 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/KoreanCharacter02Chul.js:940:1)
     at Module._compile (internal/modules/cjs/loader.js:1138:30)
     at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:1158:10)
     at Module.load (internal/modules/cjs/loader.js:986:32)
     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
     at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:71:12)
     at internal/main/run_main_module.js:17:47
StringArrayEncodingExamples execution self-validation test results: success
/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/BvhConversion1Illustrated.js:144
         this.MetadataSet_HAnimHumanoid.info_4_59_reference = new 
autoclass.SFString("https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/ObjectInterfaces.html#Humanoid");
                                                            ^

TypeError: Cannot set property 'info_4_59_reference' of undefined
     at BvhConversion1Illustrated.initialize 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/BvhConversion1Illustrated.js:144:53)
     at new BvhConversion1Illustrated 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/BvhConversion1Illustrated.js:135:10)
     at Object.<anonymous> 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/BvhConversion1Illustrated.js:1620:1)
     at Module._compile (internal/modules/cjs/loader.js:1138:30)
     at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:1158:10)
     at Module.load (internal/modules/cjs/loader.js:986:32)
     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
     at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:71:12)
     at internal/main/run_main_module.js:17:47
HAnimModelsHandsFeet execution self-validation test results: success
ViewFrustumExample execution self-validation test results: success
/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/HAnimModelFootLeft.js:128
         this.MetadataSet_HAnimHumanoid.info_4_23_reference = new 
autoclass.SFString("https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/ObjectInterfaces.html#Humanoid");
                                                            ^

TypeError: Cannot set property 'info_4_23_reference' of undefined
     at HAnimModelFootLeft.initialize 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/HAnimModelFootLeft.js:128:53)
     at new HAnimModelFootLeft 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/HAnimModelFootLeft.js:119:10)
     at Object.<anonymous> 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/HAnimModelFootLeft.js:534:1)
     at Module._compile (internal/modules/cjs/loader.js:1138:30)
     at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:1158:10)
     at Module.load (internal/modules/cjs/loader.js:986:32)
     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
     at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:71:12)
     at internal/main/run_main_module.js:17:47
/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/HAnimModelHandLeft.js:136
         this.MetadataSet_HAnimHumanoid.info_4_25_reference = new 
autoclass.SFString("https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/ObjectInterfaces.html#Humanoid");
                                                            ^

TypeError: Cannot set property 'info_4_25_reference' of undefined
     at HAnimModelHandLeft.initialize 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/HAnimModelHandLeft.js:136:53)
     at new HAnimModelHandLeft 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/HAnimModelHandLeft.js:127:10)
     at Object.<anonymous> 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/HAnimModelHandLeft.js:526:1)
     at Module._compile (internal/modules/cjs/loader.js:1138:30)
     at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:1158:10)
     at Module.load (internal/modules/cjs/loader.js:986:32)
     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
     at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:71:12)
     at internal/main/run_main_module.js:17:47
TextExamples execution self-validation test results: success
/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/DiamondManLOA0.js:147
         this.MetadataSet_HAnimHumanoid.info_4_29_reference = new 
autoclass.SFString("https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/ObjectInterfaces.html#Humanoid");
                                                            ^

TypeError: Cannot set property 'info_4_29_reference' of undefined
     at DiamondManLOA0.initialize 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/DiamondManLOA0.js:147:53)
     at new DiamondManLOA0 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/DiamondManLOA0.js:135:10)
     at Object.<anonymous> 
(/home/coderextreme/X3DJSONLD/src/main/node/net/x3djsonld/data/DiamondManLOA0.js:264:1)
     at Module._compile (internal/modules/cjs/loader.js:1138:30)
     at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:1158:10)
     at Module.load (internal/modules/cjs/loader.js:986:32)
     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
     at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:71:12)
     at internal/main/run_main_module.js:17:47

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DiamondManLOA1.x3d
Type: model/x3d+xml
Size: 26125 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210913/54398047/attachment-0001.x3d>


More information about the x3d-public mailing list