[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: [relax-ng-comment] Mixing patterns and (empty) tags
If someone has a Schematron implementation using the EXSLT extensions, then the regexp:match() function will be available. For usage, see http://www.exslt.org/regexp/index.html It should only take the addition of xmlns:regexp="http://exslt.org/regular-expressions" extension-element-prefixes="regexp" to the output XSLT template for Schematron, for anyone using an XSLT which provides the EXSLT extensions. I will add this to the open source templates. What is the latest news on RELAX NG adding regular expression support of text? Cheers Rick Jelliffe ----- Original Message ----- From: "Daniel Prager" <danielp@deakin.edu.au> To: "Rick Jelliffe" <ricko@topologi.com>; "relax-ng" <relax-ng-comment@lists.oasis-open.org> Sent: Monday, September 30, 2002 2:39 PM Subject: Re: [relax-ng-comment] Mixing patterns and (empty) tags > Hi Rick > > Thanks for your reply. > > > If you build in the idea that you may have a RELAX + Schematron > > combination from the beginning, you may find you can > > get the best of both worlds: a pair of nice relatively simple schemas. > > Fair comment. In my case, however, co-occurrence constraints > seem to enter in at a lower level of improtance, hence I've started > (some time ago now!) with the grammar-based approaches. > > However, I'd certainly have a good look at Schematron if it helped > to resolve the current impasse. But from Eddie's suggestion it > appears that it doesn't actually help owing to the absence of > the ability to test against regular expressions. Is that correct? > > The mythical RNG schema > > <element name="example"> > <interleave> > <data type="token"> > <param name="pattern">[a-zA-Z0-9]+</param> > </data> > <element name="a"> <empty/> </element> > <element name="b"> <empty/> </element> > <element name="c"> <empty/> </element> > </interleave> > </element> > > would validate my original example (now corrected!) > > <example> > The quick <a/> brown fox <b/> <a/> jumped <c/> over the lazy dog 5 times <c/> > </example> > > but would reject > > <example> > An <a/> example <b/> <a/> containing characters such as *&^%$#. <c/> > </example> > > Can Schematron (possibly + RELAX NG) do better in this case? > > > Cheers > > Daniel > > > > ---------------------------------------------------------------- > To subscribe or unsubscribe from this elist use the subscription > manager: <http://lists.oasis-open.org/ob/adm.pl>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC