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

General question

From: <Smoother@gmx.de>
Date: Wed, 02 Aug 2006 18:28:10 +0200
Message-ID: <20060802162810.127820@gmx.net>
To: xmlschema-dev@w3.org
General question

Hello, I'm new to XML Schema. I've already read the Schema tutorial at w3schools.com but I still have numerous questions:

First, I want to let you know what my XML file looks like:

<root template="rootpage">
  <page1 template="journal">
    <entry1027 template="entry" title="title for entry no. 1027">...</entry1027>    <entryAlpha template="entry" title="some other title">...</entryAlpha>
  </page1>
  <another-page template="a-template">...</another-page>
  <another-page-2nd template="a-template">...</another-page-2nd>
  ...
</root>


As you can see, the file is not strucutred by equal node names (<page /><page /><page />) but nodes with same structure have the same attribute "template".
So instead of xs:element, I search for a possiblity to define a schema for any unspecfific nodes which have a specific attribute value in common.

Can somone please give an example?

- Thanks, S.R.
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
Received on Thursday, 3 August 2006 06:10:31 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.