Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - RE: [xsl] Push Processing >Thread Next - Re: [xsl] Push Processing RE: [xsl] Push ProcessingTo: Date: 3/2/2009 4:30:00 PM 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()? Thanks, ~Chris Christopher Scott Loan Fulfillment Solutions Fiserv -----Original Message----- From: Michael Kay [mailto:mike@xxxxxxxxxxxx] Sent: Monday, March 02, 2009 10:52 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] 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 http://www.saxonica.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
