bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug xml/26322] New: AElfred: Newline reference in attribute value is wr


From: mike at saxonica dot com
Subject: [Bug xml/26322] New: AElfred: Newline reference in attribute value is wrongly normalized
Date: 16 Feb 2006 15:31:45 -0000

A newline written as a character reference (& # x 0 a ;) in an attribute value
is wrongly normalized to a single space. This is illustrated by the following
XSLT 2.0 stylesheet:

<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:variable name="endline" select="'&#x0a;'"/>

<xsl:template name="main">
<out><xsl:value-of select="string-to-codepoints($endline)"/></out>
</xsl:template>

</xsl:stylesheet>

When this is parsed using AElfred (and run using Saxon, no source document
required) it produces the incorrect output 

<out>32</out>

showing that the newline has been replaced by a space.


-- 
           Summary: AElfred: Newline reference in attribute value is wrongly
                    normalized
           Product: classpath
           Version: 0.21
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: xml
        AssignedTo: dog at gnu dot org
        ReportedBy: mike at saxonica dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26322





reply via email to

[Prev in Thread] Current Thread [Next in Thread]