I have created a schematron file to look at the event date and see who is available for that event. It seems I can write validation routines for the office:Date to ensure that it is within the calendar date. But I can not check anything else. All the 'context' in the rules that specify the staff elements, such as the available date (staff:Person/staff:Available/staff:DateBegin) will not 'fire'. I can not get to the 'report' or 'assert' statements in the rule. Is there something in the schematron file that we need to add to allow it to go past the office:Event elements and check the other staff:Person elements?

You need to send me also a sample Schematron file in order to find the problem. Is the Schematron embedded in XSD or is in a separate file? Are the rules in different patterns, and you use phases?Make sure that the namepaces for the "office" and "staff" are declared correctly in the Schematron file. Does the Schematron example below work for you, if you replace "OFFICE_NS" and "STAFF_NS" with the correct namespace?

Currently, it only gives me an error on the first pattern, office:Date. I have moved the patterns around to have the office:Date checked last, and it still only checks the office:Date. It does not find any errors in the staff data. I tried your suggestion and it only produces the line for the office:Date, not the staff:Available/staff:DateBegin. I have put both rules in the same pattern and it only hits the office:Date rule. I have placed the office:Date below the staff:Available/staff:DateBegin and it only hits on the office:Date. If I remove the office namespace from everything and the xsd, it will test the staff elements. If I remove the staff namespace from everything and the xsd, it test the office elements. But when I have them both together, it only test the one that is the first occurrence (as I have also reversed the occurrence of the staff and office in the xsd). Is there something specific I can look for in my xsd that may be causing this?

Unfortunately I cannot reproduce the problem. For me it works fine. If I validate the following XML with the Schematron that you provided I get both errors, on "office:Date" and "staff:Available". The only thing that I can think of is to have a different namespace URI for the "staff" in the XML file and Schematron, maybe a space at the end (make sure that are identical).Please send me an email on support at oxygenxml dot com, with a sample XML file, XSD schema and Schematron, so I can reproduce the problem.What oXygen version do you use? I have tested on oXygen XML Editor 18.1 build 2016102619.Do you have any options modified in the oXygen Schematron option page?