Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Schematron and Track Changes Markup (atict)


Schematron and Track Changes Markup (atict)

Is it possible to use schematron to report on Arbortext change tracking markup?

For instance, here is a fragment of my XML document that contains markup:

<atict:add user="jenmille" time="1478038337">

  <onePieceOfPuzzle id="F1407047"


    <name id="F1407045">

      Credit Categories in Calculation



    <p id="F1407034">

      The calculation process consists

      of multiple phases.


    <ul id="F1411378">

      <li id="F1411381">

        <p id="F1471899">

          If multiple performance measures match a

          credit transaction, then the calculation process

          creates a duplicate of the transaction for

          each of the matched performance measures.






Here is a very generic schematron file that I use to run a completeness check against my document.  I have added the atict namespace to this schematron file.  The rule in this schematron should just output the name of every element.

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet href="" type="text/x-styler" media="editor" alternate="yes"?>

<!--Arbortext, Inc., 1988-2010, v.4002-->

<schema xmlns=""   


<pattern id="listElementNames">

        <rule context="*">

            <report test=".">

            local-name: <value-of select="local-name(.)"/>           

            </report>    `




All elements in the document are output to the schematron report except the atict elements.  I have tried many different ways to just get the atict elements to be recognized by the schematron rules and processor but nothing is working. I have also tried to look at the atict spec as mentioned in the online help: and it is unreachable for me.

Many thanks!



Those were the good old days! I think those links have been broken for about 10 years now...

Regards the Schematron, what I would suggest as a starting place is to try get it working outside of Arbortext, then bring it back in. I don't see any obvious errors in your .sch definition. One thing I wonder is if the atict:* stuff has been magically stripped by Arbortext by the time the Schematron is applied?


I think there's 2 possible things blocking you from what you want here. First, like Gareth said, it's possible the atict tags get stripped before the schematron is run. Second, I know from experience that without some changes to the schematron file and some ACL coding, elements with non-schematron namespaces won't end up in the report file. In my case I needed to add some extra stuff to the output file and wanted to define that in the schematron file. Because of that, my foreign namespace was in the schematron file while yours is in the document the schematron is applied to. So I'm not sure my fix will apply 100% to your situation. In case it helps, here's how I was able to do it:

First, change your schematron root element to look like this

<iso:schema xmlns:iso=""">

Then change all your tags to include the iso namespace, like <iso:pattern id="listElementNames">

Next, you'll need to add a compositionframeworkhook (search for it in help) using the ACL add_hook() function. add_hook() needs to be called before you run the schematron. The hook function you define should look like this:

function schematron_compose_hook($doc, $type, $where, $params[]) {

   if($where != $compose::HK_CFTI_INITIAL || basename($params['stylesheet']) != 'ptc_svrl_for_xslt2.xsl') { return 0; }

   $params['transformerParams'] = 'allow-foreign=true||' . $params['transformerParams'];


You might be able to determine whether the atict tags are getting stripped in that hook function, too. The "$doc" parameter is the id to the doc the schematron is being applied to, so you can use some ACL function calls from within that "if" block to see whether they exist in the doc at that point.


Thank you for the great suggestions.  I will report back once I get a little further along.

Top Tags