You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by de...@comcast.net on 2008/02/08 23:59:14 UTC

Xalan error when using xpath-default-namespace attribute

Hi, 
 
I have a questions about Xalan. I am trying to use the xpath-default-namespace attribute in my XSL stylesheet, as in: 
 
     <xsl:if xsl:xpath-default-namespace="" test="./code">
or 
    <xsl:value-of xsl:xpath-default-namespace="" select="./code"/>
 
The Xalan command-line interpreter gives me these errors: 
 
    "xsl:xpath-default-namespace" attribute is not allowed on the xsl:value-of element!
and 
   "xsl:xpath-default-namespace" attribute is not allowed on the xsl:if element!
 
Why the error?  I am new to XSLT, but my understanding is that the XSLT language allows this attribute to be used in any XSL element. Am I doing something wrong? 
 
-Deio 

Re: Xalan error when using xpath-default-namespace attribute

Posted by ke...@us.ibm.com.
Xalan is an XSLT 1.0 processor. xsl:xpath-default-namespace is not a 1.0
directive.

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
(http://www.ovff.org/pegasus/songs/threes-rev-11.html)