[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[no subject]

[no subject]
   1. Sequential ordering due to the language specification.

   2. Sequential ordering due to logical dependencies of constructs in the
code.


I want to be sure that I understand what these mean.

Below are examples of each. Do you agree with them? Would you provide
additional examples please?

EXAMPLES OF SEQUENTIAL ORDERING DUE TO THE XSLT SPECIFICATION

   EXAMPLE #1

In an <xsl:choose> element the first <xsl:when> element must be evaluated
before the following <xsl:when> elements and the <xsl:otherwise> element, if
present.

   <xsl:choose>
      <xsl:when test="evaluate me first">
        ...
      </xsl:when>
      <xsl:when test="evaluate me second (if the first test failed)">
        ...
      </xsl:when>
   </xsl:choose>


   EXAMPLE #2

-- need another example --


EXAMPLES OF SEQUENTIAL ORDERING DUE TO LOGICAL DEPENDENCIES OF CONSTRUCTS IN
THE XSLT CODE

   EXAMPLE #1

A variable can be used only _after_ it's been initialized, e.g.,

   <xsl:variable name="number" select="ex:Square(4)" />

   <xsl:value-of select="$number" />

The <xsl:value-of> element must be evaluated only _after_ the <xsl:variable>
element has been evaluated.


   EXAMPLE #2

In this example the sum() function must be evaluated before the multiplication
occurs:

   <xsl:value-of select="sum(Cost) * 1.2" />


Are there other factors which cause sequential ordering of execution?

/Roger

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.