xsl-list
[Top] [All Lists]

Re: Order That Nodes Are Processed

2004-01-06 11:06:38
Hi Rechell,

At 12:43 PM 1/6/2004, you wrote:
If I have an <xsl:apply-template select="some criterion"> or <xsl:for-each select="some criterion"> statement in my stylesheet, am I guranteed that the nodes will be processed in the exact order that the qualifying nodes appear in the XML file?

Yes, the Rec specifies that unless there is an xsl:sort in play, which changes the order, the nodes are processed as in document order. Note there's no guarantee that they must be processed in this order, only that the result come out as if they were....

Cheers,
Wendell


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
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
======================================================================


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>