You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2006/01/03 16:10:03 UTC

[jira] Resolved: (XALANJ-2251) Trace Selection Event (-TS) interferes with output (still)

     [ http://issues.apache.org/jira/browse/XALANJ-2251?page=all ]
     
Henry Zongaro resolved XALANJ-2251:
-----------------------------------

    Resolution: Duplicate

The problem you describe seems to have been fixed in Xalan-J 2.5.0.  I believe it's a different problem from that described in XALANJ-1909 (Bugzilla 30129).

It looks like you are actually using the version of Xalan-J that is packaged with the JDK, which happens to be something close to Xalan-J 2.4.1, rather than the version you've requested with the -jar option on the java command.  See the FAQ for more information.[1]

[1] http://xml.apache.org/xalan-j/faq.html#faq-N100D6

> Trace Selection Event (-TS) interferes with output (still)
> ----------------------------------------------------------
>
>          Key: XALANJ-2251
>          URL: http://issues.apache.org/jira/browse/XALANJ-2251
>      Project: XalanJ2
>         Type: Bug
>   Components: Trace-facility
>     Versions: 2.7
>  Environment: Windows XP, Java 1.4.2_08, cygwin
>     Reporter: Deborah Pickett

>
> Bugzilla ID 30129 isn't completely fixed, it seems.
> (deborah@au-dpickett)[90] /cygdrive/c/temp
> $ cat doc.xml
> <doc>
> <person family-name="Bloggs" given-name="Joe"/>
> </doc>
> (deborah@au-dpickett)[91] /cygdrive/c/temp
> $ cat t.xsl
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="person">
>   <p>
>     <xsl:value-of select="@given-name"/>
>     <xsl:text> </xsl:text>
>     <xsl:value-of select="@family-name"/>
>   </p>
> </xsl:template>
> </xsl:stylesheet>
> (deborah@au-dpickett)[92] /cygdrive/c/temp
> $ java -jar c:/Projects/xalan-j_2_7_0/xalan.jar -in doc.xml -xsl t.xsl
> <?xml version="1.0" encoding="UTF-8"?>
> <p>Joe Bloggs</p>
> (deborah@au-dpickett)[93] /cygdrive/c/temp
> $ java -jar c:/Projects/xalan-j_2_7_0/xalan.jar -in doc.xml -xsl t.xsl -ts
> Selected source node '#document', at file 'null', line #-1, column #-1
> (default root rule) apply-templates, select='null':
>      10001: doc
> Selected source node 'doc', at file 'null', line #-1, column #-1
> (default rule) apply-templates, select='null':
>      10003: #text
>      10004: person
>      10007: #text
> <?xml version="1.0" encoding="UTF-8"?>
> Selected source node 'person', at file 'null', line #-1, column #-1
> file:///c:/temp/t.xsl Line #5, Column #41: value-of, select='@given-name':
>      10006: given-name
> Selected source node 'person', at file 'null', line #-1, column #-1
> file:///c:/temp/t.xsl Line #7, Column #42: value-of, select='@family-name':
>      10005: family-name
> <p> </p>
> When -ts is used, the select for '@given-name' and '@family-name' becomes empty.
> Interestingly, tests like @given-name = 'Joe' still work.
> Workaround: select='string(@given-name)' produces the expected output.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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