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/03/25 21:18:29 UTC

[Bug 1107] New - XPath does not work with external Variables

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

*** shadow/1107	Sun Mar 25 11:18:29 2001
--- shadow/1107.tmp.10360	Sun Mar 25 11:18:29 2001
***************
*** 0 ****
--- 1,40 ----
+ +============================================================================+
+ | XPath does not work with external Variables                                |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1107                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.x                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Linux                   |
+ |     Priority:                           Component: org.apache.xalan        |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: johnglinux@eyecatching.com                                   |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ When setting a xsl:parameter from an external source as either an Element
+ or XRTFrag, the resultant parameter can not be used with an XPath Statement.
+ i.e.
+ If the parameter test was set with the following XML from an external source
+ <NODE1>
+   <NODE2>
+ 	<DATA>data</DATA>
+   </NODE2>
+   <NODE3>
+ 	<DATA>data</DATA>
+   </NODE3>
+ </NODE1>
+ 
+ And was later used in an XSL Style sheet as:
+ <xsl:copy-of select="xalan:nodeset($test)/NODE1/NODE2" />
+ 
+ The select will produce an error where the following
+ <xsl:copy-of select="xalan:nodeset($test)" />
+ will not produce an error.
+ 
+ If the variable test was initialized in the stylesheet,
+ the original (unmodified) version will work with either
+ of the above XPATH Statements but a soon as that variable
+ is changed, the first example fails to work.