Subject: Machine-readable comments (Was: How is this part of the XSLT specificationto be interpreted?)
From: David_Marston@xxxxxxxxx
Date: Wed, 21 Jun 2000 14:05:39 -0400
|
Mike Brown says:
>Comments are not required to be reported by an XML parser, so you should
>never depend on being able to process them with XSLT.
Isn't that a little harsh? If I know what parser I'll be using, and I
know that the stylesheets won't be going to a place where an unknown
parser is used, why not have specially-structured comments? Recall that
<xsl:template match="comment()" />
is valid in XSLT, so the Working Group must have thought that the
above would work in many common parser/processor situations, and
indeed it does.
.................David Marston
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|