Re: [xml-dev] schema keyref to other schema.

From
Bryan Rasmussen <>
To
Rick Jelliffe <>
Date
2005-02-23T09:47:15Z
ID
<>
Thread
Re: [xml-dev] schema keyref to other schema.
> 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?