Menu

Validate

Help
2007-03-09
2012-12-07
  • Roger Sperberg

    Roger Sperberg - 2007-03-09

    I like the idea of having some pre-set options for validation. Works for me in the understanding that different schemas might be suitable at different times, or be able to check different things. I'm a convert to the way of thinking that the document isn't the right location for where the schema/dtd is identified.

    Of course, in _my_ list, I want XTM 1.0 and maybe XTM 2.0 soon, and even possibly the TMX Relax NG schema. And I can even see that those choices wouldn't be very useful to most of the other XCE users.

    Is there a way to change the listings under validate? As I think about it, I would likely add some company DTD's used by some documents sent to me.

    And if there's not some easy way, would you consider adding XTM 1.0?

    Thanks,

    Roger

     
    • gnschmidt

      gnschmidt - 2007-03-09

      Hi Roger, just to make sure I understand you correctly - what you need is a mechanism that validates against the XTM DTDs without a specified DOCTYPE in the instance document?

      It's true that the current template files do specify the DOCTYPE and validation/validation-as-you-type/etc. only works if it's there.

      -Gerald

       
    • Roger Sperberg

      Roger Sperberg - 2007-03-09

      Yes, that's what I am thinking.

      I haven't tried any of the options listed in the XML | Validate submenu.

      One option there is xhtml-strict and the next option just xhtml. From this, I have assumed that I could have a hand-coded html file and choose ctrl-6 or ctrl-7 and have the document validated against one or the other dtd, even without a DOCTYPE declaration at the top of the document. And I've assumed the other options would behave similarly.

      If that's not the case, then I just misunderstood how that sub-menu works and what it's for.

      The first two options on the sub-menu -- DTD and XML Schema -- I took to be "validate against the schema identified in the document" and the third option -- Relax NG... -- to be "validate against the schema I will identify." (I've only used the first, and it worked fine.)

      Hm-m. I guess it's that expected behavior of the Relax NG validation that leads me to regard the following options as "I didn't specify a schema in the document, but use this one."

      Anyway, if I'm far off-base, you can see my thinking here. And if I'm not, then you have the user thinking process confirmed.

      Hope I'm not. :-)

      Roger

       
    • gnschmidt

      gnschmidt - 2007-03-09

      Yes, that's absolutely right. Fortunately, RELAX NG obliged me to offer a separate route (because it doesn't define a standard association method). The Validate>Relax NG menu is populated from the contents of the folder C:\Program Files\XML Copy Editor\rng (on Windows). If you add more RELAX NG schemas to this folder, they will appear in the menu.

      If you come across a RELAX NG schema that you feel will be useful to many users, just let me know and I'll add it to the standard download.

      Best,
      Gerald

       

Log in to post a comment.