Subject: Re: [xsl] Source code formatting From: "Mukul Gandhi gandhi.mukul@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 30 Jul 2020 12:58:18 -0000 |
On Thu, Jul 30, 2020 at 5:23 PM Willem Van Lishout willemvanlishout@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Attribute-value normalization seems to replace the CR with a space, so I > think that is expected behavior. > You're right. The following XSD document, when given the same XML document I posted previously, reports the XML document as valid (32 is codepoint value of the space character), <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="X"> <xs:complexType> <xs:attribute name="att_1" type="xs:string"/> <xs:assert test="string-length(@att_1) = 2"/> <xs:assert test="string-to-codepoints(substring(@att_1, 1)) = 32"/> </xs:complexType> </xs:element> </xs:schema> Thanks for the clarification. -- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Source code formatting, Willem Van Lishout w | Thread | [xsl] Balisage Bard: On performance, Michael Kay mike@xxx |
Re: [xsl] Source code formatting, Willem Van Lishout w | Date | [xsl] Balisage Bard: On performance, Michael Kay mike@xxx |
Month |