#369 xsl:attribute separator=" "

v8.4
closed
Michael Kay
5
2012-10-08
2005-06-20
Michael Kay
No

If the separator attribute of <xsl:attribute> is given
as " " (a single space) it is wrongly taken as "" (a
zero-length string). More generally, all leading and
trailing spaces in the separator are ignored.

Source fix: in net.sf.saxon.style.XSLAttribute, line
49/50, change

        } else if (f==StandardNames.SEPARATOR) {
            separatorAtt = atts.getValue(a).trim();

to

        } else if (f==StandardNames.SEPARATOR) {
            separatorAtt = atts.getValue(a);

Michael Kay

Discussion

  • Michael Kay
    Michael Kay
    2005-06-20

    Logged In: YES
    user_id=251681

    Here's a workaround. Write:

    separator="{' '}"

    Michael Kay