[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML Schema and XPointer


xsd processcontents
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@c...
http://cs.haifa.ac.il/~shlomo/


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.