Hi Robin, Le lundi 12 septembre 2005 à 17:13 +0200, Robin Berjon a écrit : > Hi Eric, > > Eric van der Vlist wrote: > > <attribute name="height"> > > <data type="token"> > > <param name="pattern">[0-9]+%?</param> > > </data> > > </attribute> > > > > the downside is that you loose the semantics of saying that you want a > > value followed by a unit... > > This is an issue that we'd have liked to be able to address in the SVG > RNG. A long while ago I recall something going by the name of "Regular > Fragmentations" which would have been perfect for this. I also recall > that you weren't entirely unrelated to that project :) Has there been > any recent progress on that or on something descended from it?
This is still work in progress for the ISO DSDL project, but not in the same "part" :-) ... A looong time ago (3 years), I did a proposal for DSDL Part 10 - Validation management that I named xvif: http://downloads.xmlschemata.org/python/xvif/xvif.html The principle of this proposal was to allow to plug transformations that you act on XML fragments during the validation. XVIF was flexible enough to change "3%" into "3 %" or <value unit="%">3</value> or whatever that can then be easily validated with a schema language. This proposal had the big downside that, since these micro-transformations were applied during the validation, it required an update of the schema processors before they could support XVIF. While this was technically feasible (I have written a proof of concept implementation with RNG as a host language), this was not something that was acceptable for a part that is supposed to describe how one can combine different schema languages. Now, the issue has reappeared in DSDL 5 Data Type Library Language - DTLL which current Working Draft is Jeni Tennison's proposal http://dsdl.org/0546.htm. Its purpose and principles are different, but that should still be easy enough to define this kind of datatypes. If you're interested, stay posted or better, feel free to join the DSDL project! Eric -- Le premier annuaire des apiculteurs 100% XML! http://apiculteurs.info/ ------------------------------------------------------------------------ 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 --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/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/
