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

Re: limits of the generic

  • To: xml-dev@l...
  • Subject: Re: limits of the generic
  • From: Eric van der Vlist <vdv@d...>
  • Date: 01 Oct 2002 09:21:31 +0200
  • In-reply-to: <57373577606.20020930235226@j...>
  • References: <E17w94B-0001LT-00@m...> <57373577606.20020930235226@j...>

test case generic
Hi Jeni,

On Tue, 2002-10-01 at 00:52, Jeni Tennison wrote:

> >> <dt:datatype name="my:UKDate">
> >> <!-- a date in the format DD/MM/YYYY -->
> >> 
> >> <dt:components>
> >>   <dt:component name="day" select="substring(., 1, 2)" />
> >>   <dt:component name="month" select="substring(., 4, 2)" />
> >>   <dt:component name="year" select="substring(., 7, 4)" />
> >> </dt:components>

If you allow the plug, this looks rather parallel to what I am proposing
with xvif (see for instance in my strawman [1] the test cases spilting
dates as a list of tokens [2] or elements [3] which you can also try

I am currently trying to define the basic building blocks of xvif, but
at a later stage, dt:compents(s) could be good candidates as shortcuts.

Xvif doesn't support a test like you've shown, but I am wondering if it
shouldn't support variables in such case this kind of test should be
possible to express...

And of course, as already mentioned, there is no reasons why xvif
couldn't be used either standalone or in other host languages than Relax
NG in which case XSLT would be the number one candidate!

[1] http://downloads.xmlschemata.org/python/xvif/xvif.html

Rendez-vous à Paris.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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