- From: Michael Sokolov <msokolov@s...>
- To: John Cowan <johnwcowan@g...>
- Date: Thu, 23 Jan 2014 10:27:37 -0500
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!
-Mike
On 01/22/2014 01:11 PM, John Cowan
wrote:
|
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|