You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Gary Lawrence Murphy (JIRA)" <xe...@xml.apache.org> on 2007/08/02 19:56:52 UTC

[jira] Created: (XERCESJ-1262) incorrect rendering of a single space in xsl:text

incorrect rendering of a single space in xsl:text
-------------------------------------------------

                 Key: XERCESJ-1262
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1262
             Project: Xerces2-J
          Issue Type: Bug
    Affects Versions: 2.9.0
         Environment: debian linux with sun java 1.5
            Reporter: Gary Lawrence Murphy


Originally posted as XALANJ-2392 (sorry)

<boo>
moo<xsl:text> </xsl:text>boo
</boo>

renders as "moo boo" in older editions, but in 2.9.0 it renders as mooboo

when I use the current xalan OR xalan 2.5.2 with xercesImpl-2.6.0.jar, I get the correct output, but when I use either xalan with xerces jars from 2.9.0, I get the wrong behaviour.

here's a test case:

test.xml:

<goo>
<foo/>
<foo/>
</goo>

test.xsl:

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" />
<xsl:template match="foo">
<boo>
moo<xsl:text> </xsl:text>boo
</boo>
</xsl:template>
</xsl:stylesheet>

used with the command line:

java org.apache.xalan.xslt.Process -xml -in test.xml -xsl test.xsl 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1262) incorrect rendering of a single space in xsl:text

Posted by "Gary Lawrence Murphy (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517340 ] 

Gary Lawrence Murphy commented on XERCESJ-1262:
-----------------------------------------------

never mind, appears to have been in issue of another jar on the classpath usurping some essential function, in this case the resin.jar from the Caucho resin servlet container; when renamed to _resin.jar (moved to the end of the classpath) the issue goes away.

I tried to close this, but apparently the creator of a ticket is not given that priviledge.

> incorrect rendering of a single space in xsl:text
> -------------------------------------------------
>
>                 Key: XERCESJ-1262
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1262
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>         Environment: debian linux with sun java 1.5
>            Reporter: Gary Lawrence Murphy
>
> Originally posted as XALANJ-2392 (sorry)
> <boo>
> moo<xsl:text> </xsl:text>boo
> </boo>
> renders as "moo boo" in older editions, but in 2.9.0 it renders as mooboo
> when I use the current xalan OR xalan 2.5.2 with xercesImpl-2.6.0.jar, I get the correct output, but when I use either xalan with xerces jars from 2.9.0, I get the wrong behaviour.
> here's a test case:
> test.xml:
> <goo>
> <foo/>
> <foo/>
> </goo>
> test.xsl:
> <?xml version="1.0" ?>
> <xsl:stylesheet version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" indent="yes" />
> <xsl:template match="foo">
> <boo>
> moo<xsl:text> </xsl:text>boo
> </boo>
> </xsl:template>
> </xsl:stylesheet>
> used with the command line:
> java org.apache.xalan.xslt.Process -xml -in test.xml -xsl test.xsl 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Closed: (XERCESJ-1262) incorrect rendering of a single space in xsl:text

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich closed XERCESJ-1262.
-----------------------------------------


Closing as requested.

> incorrect rendering of a single space in xsl:text
> -------------------------------------------------
>
>                 Key: XERCESJ-1262
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1262
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>         Environment: debian linux with sun java 1.5
>            Reporter: Gary Lawrence Murphy
>
> Originally posted as XALANJ-2392 (sorry)
> <boo>
> moo<xsl:text> </xsl:text>boo
> </boo>
> renders as "moo boo" in older editions, but in 2.9.0 it renders as mooboo
> when I use the current xalan OR xalan 2.5.2 with xercesImpl-2.6.0.jar, I get the correct output, but when I use either xalan with xerces jars from 2.9.0, I get the wrong behaviour.
> here's a test case:
> test.xml:
> <goo>
> <foo/>
> <foo/>
> </goo>
> test.xsl:
> <?xml version="1.0" ?>
> <xsl:stylesheet version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" indent="yes" />
> <xsl:template match="foo">
> <boo>
> moo<xsl:text> </xsl:text>boo
> </boo>
> </xsl:template>
> </xsl:stylesheet>
> used with the command line:
> java org.apache.xalan.xslt.Process -xml -in test.xml -xsl test.xsl 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1262) incorrect rendering of a single space in xsl:text

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1262.
-------------------------------------------

    Resolution: Invalid

Xerces has nothing to do with xsl:text or its serialization. Perhaps you're thinking of serializer.jar, though this ships with Xerces for DOM Level 3 serialization support it's a component of the Xalan project.

> incorrect rendering of a single space in xsl:text
> -------------------------------------------------
>
>                 Key: XERCESJ-1262
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1262
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>         Environment: debian linux with sun java 1.5
>            Reporter: Gary Lawrence Murphy
>
> Originally posted as XALANJ-2392 (sorry)
> <boo>
> moo<xsl:text> </xsl:text>boo
> </boo>
> renders as "moo boo" in older editions, but in 2.9.0 it renders as mooboo
> when I use the current xalan OR xalan 2.5.2 with xercesImpl-2.6.0.jar, I get the correct output, but when I use either xalan with xerces jars from 2.9.0, I get the wrong behaviour.
> here's a test case:
> test.xml:
> <goo>
> <foo/>
> <foo/>
> </goo>
> test.xsl:
> <?xml version="1.0" ?>
> <xsl:stylesheet version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" indent="yes" />
> <xsl:template match="foo">
> <boo>
> moo<xsl:text> </xsl:text>boo
> </boo>
> </xsl:template>
> </xsl:stylesheet>
> used with the command line:
> java org.apache.xalan.xslt.Process -xml -in test.xml -xsl test.xsl 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org