[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: version and URI for XSLT 2.0
It is recommended that you set version="2.0" on a stylesheet that is making use of new 2.0 features, and leave it at "1.0" otherwise. An XSLT 2.0 processor will handle a stylesheet that specifies "1.0" slighly differently from one that specifies "2.0" - it will invoke backwards compatibility mode which gives weaker type checking. However a 2.0 processor won't prevent a stylesheet using 2.0 features just because it specifies 1.0 in the header. Michael Kay > -----Original Message----- > From: Barry Lay [mailto:blay@xxxxxxxxxxxxxxxxxxx] > Sent: 07 June 2004 19:33 > To: xsl-list > Subject: version and URI for XSLT 2.0 > > I am in the process of converting my stylesheets over to XSLT > 2.0 using > Saxon to process them. I noticed that although I neglected to update > the stylesheet element attributes it still works with the new 2.0 > features. That is, it still looks like: > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > ... > </xsl:stylesheet> > > What should version= and xmlns:xsl= be set to? > > Thanks, > Barry > > --+------------------------------------------------------------------ > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ > or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> > --+-- > >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|