I found it a little tricky hunting down the proper syntax for this,
so for posterity here is an example of a embedding a schematron
assertion in Relax NG Compact: [sch:pattern [sch:rule [context="meta" sch:assert [ test="count(collection[.='all']) = 1" "all collection must be present"]]]] element collection { text }+ Thanks, John, for the pointer - this is exactly what I needed. -Mike OK so for posterity, in case any On 01/22/2014 02:14 PM, Michael Sokolov
wrote:
I didn't know about the embedding of Schematron rules; sounds very useful: thanks! |