Re: [xsl] XSLT program that generates XSD, the XSD has a pattern facet, the regex has curly braces, the curly braces are causing me trouble

Subject: Re: [xsl] XSLT program that generates XSD, the XSD has a pattern facet, the regex has curly braces, the curly braces are causing me trouble
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Jul 2017 13:58:55 -0000
>> Note that replacing the curly braces with their character references also
failed:
>>
>> <xs:pattern value="[a-z\&#x7B;\ &#x7D;]*" />
>
> Because XSD doesn't care what syntax is used in the stylesheet for the
characters to be used in the logic.
>

No, that's not the reason. The reason is that the stylesheet is parsed using
an XML parser, and by the time the XSLT processor gets to see it, any
distinction between "&#x7B;" and "{" has long disappeared.

Michael Kay
Saxonica

Current Thread