Re: [xsl] Schema - match &Ouml

Subject: Re: [xsl] Schema - match &Ouml
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 03 Feb 2011 11:34:03 +0000
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-zC<C$C6;]*))?|[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

Current Thread