xsl-list
[Top] [All Lists]

Re: [xsl] constraining values with a pattern facet in relax ng?

2011-07-08 11:55:24
On 07/08/2011 11:26 AM, Birnbaum, David J wrote:
Is it even possible to express these constraints with a regex?

Theoretically, yes.  It may not be a pleasant regex, and given the
desire to constrain the last page to be higher than the first, it’s
going to be huge.  Also, are you really asking users to type an en-dash?
 I am literally the only person I know who does so when not on a Macintosh.

But I would second Wendell.  It sounds like your constraints are both
complex enough and computationally straightforward enough that you are
better off asking your users for the first and last pages, and computing
everything else.

~Chris
-- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“Mankind are more disposed to suffer, while evils are sufferable
 than to right themselves by abolishing the forms to which they
 are accustomed.” — Thomas Jefferson

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>