[x3d-public] Problematic validation of reformatted VRML meta-tag imports

Anthony Judge anthony.judge at gmail.com
Fri Sep 18 02:28:14 PDT 2015


I have been doing a number of exports from Stella Polyhedron Navigator
into VRML -- then imported into X3D Edit.

The source VRML is, for example:

>>>>

#VRML V2.0 utf8
# Truncated Dodecahedron (10.10.3), W10, p24
# Generated by 'Stella4D', Version 5.3
# Author: Robert Webb
# Web site: http://www.software3d.com/Stella.php
# Licensed to: Anthony Judge
# Date: 10:29:55, 3 September 2015
#
# Copyright (C) Robert Webb, 2001-2013.
# This copyright notice and the above
# information must be kept intact.

WorldInfo {
  title "Truncated Dodecahedron (10.10.3), W10, p24"
  info [
  "Truncated Dodecahedron (10.10.3), W10, p24"
  "Generated by 'Stella4D', Version 5.3"
  "Author: Robert Webb"
  "Web site: http://www.software3d.com/Stella.php"
  "Licensed to: Anthony Judge"
  "Date: 10:29:55, 3 September 2015"
  ""
  "Copyright (C) Robert Webb, 2001-2013."
  "This copyright notice and the above"
  "information must be kept intact."
  ]
}

<<<

This gets restructured by the X3D Edit importer to something like:

>>>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN"
"http://www.web3d.org/specifications/x3d-3.2.dtd">
<X3D version='3.2' profile='Immersive'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.2.xsd'>
 <head>
   <meta name='title' content='Cubocta.x3d'/>
   <meta name='description' content='*enter description here,
short-sentence summaries preferred*'/>
   <meta name='creator' content='*enter name of original author here*'/>
   <meta name='translator' content='*if manually translating
VRML-to-X3D, enter name of person translating here*'/>
   <meta name='created' content='*enter date of initial version here*'/>
   <meta name='translated' content='03 September 2015'/>
   <meta name='modified'    content='03 September 2015'/>
   <meta name='version' content='*enter version here*'/>
   <meta name='reference' content='*enter reference citation or
relative/online url here*'/>
   <meta name='reference' content='*enter additional url/bibliographic
reference information here*'/>
   <meta name='requires' content='*enter reference resource here if
required to support function, delivery, or coherence of content*'/>
   <meta name='rights' content='*enter copyright information here*
Example:  Copyright (c) Web3D Consortium Inc. 2006'/>
   <meta name='drawing' content='*enter drawing filename/url here*'/>
   <meta name='image' content='*enter image filename/url here*'/>
   <meta name='MovingImage' content='*enter movie filename/url here*'/>
   <meta name='photo' content='*enter photo filename/url here*'/>
   <meta name='subject' content='*enter subject keywords here*'/>
   <meta name='accessRights' content='*enter permission statements or
url here*'/>
   <meta name='warning' content='*insert any known warnings, bugs or
errors here*'/>
   <meta name='identifier' content='http://*enter online url address
for this file here*
/C:\laetusa\docs10s\images\climmeta_files\critch\Cubocta.x3d'/>
   <meta name='generator' content='Vrml97ToX3dNist,
http://ovrt.nist.gov/v2_x3d.html'/>
   <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
   <meta name='license' content='../../license.html'/>
 </head>
 <Scene>
  <WorldInfo  info='Generated by Stella4D, Version 5.3;
Author/Copyright: Robert Webb (http://www.software3d.com/Stella.php);
licensed to: Anthony Judge Date: 3 September 2015 2001-2013' />

<<<

I accept that any such reformatting is something for the user to be
attentive to and that the importer cannot take appropriate account of
multiple third party VRML exports.

My comment relates to the validation of such an import which
immediately gives an error due to the formatting of the WorldInfo
field as created by the importer. That an error should be detected is
fine. The problem is that the error message focuses on <Scene> and
children, but does not indicate the line generating that error.

My provisional solution has been to remove all content from the
WorldInfo field -- the result then works. But that solution took time
to discover with the aid of feedback -- due to nesting of quotes, etc
in that field (and possibly other issues)

Tony

-- 
Anthony Judge
<anthony.judge at gmail.com>
www.laetusinpraesens.org



More information about the x3d-public mailing list