Le mardi 18 octobre 2005 à 15:11 +0100, Dave Pawson a écrit :

> I gave up on WXS dates.

What's wrong with:

        <choice>
            <data type="date"/>
            <data type="gYearMonth"/>
            <data type="gYear"/>
        </choice>

or

           <choice>
                <data type="date">
                    <param name="pattern">\d{4}-\d{2}-\d{2}</param>
                </data>
                <data type="gYearMonth">
                    <param name="pattern">\d{4}-\d{2}</param>
                </data>
                <data type="gYear">
                    <param name="pattern">\d{4}</param>
                </data>
            </choice>

if you want to be stricter, impose 4 digits for the year and exclude
time zones?

(note that in that context where I am using date types, I can safely use
\d :-) ...)

> Thanks for the hint on \d.
> 
> What do you think of an extension library for relax NG?
> erng?

I'd say that IMO it would need more than just /s support to justify its
existence :-) ...

Eric

-- 
Don't you think all these XML schema languages should work together?
                                                         http://dsdl.org
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/rng-users/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to