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

Re: Re: The Perils of Sudden Type-Safety in XPath 2.0

Subject: Re: Re: The Perils of Sudden Type-Safety in XPath 2.0
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Wed, 19 Feb 2003 22:56:40 +0100
 Re: Re: The Perils of Sudden Type-Safety in XPath 2.0
> > One of the critiques about XSLT 1.0 is that it's too verbose.
> > From what I see about XSLT 2.0, transformations written in it
> > may well have to be twice as verbose as their XSLT 1.0 counterpart.
>
> No, my experience so far is that stylesheets that do no significant
> computation are essentially unchanged, while those that do a lot of
> computation can become dramatically smaller, because of features like
> conditional expressions in XPath and the availability of xsl:function,
> as well as the much richer built-in function library.

Maybe it is too early for general observations. I was just comparing:

   <xsl:value-of select="string-pad('!', @risk * @severity)" />

with

   <xsl:value-of select="string-pad('!', xs:integer(@risk * @severity))" />


and

  <xsl:variable name="danger" select="@risk * @severity"/>

with

 <xsl:variable name="danger">
    <xsl:value-of select="@risk * @severity" />
  </xsl:variable>


and

   <xsl:value-of select="string-pad('!', @risk * @severity)" />

with

  <xsl:variable name="danger">
    <xsl:value-of select="@risk * @severity" />
  </xsl:variable>
  <xsl:value-of select="string-pad('!', $danger)" />


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




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


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.