<p dir="ltr">Also note that I think the xmlns:ds attribute may be present in digitally signed and encrypted files (XMLSecurity).  We want to make sure the stylesheets can process these files.</p>
<div class="gmail_quote">On Mar 10, 2016 1:28 PM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We discussed this today.<br>
<br>
Another important reference:<br>
<br>
6.2 Namespace Defaulting<br>
<a href="https://www.w3.org/TR/xml-names/#defaulting" rel="noreferrer" target="_blank">https://www.w3.org/TR/xml-names/#defaulting</a><br>
<br>
It appears that xmlns="someURI" is legal in any XML.<br>
<br>
We therefore should likely follow your suggestion John to add the following to X3D schema and associated tools:<br>
<br>
        xmlns="<a href="http://www.web3d.org/specifications/x3d" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d</a>"<br>
<br>
This would be version independent... the X3D version attribute is how you specify that, along with compatible DTD and X3D Schema references.<br>
<br>
Example, where middle line inserts xmlns:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "<a href="http://www.web3d.org/specifications/x3d-3.3.dtd" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d-3.3.dtd</a>"><br>
<X3D profile='Immersive' version='3.3'<br>
 xmlns="<a href="http://www.web3d.org/specifications/x3d" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d</a>"<br>
 xmlns:xsd='<a href="http://www.w3.org/2001/XMLSchema-instance" rel="noreferrer" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>'<br>
 xsd:noNamespaceSchemaLocation='<a href="http://www.web3d.org/specifications/x3d-3.3.xsd" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d-3.3.xsd</a>'><br>
<br>
"How we currently do it" remains documented at<br>
<br>
        X3D Scene Authoring Hints: Validation of X3D Scenes using DTD and XML Schema<br>
        <a href="http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Validation" rel="noreferrer" target="_blank">http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Validation</a><br>
<br>
We will look closely at XML specifications before adding this... all comments welcome.<br>
<br>
<br>
On 3/6/2016 9:57 PM, Don Brutzman wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Apologies for late response, hadn't seen this earlier.  Thanks for bringing this up, it is important.<br>
<br>
On 3/2/2016 7:55 AM, John Carlson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I note that X3D-Edit does not support the xmlns attribute fairly well, so documents coming out of XMLSerializer in Chrome and perhaps other browsers will be seriously broken.  Also the X3D to JSON stylesheet seems to croak with no output.  Here’s an example scene out of an XML Serializer.  Please support xmlns.  If I’ve got the wrong namespace, let me know.  There appear to be many options.<br>
<br>
Thanks!<br>
<br>
John<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "<a href="http://www.web3d.org/specifications/x3d-3.3.dtd" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d-3.3.dtd</a>"><br>
<X3D xmlns="<a href="http://www.web3d.org/specifications/x3d-namespace" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d-namespace</a>" profile="Immersive" version="3.3" xsd:noNamespaceSchemaLocation="<a href="http://www.web3d.org/specifications/x3d-3.3.xsd" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d-3.3.xsd</a>" id="x3dele" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="noreferrer" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><head/><br>
</blockquote>
[...]<br>
<br>
Are you thinking of <x3d:X3D/> elements within an XHTML document that has no namespaces for html elements?<br>
<br>
The Scene Authoring Hints document the namespace configuration that is used in all of the examples.<br>
<br>
=================================================<br>
Validation of X3D Scenes using DTD and XML Schema<br>
<a href="http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Validation" rel="noreferrer" target="_blank">http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Validation</a><br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN"<br>
                      "<a href="http://www.web3d.org/specifications/x3d-3.3.dtd" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d-3.3.dtd</a>"><br>
<X3D profile="Immersive" version="3.3"<br>
   xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="noreferrer" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
    xsd:noNamespaceSchemaLocation="<a href="http://www.web3d.org/specifications/x3d-3.3.xsd" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d-3.3.xsd</a>"><br>
=================================================<br>
<br>
If I recall correctly, the combined definition of those last 2 attributes is what formally legitimized a no-namespace X3D document.<br>
<br>
Besides XML Schema, it looks like the other defining W3C reference is<br>
<br>
     Namespaces in XML 1.0 (Third Edition)<br>
     <a href="https://www.w3.org/TR/xml-names/" rel="noreferrer" target="_blank">https://www.w3.org/TR/xml-names/</a><br>
<br>
There was a little work on this topic 6 years ago.  We reserved a namespace uri for X3D that matches the following url.  There is some documentation and links at that location. If it helps, you can use that value with reasonable assurance of stability.  Presumably it is also appropriate for use with X3D v3 series.<br>
<br>
<a href="http://www.web3d.org/specifications/x3d" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d</a><br>
===============================================<br>
| This is a placeholder page pointing to discussions on possible changes to the X3D namespace.<br>
|<br>
| Suggested future common namespace for X3D, if versioning and other issues are addressed:<br>
|<br>
|         <a href="http://www.web3d.org/specifications/x3d" rel="noreferrer" target="_blank">http://www.web3d.org/specifications/x3d</a><br>
|<br>
| References:<br>
|<br>
|     HTML5 Recommendation Additions for X3D: Change to HTML5 section 9.3 Namespaces<br>
|     <a href="http://www.web3d.org/x3d/content/html5/HTML5RecommendationAdditionsForX3D.html#issue-q" rel="noreferrer" target="_blank">http://www.web3d.org/x3d/content/html5/HTML5RecommendationAdditionsForX3D.html#issue-q</a><br>
|<br>
|     <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a> mailing list thread<br>
|     <a href="http://web3d.org/pipermail/x3d-public_web3d.org/2010-January/000580.html" rel="noreferrer" target="_blank">http://web3d.org/pipermail/x3d-public_web3d.org/2010-January/000580.html</a><br>
|<br>
| Questions about this page may be directed to the <a href="http://x3d-public_web3d.org" rel="noreferrer" target="_blank">x3d-public_web3d.org</a> mailing list or brutzman at <a href="http://nps.edu" rel="noreferrer" target="_blank">nps.edu</a><br>
===============================================<br>
<br>
This namespace uri was proposed during the era when HTML5 draft was considering X3D and other namespaces for integration.  A variety of changes occurred to the HTML5 draft in subsequent years.<br>
<br>
The approved HTML5 section is now found at<br>
<br>
<a href="https://www.w3.org/TR/html5/infrastructure.html#namespaces" rel="noreferrer" target="_blank">https://www.w3.org/TR/html5/infrastructure.html#namespaces</a><br>
===============================================<br>
| 2.8 Namespaces<br>
|<br>
| The HTML namespace is: <a href="http://www.w3.org/1999/xhtml" rel="noreferrer" target="_blank">http://www.w3.org/1999/xhtml</a><br>
|<br>
| The MathML namespace is: <a href="http://www.w3.org/1998/Math/MathML" rel="noreferrer" target="_blank">http://www.w3.org/1998/Math/MathML</a><br>
|<br>
| The SVG namespace is: <a href="http://www.w3.org/2000/svg" rel="noreferrer" target="_blank">http://www.w3.org/2000/svg</a><br>
|<br>
| The XLink namespace is: <a href="http://www.w3.org/1999/xlink" rel="noreferrer" target="_blank">http://www.w3.org/1999/xlink</a><br>
|<br>
| The XML namespace is: <a href="http://www.w3.org/XML/1998/namespace" rel="noreferrer" target="_blank">http://www.w3.org/XML/1998/namespace</a><br>
|<br>
| The XMLNS namespace is: <a href="http://www.w3.org/2000/xmlns/" rel="noreferrer" target="_blank">http://www.w3.org/2000/xmlns/</a><br>
|<br>
| Data mining tools and other user agents that perform operations on content without running scripts, evaluating CSS or XPath expressions, or otherwise exposing the resulting DOM to arbitrary content, may "support namespaces" by just asserting that their DOM node analogues are in certain namespaces, without actually exposing the above strings.<br>
|<br>
| In the HTML syntax, namespace prefixes and namespace declarations do not have the same effect as in XML. For instance, the colon has no special meaning in HTML element names.<br>
===============================================<br>
<br>
Not sure we ever started a list of possible attribute additions to the X3D element.<br>
<br>
Not yet clear what kind of support is appropriate in our X3D schemas, DTD, schematron and tools like X3D-Edit.<br>
<br>
X3DOM considers x3d like a canvas tag with extensions are found at<br>
<a href="http://doc.x3dom.org/author/configuration.html" rel="noreferrer" target="_blank">http://doc.x3dom.org/author/configuration.html</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Parameter     Values     Default     Description<br>
showLog     true, false     false     Hide or display the logging console<br>
showStat     true, false     false     Hide or display the statistics overlay<br>
showProgress     true, false     true     Hide or show the loading indicator.<br>
PrimitiveQuality     High, Medium, Low, float     High/1.0     Render quality (tesselation level) for Box, Cone, Cylinder, Sphere.<br>
</blockquote></blockquote>
<br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   <a href="tel:%2B1.831.656.2149" value="+18316562149" target="_blank">+1.831.656.2149</a><br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div>