You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Scott Boag/CAM/Lotus <Sc...@lotus.com> on 2000/01/18 08:02:25 UTC

Re: Xalan-Feature?

Uh, no, definitely not a feature.  Big ouch.  The bug is in
XPathProcessorImpl.java, line 2384, the paren was missing around the OR'd
tests.  I just checked in a fix.  That bug's been there for a long time,
I'm surprised no one has found it before now.  Thanks for catching it...

-scott




                                                                                                                   
                    "Armin Pfarr"                                                                                  
                    <apfarr@vipsu        To:     <co...@xml.apache.org>                                       
                    rf.de>               cc:     (bcc: Scott Boag/CAM/Lotus)                                       
                                         Subject:     Xalan-Feature?                                               
                    01/17/00                                                                                       
                    11:03 AM                                                                                       
                    Please                                                                                         
                    respond to                                                                                     
                    cocoon-dev                                                                                     
                                                                                                                   
                                                                                                                   




Hi,

it seems that Xalan produces an error when the stylesheet contains a match
for an element "key".

Given the XML-file

<!DOCTYPE test [
<!ELEMENT test
  (key)* >
<!ELEMENT key
  (#PCDATA)* >
]>
<test>
  <key>Key 1</key>
</test>

I try to transfer this file with the following stylesheet

<xsl:stylesheet version="1.0"

      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="test">
    <html>
      <head><title>This is a test</title></head>
      <body>
        <xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="key">
    <h2><xsl:apply-templates</h2>
  </xsl:template>
</xsl:stylesheet>

I get an error.
"
XSLT: pattern='key'
Expected (, but found:
Xalan: was not successfull
"

Is this an illegal pattern or does Xalan misbehave?

Armin