xsl-list
[Top] [All Lists]

Re: [xsl] Schema - match &Ouml

2011-02-03 05:34:17
On 03/02/2011 10:08, Szabo, Patrick (LNG-VIE) wrote:
Hi,

I'm writing a xsd and i want to restrict a string to satisfie a pattern.
Currently it looks like this:

([0-9]{1,2}([a-z]|\-[0-9]{1,2}|[,]\s{0,1}(Beilage | Newsletter 
[A-Za-züäö;]*))?|[0-9]{4})

Unfortunately after Newsletter there can also be entities like&Ouml.
How do i specify that in a schema ?!

You don't. Validation is done after entity expansion - the schema validator does not see the entity reference, it sees the character that it expands to.

Michael Kay
Saxonica

--~------------------------------------------------------------------
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>