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

option and sequence element test

Subject: option and sequence element test
From: ac <ac@xxxxxxxxxxxxx>
Date: Sat, 05 Mar 2011 00:05:04 -0500
 option and sequence element test
Hi,

From what I can gather, short of using a schema, it is not possible to have an element check like
element(abc | def, type) or
element(abc | def)
ensuring that only abc or def elements are valid, for example in
<xsl:function name="f:elem" as="element(abc | def)?">
Could it be considered?


and even
<xsl:function name="f:elem" as="element((abc, def), type)*">
for returning sequences (e.g. tuples) of "abc" and "def", for example, as in
<abc>1</abc><def>1</def>
<abc>2</abc><def>2</def>
... or
<last>Skywalker</last><first>Anakin</first>
<last>Skywalker</last><first>Luke</first>


Thank you.

Regards,
ac

Current Thread

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
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-2011 All Rights Reserved.