[ 
http://issues.apache.org/jira/browse/XALANJ-2092?page=comments#action_62208 ]
     
Brian Minchau commented on XALANJ-2092:
---------------------------------------

It looks like Terry is combining stylesheets in a conditional manner, but 
relying on runtime tests against invoking templates that don't exist.

Unfortunately XSLT 1.0 doesn't explicitly say that this isn't allowed. However 
XSLT 2.0, in section 10.0 ( http://www.w3.org/TR/xslt20/ ) says this under the 
error XTSE0650
>  It is a static error if a stylesheet contains
>  an xsl:call-template instruction whose name
>  attribute does not match the name attribute
>  of any xsl:template in the stylesheet.

Xalan-J only supports XSLT 1.0, however it is doubtful that the XSL Working 
Group indended for XSLT 1.0 to work differently.

Per the Xalan-J JIRA meeting on April 5, 2005 we are inclined to not accept 
this as a bug.

> a conditionally called-template is being referenced even when the condition 
> is false.
> -------------------------------------------------------------------------------------
>
>          Key: XALANJ-2092
>          URL: http://issues.apache.org/jira/browse/XALANJ-2092
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.6
>  Environment: Windows xp
> Java 1.4
>     Reporter: Terry Jeske

>
> Xalan should not reference templates nested in a conditional statement, if 
> the statement evaluates to false.
> <xsl:variable name="testCall" select="'false'"/>
>  <xsl:if test="$testCall = 'true'">
>       <xsl:call-template name="foobar"/>
>  </xsl:if>
> If the template foobar does not exist in the current pass, an exception is 
> thrown. Template foobar may or may not exist depending on what path the 
> application was executed from (admin ui , or presentation for example).

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to