On Thu, Jul 30, 2020 at 5:23 PM Willem Van Lishout
willemvanlishout(_at_)gmail(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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
--~----------------------------------------------------------------
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
--~--