You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Armin Pfarr <ap...@vipsurf.de> on 2000/01/17 17:03:47 UTC

Xalan-Feature?

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