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] XML Schema and XPointer

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] XML Schema and XPointer
  • From: "Phil Fuhlman" <pfuhlman@Dexma.com>
  • Date: Wed, 28 May 2003 10:43:47 -0500
  • Importance: normal
  • Priority: normal
  • Thread-index: AcMlCJc4AzwxryHwTxS4RtcNqHIT1AAJr6DQ
  • Thread-topic: [xml-dev] 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@cs.haifa.ac.il]
Sent: Wednesday, May 28, 2003 6:01 AM
To: xml-dev@lists.xml.org
Subject: [xml-dev] 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@cs.haifa.ac.il
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>





 

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

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