S
shaun roe
I want to ensure that a reference from one element to another is valid,
e.g
<character name="sleepy">
<friends_with name="doc"/>
</character>
<character name="sneezy">
<friends_with name="sleepy"/>
</character>
I want to ensure that the value of the name attribute in "friends_with"
actually exists somewhere in the file as a <character name> somewhere.
(if the above were the entire file, then the first element would be
invalid since "doc" is not a charc ater name in the file)
Can I do this with schematron?
e.g
<character name="sleepy">
<friends_with name="doc"/>
</character>
<character name="sneezy">
<friends_with name="sleepy"/>
</character>
I want to ensure that the value of the name attribute in "friends_with"
actually exists somewhere in the file as a <character name> somewhere.
(if the above were the entire file, then the first element would be
invalid since "doc" is not a charc ater name in the file)
Can I do this with schematron?