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

Re: 'apply-templates' on parameter of 'call-template'

Subject: Re: 'apply-templates' on parameter of 'call-template'
From: Angus McIntyre <angus@xxxxxxxxx>
Date: Sat, 10 Apr 2004 11:47:13 -0400
xalan compile stylesheet
At 11:26 -0400 10.04.2004, G. Ken Holman wrote:
You've made a mistake that many of my students do when they rush:

<xsl:template name="test">
...
<xsl:template name="matchable">

You want match= not name=

You know, I've been making that mistake on average twice a day for the past six months or so. So much for my theories about learning from experience.


Thank you for pointing that out.

Just for the record, this works flawlessly on Xalan-J, LibXSLT and Saxon (invoked through TestXSLT), although the time to compile the stylesheet on the first attempt is noticeably longer with Xalan-J and Saxon than with most other stylesheets I've tested. Sablotron, on the other hand, doesn't like it at all. A cursory trawl through the logs makes it look as if something in 'expat' is blowing up (this is under MacOS X 10.3.3). I guess this technique, while presumably legal, is not necessarily safe for applications that are agnostic about the exact XSLT processor in use. I get the feeling that while it's formally correct, it may be slightly 'bleeding edge' with respect to certain processor implementations.

Thanks again to all who responded,

Angus
--
Business: http://www.nomadcode.com/    Personal: http://www.raingod.com/angus/

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.