[
Lists Home |
Date Index |
Thread Index
]
On Wed, 28 May 2003, Phil Fuhlman wrote:
> Something like this, maybe ? :
>
> <xsd:complexType name="MyLexiconType">
> <xsd:sequence>
> <xsd:any minOccurs="0" maxOccurs="unbounded"
> namespace="//mylexiconserver/mylexicon.xsd" processContents="lax">
> <LexName>LexValue</LexName> <!-- all content here must be defined
> in 'mylexicon.xsd' -->
> </xsd:any>
> </xsd:sequence>
> </xsd:complexType>
>
> The content of the 'minOccurs' and 'maxOccurs' are there for
> completeness... ;)
>
> </pff>
I'm not sure.
Let me be more clear on my intentions:
The lexicon XSD has (among other things) the following definition:
<xsd:element name="lexicon" type="LexiconType">
<xsd:key name="itemIdKey">
<xsd:selector xpath="item"/>
<xsd:field xpath="id"/>
</xsd:key>
</xsd:element>
I will have one XML instance of the lexicon XDS, say lexicon.xml.
I will also have some other XSD say document.xsd and an instance of it, say
document.xml.
I want to be able to define an element or attribute in document.xml which can
point to the item id in lexicon.xml.
My questions are:
1. How to define such a pointer in document.xsd
2. How to actually point using such a pointer from some element
or attribute in document.xml to lexicon.xml?
Thanks.
--
Shlomo Yona
shlomo@cs.haifa.ac.il
http://cs.haifa.ac.il/~shlomo/
|