Subject: Re: [xsl] thoroughly confused about node() matching From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 03 Mar 2003 12:21:26 -0500 |
i get two different outputs using xsltproc and saxon.
xsltproc does *not* generate output for comments or processing instructions, while saxon *does*.
i have read a number of docs, including tidwell's "XSLT", kay's "XSLT Programmer's Reference", and the online docs at www.w3.org, and i can say with assurance that every one of those sources disagrees with the others when it comes to defining what does and does not match "node()" in the context of a template match. (e.g., kay, p. 440 states that node() will *not* match attribute nodes, while tidwell, p. 51, says it will. argh.)
rather than get into the gory details of what each of these sources says, it seems obvious to this here newbie that *at least* one of xsltproc or saxon is generating incorrect output.
can anyone point me at the definitive explanation as to what nodes the "node()" match really matches?
specifically, should the rules in my stylesheet match comment()s or processing-instruction()s, to override the built-in behavior which is to ignore them?
<xsl:template match="*"> <xsl:template select="child::node()"/> </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] thoroughly confused about nod, Robert P. J. Day | Thread | [xsl] Re: thoroughly confused about, Dimitre Novatchev |
[xsl] Transform 2 XML Documents at , Ted Stresen-Reuter | Date | Re: [xsl] XPATH query from variable, David Carlisle |
Month |