[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|