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

RE: Push Processing

Subject: RE: Push Processing
From: "Scott, Christopher" <christopher.scott@xxxxxxxxxx>
Date: Mon, 2 Mar 2009 11:30:43 -0500
RE:  Push Processing
Also, is there any real advantage to specifying as="element()" other
then readability/documentation?  You've recently discussed the
advantages of doing this for non-element data types (e.g. numeric
functions).  Are there similar advantages for element()?



Christopher Scott
Loan Fulfillment Solutions

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: Monday, March 02, 2009 10:52 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Push Processing

> Michael Kay wrote:
> > <xsl:function name="f:expand" as="element()">
> >   <xsl:param name="item" as="element(item)"/>
> >   <xsl:param name="child" as="element()?"/>
> >   <xsl:choose>
> >     <xsl:when test="exists($child)">
> >       <xsl:sequence select="$child"/>
> >     </xsl:when>
> >     <xsl:otherwise>
> >       <emptyCell/>
> >     </xsl:otherwise>
> >   </xsl:choose>
> > </xsl:function>
>   Just out of interest, why do you pass the $item param here?

Because I changed the design half way through.

Michael Kay

Current Thread


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.
First Name
Last Name
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.