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

RE: limit a string to a certain word count

Subject: RE: limit a string to a certain word count
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 14 Mar 2007 08:12:29 -0000
RE:  limit a string to a certain word count
> Not sure if it supports 1 or 2, but I noticed that my XSL has 
> the following XML header:
> 
> <xsl:stylesheet 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> 
> What is the 2.0 equivilant?  Just:
> 
> <xsl:stylesheet 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
> 

The version attribute in the stylesheet can be seen as a statement of
intent, that it needs a 1.0 or 2.0 processor (it's a bit more subtle than
that, but that will do for the moment). There are some environments, for
example Altova, where the system chooses an XSLT 1.0 processor or a 2.0
processor depending on the version attribute. But in general, if you use 2.0
facilities then you need to make sure you are using an XSLT processor that
supports 2.0, and sadly many existing processors do not.

Michael Kay
http://www.saxonica.com/

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.