cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Boag/CAM/Lotus" <Scott_B...@lotus.com>
Subject Re: Xalan-Feature?
Date Tue, 18 Jan 2000 07:02:25 GMT

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:     <cocoon-dev@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








Mime
View raw message