[Home] [By Thread] [By Date] [Recent Entries]

  • To: <xml-dev@l...>
  • Subject: RE: XML Schema and XPointer
  • From: "Phil Fuhlman" <pfuhlman@D...>
  • Date: Wed, 28 May 2003 10:43:47 -0500
  • Importance: normal
  • Priority: normal
  • Thread-index: AcMlCJc4AzwxryHwTxS4RtcNqHIT1AAJr6DQ
  • Thread-topic: XML Schema and XPointer

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>

-----Original Message-----
From: Shlomo Yona [mailto:shlomo@c...]
Sent: Wednesday, May 28, 2003 6:01 AM
To: xml-dev@l...
Subject:  XML Schema and XPointer


Hello,

I have an XML Schema that represents some sort of a lexicon.
In this lexicon there are items which can be referred using an ID.

I am now defining another XML Schema and need to express a method of
pointing
to an item in a lexicon (that is written in an instance of this lexicon
schema).

What would be a good way to point there and still get some sort of
validation
and enforcement from an XML Parser?

For example, would XPointer be a good solution?
If so, how to represent it in the XSD? And how to represent it in the
XML
instance?


Thanks.

-- 
Shlomo Yona
shlomo@c...
http://cs.haifa.ac.il/~shlomo/


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member