Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Facets

From: noah_mendelsohn@--.---.---
To: "Bryce K. Nielsen" <bryce@-------.--->
Date: 2/17/2005 5:53:00 AM
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@s...>
Sent by: xmlschema-dev-request@w...
02/16/05 12:42 AM

 
        To:     <xmlschema-dev@w...>
        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






From Farid.Mahini@L... Thu Feb 17 17:13:12 2005
Received: from bart.w3.org ([128.30.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent