cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Pfarr" <apf...@vipsurf.de>
Subject Xalan-Feature?
Date Mon, 17 Jan 2000 16:03:47 GMT
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