cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "flourish" <cocoo...@dork.com>
Subject PI's being copied
Date Wed, 28 Mar 2001 03:37:07 GMT
    I'm doing my best to avoid copying PI's in some of my templates, but
they're still coming through.  I knew the offending template was my template
that copied all the nodes and attributes that haven't yet been matched, so I
modified the template:
<xsl:template match="node() | @* | text()" priority="-1">
   <xsl:if test="not(processing-instruction())">
      <xsl:copy-of select="."/>
   </xsl:if>
</xsl:template>
    Surely, I thought, this would work, but it doesn't.  The PI's still show
up in the output.  Could someone point out my problem?

Thanks,
Matt


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message