Project

Profile

Help

Getting XTSE0010: Child element <xsl:fallback> is not allowed as a child of xsl:merge although Saxon 9.7 documentation and XSLT 3.0 spec say it is allowed

Added by Martin Honnen over 8 years ago

I am experimenting with the new features in XSLT 3.0, like @xsl:merge@, when I try to put an @xsl:fallback@ inside to have a message when running the code with non XSLT 3.0 processors Saxon 9.7 EE complains during stylesheet compilation:

XTSE0010: Child element  is not allowed as a child of xsl:merge

Here is a sample stylesheet:










  
    
      
        
          
        
        
          
        
        
          No support for xsl:merge
        
      
    
  



When I take out the @xsl:fallback@ the code is compiled and runs fine. As far as I understand http://www.w3.org/TR/xslt-30/#element-merge, a fallback element is allowed, and http://saxonica.com/html/documentation/xsl-elements/fallback.html lists @xsl:merge@ as an allowed parent of @xsl:fallback@. The EXSELT demo I have does not complain about the @xsl:fallback@.


    (1-2/2)

    Please register to reply