OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]


> 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?





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS