Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xmlschema-dev]

From: <wilde825@------.-->
To: "Michael Kay" <mike@--------.--->, <xmlschema-dev@--.--->
Date: 4/6/2008 10:52:00 PM
2.2.4.2 Type Alternative


A type-alternative component (type alternative for short) associates a =
type definition with a predicate. Type alternatives are used in =
conditional type assignment, in which the choice of =B7governing type =
definition=B7 =
<https://webmail.planet.nl/exchange/wilde825@p.../Drafts/RE:%20%5Bxm=
lschema-dev%5D%20%3Cnone%3E.EML/1_text.htm#key-governing-type-elem>  for =
elements governed by a particular element declaration depends on =
properties of the document instance. An element declaration may have a =
{type table} =
<https://webmail.planet.nl/exchange/wilde825@p.../Drafts/RE:%20%5Bxm=
lschema-dev%5D%20%3Cnone%3E.EML/1_text.htm#ed-type_table>  which =
contains a sequence of type alternatives; the predicates on the =
alternatives are tested, and when a predicate is satisfied, the type =
definition paired with it is chosen as the element instance's =
=B7governing type definition=B7 =
<https://webmail.planet.nl/exchange/wilde825@p.../Drafts/RE:%20%5Bxm=
lschema-dev%5D%20%3Cnone%3E.EML/1_text.htm#key-governing-type-elem> .

Note: The provisions for conditional type assignment are inspired by, =
but not identical to, those of [SchemaPath] =
<https://webmail.planet.nl/exchange/wilde825@p.../Drafts/RE:%20%5Bxm=
lschema-dev%5D%20%3Cnone%3E.EML/1_text.htm#bib-schemapath> .

For detailed information on Type Alternatives, see Type Alternatives =
(=A73.12) =
<https://webmail.planet.nl/exchange/wilde825@p.../Drafts/RE:%20%5Bxm=
lschema-dev%5D%20%3Cnone%3E.EML/1_text.htm#cTypeAlternative> .

http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/

and

<alternative
  id = ID =
<http://www.w3.org/TR/2006/WD-xmlschema11-2-20060217/datatypes.html#ID> 
  test = an XPath expression
  type = QName =
<http://www.w3.org/TR/2006/WD-xmlschema11-2-20060217/datatypes.html#QName=
> 
  xpathDefaultNamespace = (anyURI =
<http://www.w3.org/TR/2006/WD-xmlschema11-2-20060217/datatypes.html#anyUR=
I>  | (##defaultNamespace | ##targetNamespace | ##local))
  {any attributes with non-schema namespace . . .}>
  Content: (annotation =
<https://webmail.planet.nl/exchange/wilde825@p.../Drafts/RE:%20%5Bxm=
lschema-dev%5D%20%3Cnone%3E.EML/1_text.htm#element-annotation> ?, =
(simpleType =
<https://webmail.planet.nl/exchange/wilde825@p.../Drafts/RE:%20%5Bxm=
lschema-dev%5D%20%3Cnone%3E.EML/1_text.htm#element-simpleType>  | =
complexType =
<https://webmail.planet.nl/exchange/wilde825@p.../Drafts/RE:%20%5Bxm=
lschema-dev%5D%20%3Cnone%3E.EML/1_text.htm#element-complexType> )?)
</alternative>

http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/#cTypeAlternative

Does this mean that in near future I'd be able to use something (a la =
XSLT) similair to:

 
<complexType name="typeQry[@type='filter']">
  [..]
</complexType>
 
Not fully clear to me. Would be really great. (Type as seen as temp =
replacement by the relative DOM available for xpath.
Robert de Wilde
wilde825@p...

________________________________

Van: Michael Kay [mailto:mike@s...]
Verzonden: vr 4-4-2008 15:43
Aan: wilde825@p...; xmlschema-dev@w...
Onderwerp: RE: [xmlschema-dev] <none>


The next version of XML Schema will be numbered 1.1. It includes quite a =
few new facilities, of which one, "Conditional Type Assignment" seems to =
correspond to what you are looking for. Check the specification at 
 
http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/
 
especially section 3.12.1
 
Michael Kay
http://www.saxonica.com/


________________________________

	From: xmlschema-dev-request@w... =
[mailto:xmlschema-dev-request@w...] On Behalf Of wilde825@p...
	Sent: 04 April 2008 20:17
	To: xmlschema-dev@w...
	Subject: [xmlschema-dev] <none>
=09
=09
	Hello XML-Schema devvers,
	 
	Is there anyone who can give me more information about the development =
of newer Schema version like 2.0? I'd need more support for checking =
co-relation (or how they call it) and using validation based on =
attribute value. If XML Schema isn't being activily developed anymore I =
can look further.
	 
	I hope someone can share this information, because Google wasn't being =
my best friend.
	 
	Hope to here from anyone soon!
	 
	Robert de Wilde
	wilde825@p...



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