You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/09/10 15:53:53 UTC

[DO NOT REPLY: Bug 3521] New: xsltc fails conf test string124 contains() function searching for an entity

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3521

*** shadow/3521	Mon Sep 10 06:53:53 2001
--- shadow/3521.tmp.7343	Mon Sep 10 06:53:53 2001
***************
*** 0 ****
--- 1,69 ----
+ +============================================================================+
+ | xsltc fails conf test string124 contains() function searching for an entit |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3521                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: tamiro@east.sun.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I'm reporting this because XT, Saxon, and Xalan all agree, but I don't see 
+ why the template with priority=2 should get called over the one with 
+ priority=1
+ 
+ 
+ Expected Output for string124
+ -----------------------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>
+    Found match of entity
+ </out>
+ 
+ 
+ Obtained Output for string124
+ -----------------------------
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out/>
+ 
+ string124.xsl
+ -------------
+ <?xml version = "1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
+ 
+   <!-- FileName: string124 -->
+   <!-- Document: http://www.w3.org/TR/xpath -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 4.2 String Functions -->
+   <!-- Creator: Paul Dick -->
+   <!-- Purpose: Test of contains() function searching for an entity. -->
+ 
+ <xsl:strip-space elements = "*"/>
+ <xsl:output method = "xml"/>
+ 
+ <xsl:template match="text()[contains(., 'SYMBOL 180 \f &quot;')]" priority="2">
+    Found match of entity
+ </xsl:template>
+ 
+ <xsl:template match="*">
+   <out>
+     <xsl:apply-templates/>
+   </out>
+ </xsl:template>
+ 
+ <xsl:template match="text()" priority="1"/><!-- Suppress text copying if
+ contains() fails -->
+ 
+ string124.xml
+ -------------
+ <doc>
+ Mother's house's door
+ SYMBOL 180 \f &quot;Symbol&quot; \s1
+ SYMBOL 180 \f &quot;Symbol&quot; \s1
+ </doc>