<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11/3/2015 11:10 AM, Don Brutzman
      wrote:<br>
      <br>
      See below...<br>
      <br>
      <br>
    </div>
    <blockquote cite="mid:5639069D.8000503@nps.edu" type="cite">Thanks
      for the good thinking. <br>
      <br>
      Some time ago, when first looking at HTML lower-case elements and
      X3DOM integration, there was good dialog on the mail lists.  No
      doubt available in the archives. <br>
      <br>
      It would appear that both forms (CamelCase and
      lowercase/miXedcAsE) are desirable for X3D authors depending on
      their html publication context. <br>
      <br>
      At that stage I created a stylesheet that creates a table for
      producing lower-case version of X3D element names and attributes. 
      It walks the X3D schema in a manner similar to what you are
      suggesting. <br>
      <br>
      <a class="moz-txt-link-freetext"
        href="http://www.web3d.org/x3d/stylesheets/">http://www.web3d.org/x3d/stylesheets/</a>
      <br>
      <a class="moz-txt-link-freetext"
href="http://www.web3d.org/x3d/stylesheets/X3dElementsLowerCaseTable.html">http://www.web3d.org/x3d/stylesheets/X3dElementsLowerCaseTable.html</a>
      <br>
      <a class="moz-txt-link-freetext"
href="http://www.web3d.org/x3d/stylesheets/X3dAttributesLowerCaseTable.html">http://www.web3d.org/x3d/stylesheets/X3dAttributesLowerCaseTable.html</a>
      <br>
      <a class="moz-txt-link-freetext"
href="http://www.web3d.org/x3d/stylesheets/X3dElementsAttributesLowerCaseTable.txt">http://www.web3d.org/x3d/stylesheets/X3dElementsAttributesLowerCaseTable.txt</a>
      <br>
      <a class="moz-txt-link-freetext"
href="http://www.web3d.org/x3d/stylesheets/X3dElementsAttributesLowerCaseTableConstruction.xslt">http://www.web3d.org/x3d/stylesheets/X3dElementsAttributesLowerCaseTableConstruction.xslt</a>
      <br>
      <br>
      Just tuned them up a little.  Might need more precise filtering to
      avoid duplicates, etc. <br>
      <br>
      Hopefully this is useful. <br>
      <br>
      As you point out, the X3D Tidy stylesheet looks at this task too.
      <br>
      <br>
      <a class="moz-txt-link-freetext"
        href="http://www.web3d.org/x3d/stylesheets/X3dTidy.html">http://www.web3d.org/x3d/stylesheets/X3dTidy.html</a>
      <br>
      <a class="moz-txt-link-freetext"
        href="http://www.web3d.org/x3d/stylesheets/X3dTidy.xslt">http://www.web3d.org/x3d/stylesheets/X3dTidy.xslt</a>
      <br>
      <br>
      At this point, it might be good to articulate any use cases and
      the relevant HTML5 prose on case sensitivity. <br>
    </blockquote>
    <br>
    <br>
    <a class="moz-txt-link-freetext"
      href="http://www.w3.org/TR/html5/syntax.html#writing">http://www.w3.org/TR/html5/syntax.html#writing</a>
    (W3C Recommendation 28 Oct 2014)<br>
    8.1 Writing HTML documents - last paragraph <br>
    <br>
    <blockquote>Many strings in the HTML syntax (e.g. the names of
      elements and their attributes) are case-insensitive, but only for
      <a
href="http://www.w3.org/TR/html5/infrastructure.html#uppercase-ascii-letters">uppercase

        ASCII letters</a> and <a
href="http://www.w3.org/TR/html5/infrastructure.html#lowercase-ascii-letters">lowercase

        ASCII letters</a>. For convenience, in this section this is just
      referred to as "case-insensitive".<br>
    </blockquote>
    <br>
    <br>
    <br>
    Leonard Daly<br>
    <br>
    <br>
    <br>
    <br>
    <blockquote cite="mid:5639069D.8000503@nps.edu" type="cite"> <br>
      Open source.  All suggestions, improvements or additions welcome.
      <br>
      <br>
      <br>
      On 11/3/2015 9:34 AM, Andreas Plesch wrote: <br>
      <blockquote type="cite">Since the idea of having a x3d document
        which is conforming as much as possible is attractive, I am
        thinking of a tool which corrects element names and attribute
        names to their correct case sensitive spelling. Is there such a
        tool ? <br>
        <br>
        In principle I think it could work by: <br>
        1) extract all element and attribute names from the .dtd and/or
        schema <br>
        2) go through all elements (recursively) in (nonconforming) x3d
        document <br>
        2a)  normalize element name to lower-case and see if there is a
        corresponding normalized node name in dtd <br>
        2b) if there is replace with correct, case sensitive element
        name <br>
           if not flag as unknown (or ignore, optionally eliminate) <br>
        2c) do the same for all used attribute names <br>
        <br>
        This would work for most if not all names since they can all
        (most?) be distinguished in a case insensitive manner. <br>
        <br>
        The tool of choice would be a xsl style sheet which may have to
        be generated by another stylesheet which processes the
        .dtd/schema. What would be other strategies (going through json)
        ? How would one go about this in more detail ? Perhaps the
        x3d-tidy.xsl style sheet is a starting point ? It looks
        daunting. <br>
        <br>
        However, I would probably start much more straightforwardly by
        looking at <br>
        <a class="moz-txt-link-freetext"
href="http://www.web3d.org/specifications/X3dDoctypeDocumentation3.3.html">http://www.web3d.org/specifications/X3dDoctypeDocumentation3.3.html</a>
        and <br>
        <a class="moz-txt-link-freetext"
href="http://www.web3d.org/specifications/X3dSchemaDocumentation3.3/x3d-3.3.html">http://www.web3d.org/specifications/X3dSchemaDocumentation3.3/x3d-3.3.html</a>
        <br>
        to assemble a list and then use unix tools such as sed/awk and
        such <br>
        to transform the x3d. What is used to generate the above
        documentation from the .dtd/xsd ? <br>
        <br>
        Any input much appreciated, <br>
        <br>
        Andreas <br>
        <br>
        <br>
        <br>
        <br>
        _______________________________________________ <br>
        x3d-public mailing list <br>
        <a class="moz-txt-link-abbreviated"
          href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a> <br>
        <a class="moz-txt-link-freetext"
          href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
        <br>
        <br>
      </blockquote>
      <br>
      <br>
      all the best, Don <br>
    </blockquote>
    <br>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <font class="tahoma,arial,helvetica san serif" color="#333366">
        <font size="+1"><b>Leonard Daly</b></font><br>
        X3D Co-Chair<br>
        Cloud Consultant<br>
        President, Daly Realism - <i>Creating the Future</i>
      </font></div>
  </body>
</html>