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

Re: stylesheet expansion

Subject: Re: stylesheet expansion
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 10 Dec 2007 10:23:05 +0000
Re:  stylesheet expansion
On 10/12/2007, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
> Considering Colin's remarks, about xsl:next-match etc, it is an exercise
> which may be next to impossible (at least far from trivial), but I maybe
> wrong...

I would say it is impossible...

<xsl:template match="foo" priority="99999">

will be ignored in favour of:

<xsl:template match="*">

because of import precedence...

I can't see how you can combine those two in the same stylesheet and
ensure the * matching template gets chosen over the foo matching
template, without rewriting the match patterns.

As Colin has said, compiled stylesheets seem to be the only way, but
may be not what the OP was after.  Ideally importable compiled
"stylesheet modules" will be invented soon....   :)

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.