[Home] [By Thread] [By Date] [Recent Entries]



> In Schematron, your constraint can be expressed by validating
> testForeignKey.xml with
> 
> <pattern>
>   <rule context="foreignKey">
>      <assert test="document('primary-key.xml')//primaryKey=current()">
>      The foreignKey element should contain a value for which there
>      is a correspondinh primaryKey element in the TestKey.xml file.
>      </assert>
>   </rule>
> </pattern>
> 
Has the use of the document function been standardised now? I remembered it used
to just be allowed in the xslt implementation. Which other implementations, if
any, support it?


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member