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

Re: Facets

From: <noah_mendelsohn@us.ibm.com>
Date: Thu, 17 Feb 2005 10:53:27 -0500
To: "Bryce K. Nielsen" <bryce@sysonyx.com>
Cc: xmlschema-dev@w3.org
Message-ID: <OFF9E3337E.6D632F48-ON85256FAB.00577E7E@lotus.com>
Re: Facets

Another way to do this, which may or may not be convenient, is to use an 
XSLT script to tailor a schema for each of your hardware types.  XSLT can 
read multiple documents, so you could have one input document that's a 
skeleton schema, and another with the constraint values, using XSLT to 
merge them.  If you prefer, you could burry the entire skeleton into the 
XSL stylesheet as a template, using a single input document with the key 
values. 

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------








"Bryce K. Nielsen" <bryce@sysonyx.com>
Sent by: xmlschema-dev-request@w3.org
02/16/05 12:42 AM

 
        To:     <xmlschema-dev@w3.org>
        cc:     (bcc: Noah Mendelsohn/Cambridge/IBM)
        Subject:        Re: Facets



> This method only works if I had previous knowledge of the enumerated
values.
> In my case users create their own set of Types (not a subset of
acceptable
> values by my schema, but literally using their own naming conventions).
For
> instance, depending on the hardware under test, the user will compose a
> totally different measurement Types.
>

Ah. Well, W3C XML Schemas don't inhierently support this "dynamic" schema
contruction. You will probably need to use a stylesheet to validate, or
perhaps schematron.

Bryce K. Nielsen
SysOnyx, Inc. (www.sysonyx.com)
Read the origins of xmlDraft, the Smart XSD Editor:
http://www.sysonyx.com/xml-schema-editor
Received on Thursday, 17 February 2005 15:56:52 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.