Skip to main content
1-Visitor
February 12, 2014
Question

Context Checking All Files in a Map at once?

  • February 12, 2014
  • 11 replies
  • 2824 views

Perhaps I'm missing something obvious here, but it seems like there should be a way for Arbortext Editor to validate all of the XML files that are referenced from the same map or bookmap. A Completeness Check happily reports everything is OK, even when referenced files have gross Context Errors.


One can open a file with context errors from a <topicref> within a map, and the Editor simply either shows a red element where the problem is, or simply adds elements to "fix" the problem. It does not turn context rules off and report an error.


Is there a way, through AE, the AE command line, or through custom ACL to check a related file set without having to open every file? Does this require the use of an external XML parser?


Thanks!

    11 replies

    1-Visitor
    February 14, 2014

    Hi Bill,


    You can find Schematron instructions in the Arbortext Document Types Guide.


    To reference a Schematron file, it just needs to be saved in your doctypes folder with the same name as the doctype. Alternatively, you can specify an alternate location in your dcf or using ACL doc_type_schematron_file() (v6.1). The Schematron will run along with "Check Completeness" and provide messages in the resulting pop-up.


    Schematron itself is a well-documented standard. You shold be able to find lots of documentation online.


    -Jeff



    In Reply to Bill Duncan:



    Hi Jeff,


    I found schematron.acl in the AE directory structure, and looking at the comments, it appears to have the kind of function for which I'm looking. Are you aware of any references or instructions for how one might leverage this function? I didn't find much in the Customizing or Admin guides.



    Thanks for the post!


    Bill