xsl-list
[Top] [All Lists]

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

2017-07-19 08:58:59

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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

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