Henry Zongaro wrote:
Hi, Stephane.

"Stephane Dion" <[EMAIL PROTECTED]> wrote on 2005-10-20 02:51:26 PM:

Like you mention, I would like to have the same input XML as my output XML (with the netPrice sorted) but the attributes are not copied even if I have the xsl:copy. Can you help me on this?


The default value for the select attribute of the xsl:apply-templates instruction is "*", which means that templates matching the element children of the current node will be applied.

Not quite true. If the xsl:apply-templates instruction does not have a select attribute, then default behavior is to select all of the children of the current node.

http://www.w3.org/TR/xslt#section-Applying-Template-Rules

"In the absence of a select attribute, the xsl:apply-templates instruction processes all of the children of the current node, including text nodes."

So the real default is "node()".


See [1] for tutorial information about XSLT. You can find information about the Mulberry XSL Mailing List at [2], which is a good place to ask questions about XSLT. The xalan-j-users mailing list is really intended as a place to discuss issues that are specific to the Xalan-J processors.


I agree with Henry. You will not find a better resource for XSLT questions than the Mulberry list.

Dave

Reply via email to