cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Cain" <...@enetsouth.com>
Subject RE: XSLT induced hair loss.
Date Sun, 02 Jul 2000 23:09:12 GMT
Paul,

XSLT has built-in template rules. One of them is:

<xsl:template match="*|/">
  <xsl:apply-templates/>
</xsl:template>

which, as you can see, matches the root node and all element nodes. There is
also the built-in rule for text and attribute copying:

<xsl:template match="text()|@*">
  <xsl:value-of select="."/>
</xsl:template>

In your template, you specified the document element, but didn't override
the root node template. So the root node template is applied, which applies
the templates to all the elements, which then dumps out all the text. I
believe if you change the match attribute of your template from "statusinfo"
to "/statusinfo", your problem should be fixed.

Jay Cain
Lead Developer
eNetSouth, LLC


Mime
View raw message