xsl:sequence

Used within a sequence constructor to construct a sequence of nodes or atomic values. The sequence is returned as a result of the instruction.

Format

<xsl:sequence
               
  select = expression>
               
  [xsl:fallback]
               
</xsl:sequence>
               

            

Description

Unlike most other instructions, xsl:sequence can return a sequence containing existing nodes, rather than constructing new nodes. The items comprising the result sequence are selected using the select attribute. When xsl:sequence is used to add atomic values to a sequence, the effect is very similar to the xsl:copy-of instruction.

Any optional xsl:fallback instructions are ignored by XSLT 2.0 processors, but they can be included to define fallback behavior for XSLT 1.0 processors.

Example

This code produces the output, 37.

<xsl:variable name="values" as="xs:integer*">
               
    <xsl:sequence select="(1,2,3,4)"/>
               
    <xsl:sequence select="(8,9,10)"/>
               
</xsl:variable>
               
<xsl:value-of select="sum($values)"/>
               

            

Xerces - Parsing and Validating XML with the Apache Xerces Parser

The Xerces Parser supports the XML 1.0 recommendation and W3C's XML Schema recommendation version 1.0, DOM and SAX. Learn how easy it is to use Apache Xerces directly in Stylus Studio to parse and validate XML with ease.

Stylus Studio Lends a Helping Hand to the New Orleans Reconstruction Efforts

Read how Stylus Studio is helping with the on-going hurricane Katrina reconstruction efforts in New Orleans.

XML Operations

Using XML Pipeline it's easy to visually specify a series of XML operations to apply on your XML data, including parsing, validating, converting and transforming, according to the needs of your business application.

Business Solutions & Outsourcing

Business Solutions & Outsourcing companies know the best solutions. That's why they choose Stylus Studio to enhance their business productivity. See which companies are already using Stylus Studio 2006 to take care of their own business!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member