[x3d-public] Please translate this file with X3dToJson.xslt on the client
John Carlson
yottzumm at gmail.com
Mon May 22 14:42:51 PDT 2017
Don, Roy,
Please translate this file to JSON on the browser client using X3dToJson.xslt and tell me which stylesheet processor you used. I need a second eye on this. Thanks!
John
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile="Immersive" version="3.3" ><head><meta name="title" content="abox.x3d"></meta>
<meta name="creator" content="John Carlson"></meta>
<meta name="generator" content="manual"></meta>
<meta name="identifier" content="https://coderextreme.net/X3DJSONLD/abox.x3d"></meta>
<meta name="description" content="a box"></meta>
</head>
<Scene><Transform><Transform><Shape><Box containerField="geometry" size="140 140 140"></Box>
</Shape>
</Transform>
</Transform>
</Scene>
</X3D>
Here’s what I get:
{ "X3D": {"encoding":"UTF-8",
"@profile":"Immersive",
"@version":"3.3","JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
"head": {
"meta": [
{
"@name":"title",
"@content":"abox.x3d"
},
{
"@name":"creator",
"@content":"John Carlson"
},
{
"@name":"generator",
"@content":"manual"
},
{
"@name":"identifier",
"@content":"https://coderextreme.net/X3DJSONLD/abox.x3d"
},
{
"@name":"description",
"@content":"a box"
},
{
"@name":"translated",
"@content":"22 May 2017"
},
{
"@name":"generator",
"@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
},
{
"@name":"reference",
"@content":"X3D JSON encoding: http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
}
]
},
"Scene": {
"-children":[
{ "Transform":
"-IllegalChildNodeFieldNameNotFound":[
{ "Transform":
"-IllegalChildNodeFieldNameNotFound":[
{ "Shape":
"-geometry":
{ "Box":
{
"@size":[140,140,140]
}
}
}
]
}
]
}
]
}}}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170522/2855fd2a/attachment.html>
More information about the x3d-public
mailing list