Oxygen XML Editor
 
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

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?


 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords