atom feed23 messages in org.oasis-open.lists.relax-ng-commentRe: [relax-ng-comment] Mixing pattern...
FromSent OnAttachments
Daniel PragerSep 26, 2002 7:48 pm 
Michael FitzgeraldSep 27, 2002 10:34 am 
Michael FitzgeraldSep 27, 2002 5:02 pm 
Michael FitzgeraldSep 28, 2002 11:31 pm 
Daniel PragerSep 29, 2002 6:41 pm 
Eddie RobertssonSep 29, 2002 7:16 pm 
Daniel PragerSep 29, 2002 8:37 pm 
Rick JelliffeSep 29, 2002 9:11 pm 
Daniel PragerSep 29, 2002 9:41 pm 
Rick JelliffeSep 30, 2002 2:04 am 
Yonekura KojiSep 30, 2002 3:28 am 
Robert KobergOct 7, 2002 11:05 am 
didier demanyOct 8, 2002 1:35 am 
Robert KobergOct 8, 2002 1:45 am 
Robert KobergOct 8, 2002 1:48 am 
Kohsuke KAWAGUCHIOct 8, 2002 6:32 am 
Robert KobergOct 9, 2002 11:50 am 
MURATA Makoto (FAMILY Given)Oct 9, 2002 5:26 pm 
Eddie RobertssonOct 14, 2002 4:24 pm 
Robert KobergDec 3, 2002 6:52 am 
Michael FitzgeraldDec 3, 2002 8:43 am 
James ClarkDec 3, 2002 8:57 pm 
Robert KobergDec 4, 2002 3:09 am 
Subject:Re: [relax-ng-comment] Mixing patterns and (empty) tags
From:Rick Jelliffe (ric@topologi.com)
Date:Sep 30, 2002 2:04:08 am
List:org.oasis-open.lists.relax-ng-comment

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?

----- Original Message ----- From: "Daniel Prager" <dani@deakin.edu.au> To: "Rick Jelliffe" <ric@topologi.com>; "relax-ng" <rela@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