You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "oono (JIRA)" <xa...@xml.apache.org> on 2007/08/08 22:48:59 UTC

[jira] Created: (XALANJ-2393) contains() function does not work properly

contains() function does not work properly
------------------------------------------

                 Key: XALANJ-2393
                 URL: https://issues.apache.org/jira/browse/XALANJ-2393
             Project: XalanJ2
          Issue Type: Bug
          Components: DOM
    Affects Versions: 2.7
         Environment: windows XP
            Reporter: oono


Do not know if this is reproducible on HP unix box


<xsl:if test="FLD_ADJUSTMENTS[contains(./PIN_FLD_PROCESSED_FLAGS , '1' )]">
				<summarized>
                                 

If in the xml 
<VF_FLD_ADJUSTMENTS type="ARRAY" elem="0">
             <PIN_FLD_PROCESSED_FLAGS type="STR">1</PIN_FLD_PROCESSED_FLAGS>

<summarized> is not put in the output.

xalan.jar has this in menifest
using this:
Manifest-Version: 1.0
Created-By: 1.4.2_10 (Sun Microsystems Inc.)
Main-Class: org.apache.xalan.xslt.Process
Class-Path: xercesImpl.jar xml-apis.jar serializer.jar

Name: org/apache/xalan/
Comment: Main Xalan engine implementing TrAX/JAXP
Specification-Title: Java API for XML Processing
Specification-Vendor: Sun Microsystems Inc.
Specification-Version: 1.3
Implementation-Title: org.apache.xalan
Implementation-Version: 2.7.0
Implementation-Vendor: Apache Software Foundation
Implementation-URL: http://xml.apache.org/xalan-j/

Name: org/apache/xpath/
Comment: XPath engine
Implementation-Title: org.apache.xpath
Implementation-Version: 2.7.0
Implementation-Vendor: Apache Software Foundation
Implementation-URL: http://xml.apache.org/xalan-j/

Name: org/apache/xml/
Comment: DTM implementation and utilities
Implementation-Title: org.apache.xml
Implementation-Version: 2.7.0
Implementation-Vendor: Apache Software Foundation
Implementation-URL: http://xml.apache.org/xalan-j/

Name: org/apache/xalan/xsltc/
Comment: Main XSLTC engine implementing TrAX/JAXP
Specification-Title: Java API for XML Processing
Specification-Vendor: Sun Microsystems Inc.
Specification-Version: 1.3
Implementation-Title: org.apache.xalan.xsltc
Implementation-Version: 2.7.0
Implementation-Vendor: Apache Software Foundation
Implementation-URL: http://xml.apache.org/xalan-j/

Name: java_cup/runtime/
Comment: Runtime component of JCup 
Specification-Title: Runtime component of JCup
Specification-Vendor: Princeton University 
Specification-Version: 0.10k 
Implementation-Title: runtime 
Implementation-Version: 2.7.0
Implementation-Vendor: Princeton University  
Implementation-URL: http://www.cs.princeton.edu/~appel/modern/java/CUP/ 

Name: org/apache/bcel/
Comment: Byte Code Engineering Library 
Specification-Title: Byte Code Engineering Library 
Specification-Vendor: Markus Dahm 
Specification-Version: 5.0 rc1 
Implementation-Title: org.apache.bcel
Implementation-Version: 2.7.0
Implementation-Vendor: Apache Software Foundation
Implementation-URL: http://jakarta.apache.org/bcel

Name: org/apache/regexp/
Comment: Java Regular Expression package 
Specification-Title: Java Regular Expression package 
Specification-Vendor: Apache Software Foundation 
Specification-Version: 1.2
Implementation-Title: org.apache.regexp
Implementation-Version: 2.7.0
Implementation-Vendor: Apache Software Foundation
Implementation-URL: http://jakarta.apache.org/regexp






-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2393) contains() function does not work properly

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518707 ] 

Henry Zongaro commented on XALANJ-2393:
---------------------------------------

Yes, please attach the complete stylesheet and input that are required to demonstrate the problem.  I wasn't able to reproduce the problem using the fragment you provided.

> contains() function does not work properly
> ------------------------------------------
>
>                 Key: XALANJ-2393
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2393
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 2.7
>         Environment: windows XP
>            Reporter: oono
>
> Do not know if this is reproducible on HP unix box
> <xsl:if test="FLD_ADJUSTMENTS[contains(./PIN_FLD_PROCESSED_FLAGS , '1' )]">
> 				<summarized>
>                                  
> If in the xml 
> <VF_FLD_ADJUSTMENTS type="ARRAY" elem="0">
>              <PIN_FLD_PROCESSED_FLAGS type="STR">1</PIN_FLD_PROCESSED_FLAGS>
> <summarized> is not put in the output.
> xalan.jar has this in menifest
> using this:
> Manifest-Version: 1.0
> Created-By: 1.4.2_10 (Sun Microsystems Inc.)
> Main-Class: org.apache.xalan.xslt.Process
> Class-Path: xercesImpl.jar xml-apis.jar serializer.jar
> Name: org/apache/xalan/
> Comment: Main Xalan engine implementing TrAX/JAXP
> Specification-Title: Java API for XML Processing
> Specification-Vendor: Sun Microsystems Inc.
> Specification-Version: 1.3
> Implementation-Title: org.apache.xalan
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xpath/
> Comment: XPath engine
> Implementation-Title: org.apache.xpath
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xml/
> Comment: DTM implementation and utilities
> Implementation-Title: org.apache.xml
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xalan/xsltc/
> Comment: Main XSLTC engine implementing TrAX/JAXP
> Specification-Title: Java API for XML Processing
> Specification-Vendor: Sun Microsystems Inc.
> Specification-Version: 1.3
> Implementation-Title: org.apache.xalan.xsltc
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: java_cup/runtime/
> Comment: Runtime component of JCup 
> Specification-Title: Runtime component of JCup
> Specification-Vendor: Princeton University 
> Specification-Version: 0.10k 
> Implementation-Title: runtime 
> Implementation-Version: 2.7.0
> Implementation-Vendor: Princeton University  
> Implementation-URL: http://www.cs.princeton.edu/~appel/modern/java/CUP/ 
> Name: org/apache/bcel/
> Comment: Byte Code Engineering Library 
> Specification-Title: Byte Code Engineering Library 
> Specification-Vendor: Markus Dahm 
> Specification-Version: 5.0 rc1 
> Implementation-Title: org.apache.bcel
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://jakarta.apache.org/bcel
> Name: org/apache/regexp/
> Comment: Java Regular Expression package 
> Specification-Title: Java Regular Expression package 
> Specification-Vendor: Apache Software Foundation 
> Specification-Version: 1.2
> Implementation-Title: org.apache.regexp
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://jakarta.apache.org/regexp

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2393) contains() function does not work properly

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518553 ] 

Henry Zongaro commented on XALANJ-2393:
---------------------------------------

I haven't tried to reproduce this yet, but could I ask you to confirm that the fact that your XML has "VF_FLD_ADJUSTMENTS" and your XSLT has "FLD_ADJUSTMENTS" is just a cut-and-paste error?

> contains() function does not work properly
> ------------------------------------------
>
>                 Key: XALANJ-2393
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2393
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 2.7
>         Environment: windows XP
>            Reporter: oono
>
> Do not know if this is reproducible on HP unix box
> <xsl:if test="FLD_ADJUSTMENTS[contains(./PIN_FLD_PROCESSED_FLAGS , '1' )]">
> 				<summarized>
>                                  
> If in the xml 
> <VF_FLD_ADJUSTMENTS type="ARRAY" elem="0">
>              <PIN_FLD_PROCESSED_FLAGS type="STR">1</PIN_FLD_PROCESSED_FLAGS>
> <summarized> is not put in the output.
> xalan.jar has this in menifest
> using this:
> Manifest-Version: 1.0
> Created-By: 1.4.2_10 (Sun Microsystems Inc.)
> Main-Class: org.apache.xalan.xslt.Process
> Class-Path: xercesImpl.jar xml-apis.jar serializer.jar
> Name: org/apache/xalan/
> Comment: Main Xalan engine implementing TrAX/JAXP
> Specification-Title: Java API for XML Processing
> Specification-Vendor: Sun Microsystems Inc.
> Specification-Version: 1.3
> Implementation-Title: org.apache.xalan
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xpath/
> Comment: XPath engine
> Implementation-Title: org.apache.xpath
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xml/
> Comment: DTM implementation and utilities
> Implementation-Title: org.apache.xml
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xalan/xsltc/
> Comment: Main XSLTC engine implementing TrAX/JAXP
> Specification-Title: Java API for XML Processing
> Specification-Vendor: Sun Microsystems Inc.
> Specification-Version: 1.3
> Implementation-Title: org.apache.xalan.xsltc
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: java_cup/runtime/
> Comment: Runtime component of JCup 
> Specification-Title: Runtime component of JCup
> Specification-Vendor: Princeton University 
> Specification-Version: 0.10k 
> Implementation-Title: runtime 
> Implementation-Version: 2.7.0
> Implementation-Vendor: Princeton University  
> Implementation-URL: http://www.cs.princeton.edu/~appel/modern/java/CUP/ 
> Name: org/apache/bcel/
> Comment: Byte Code Engineering Library 
> Specification-Title: Byte Code Engineering Library 
> Specification-Vendor: Markus Dahm 
> Specification-Version: 5.0 rc1 
> Implementation-Title: org.apache.bcel
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://jakarta.apache.org/bcel
> Name: org/apache/regexp/
> Comment: Java Regular Expression package 
> Specification-Title: Java Regular Expression package 
> Specification-Vendor: Apache Software Foundation 
> Specification-Version: 1.2
> Implementation-Title: org.apache.regexp
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://jakarta.apache.org/regexp

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2393) contains() function does not work properly

Posted by "oono (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518556 ] 

oono commented on XALANJ-2393:
------------------------------

Hi

Yes it was a copy pasted problem.

I have the correct xml and xslt.
do u want me to attached those.

For transfrmation in java we use:
javax.xml.transform.TransformerFactory factory = javax.xml.transform.TransformerFactory.newInstance();
templates = factory.newTemplates(new StreamSource(xslFile));
transformer = templates.newTransformer();

javax.xml.transform.stream.StreamSource in = new StreamSource(new StringReader(summary.toString()));
StringWriter w = new StringWriter();
transformer.transform(in, new StreamResult(w));
transformedOutput = w.getBuffer();

> contains() function does not work properly
> ------------------------------------------
>
>                 Key: XALANJ-2393
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2393
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 2.7
>         Environment: windows XP
>            Reporter: oono
>
> Do not know if this is reproducible on HP unix box
> <xsl:if test="FLD_ADJUSTMENTS[contains(./PIN_FLD_PROCESSED_FLAGS , '1' )]">
> 				<summarized>
>                                  
> If in the xml 
> <VF_FLD_ADJUSTMENTS type="ARRAY" elem="0">
>              <PIN_FLD_PROCESSED_FLAGS type="STR">1</PIN_FLD_PROCESSED_FLAGS>
> <summarized> is not put in the output.
> xalan.jar has this in menifest
> using this:
> Manifest-Version: 1.0
> Created-By: 1.4.2_10 (Sun Microsystems Inc.)
> Main-Class: org.apache.xalan.xslt.Process
> Class-Path: xercesImpl.jar xml-apis.jar serializer.jar
> Name: org/apache/xalan/
> Comment: Main Xalan engine implementing TrAX/JAXP
> Specification-Title: Java API for XML Processing
> Specification-Vendor: Sun Microsystems Inc.
> Specification-Version: 1.3
> Implementation-Title: org.apache.xalan
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xpath/
> Comment: XPath engine
> Implementation-Title: org.apache.xpath
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xml/
> Comment: DTM implementation and utilities
> Implementation-Title: org.apache.xml
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xalan/xsltc/
> Comment: Main XSLTC engine implementing TrAX/JAXP
> Specification-Title: Java API for XML Processing
> Specification-Vendor: Sun Microsystems Inc.
> Specification-Version: 1.3
> Implementation-Title: org.apache.xalan.xsltc
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: java_cup/runtime/
> Comment: Runtime component of JCup 
> Specification-Title: Runtime component of JCup
> Specification-Vendor: Princeton University 
> Specification-Version: 0.10k 
> Implementation-Title: runtime 
> Implementation-Version: 2.7.0
> Implementation-Vendor: Princeton University  
> Implementation-URL: http://www.cs.princeton.edu/~appel/modern/java/CUP/ 
> Name: org/apache/bcel/
> Comment: Byte Code Engineering Library 
> Specification-Title: Byte Code Engineering Library 
> Specification-Vendor: Markus Dahm 
> Specification-Version: 5.0 rc1 
> Implementation-Title: org.apache.bcel
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://jakarta.apache.org/bcel
> Name: org/apache/regexp/
> Comment: Java Regular Expression package 
> Specification-Title: Java Regular Expression package 
> Specification-Vendor: Apache Software Foundation 
> Specification-Version: 1.2
> Implementation-Title: org.apache.regexp
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://jakarta.apache.org/regexp

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANJ-2393) contains() function does not work properly

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XALANJ-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henry Zongaro resolved XALANJ-2393.
-----------------------------------

    Resolution: Cannot Reproduce

Hello.  Nobody has been able to reproduce the problem you describe.  If this is still a problem for you, please reopen this bug report and supply a complete XSLT stylesheet and XML input document needed to demonstrate the problem.  If a Java driver program is needed to demonstrate the problem, please include a complete driver as well.

> contains() function does not work properly
> ------------------------------------------
>
>                 Key: XALANJ-2393
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2393
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 2.7
>         Environment: windows XP
>            Reporter: oono
>
> Do not know if this is reproducible on HP unix box
> <xsl:if test="FLD_ADJUSTMENTS[contains(./PIN_FLD_PROCESSED_FLAGS , '1' )]">
> 				<summarized>
>                                  
> If in the xml 
> <VF_FLD_ADJUSTMENTS type="ARRAY" elem="0">
>              <PIN_FLD_PROCESSED_FLAGS type="STR">1</PIN_FLD_PROCESSED_FLAGS>
> <summarized> is not put in the output.
> xalan.jar has this in menifest
> using this:
> Manifest-Version: 1.0
> Created-By: 1.4.2_10 (Sun Microsystems Inc.)
> Main-Class: org.apache.xalan.xslt.Process
> Class-Path: xercesImpl.jar xml-apis.jar serializer.jar
> Name: org/apache/xalan/
> Comment: Main Xalan engine implementing TrAX/JAXP
> Specification-Title: Java API for XML Processing
> Specification-Vendor: Sun Microsystems Inc.
> Specification-Version: 1.3
> Implementation-Title: org.apache.xalan
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xpath/
> Comment: XPath engine
> Implementation-Title: org.apache.xpath
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xml/
> Comment: DTM implementation and utilities
> Implementation-Title: org.apache.xml
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: org/apache/xalan/xsltc/
> Comment: Main XSLTC engine implementing TrAX/JAXP
> Specification-Title: Java API for XML Processing
> Specification-Vendor: Sun Microsystems Inc.
> Specification-Version: 1.3
> Implementation-Title: org.apache.xalan.xsltc
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://xml.apache.org/xalan-j/
> Name: java_cup/runtime/
> Comment: Runtime component of JCup 
> Specification-Title: Runtime component of JCup
> Specification-Vendor: Princeton University 
> Specification-Version: 0.10k 
> Implementation-Title: runtime 
> Implementation-Version: 2.7.0
> Implementation-Vendor: Princeton University  
> Implementation-URL: http://www.cs.princeton.edu/~appel/modern/java/CUP/ 
> Name: org/apache/bcel/
> Comment: Byte Code Engineering Library 
> Specification-Title: Byte Code Engineering Library 
> Specification-Vendor: Markus Dahm 
> Specification-Version: 5.0 rc1 
> Implementation-Title: org.apache.bcel
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://jakarta.apache.org/bcel
> Name: org/apache/regexp/
> Comment: Java Regular Expression package 
> Specification-Title: Java Regular Expression package 
> Specification-Vendor: Apache Software Foundation 
> Specification-Version: 1.2
> Implementation-Title: org.apache.regexp
> Implementation-Version: 2.7.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-URL: http://jakarta.apache.org/regexp

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org