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

generic apply-template call

Subject: generic apply-template call
From: "Alex Reuter" <xslalex@xxxxxxxxxxx>
Date: Mon, 17 Jun 2002 15:24:09 +0000
apply template select descendant
Hello List,
I am working on a system which will allow XSL developers on the project to use unique key attributes to send node sets to templates.


The expression
<xsl:apply-templates select="descendant::*@key='unique.key']"/>

Is the current way things are working.

My boss was wondering if I could make it a little more generic. I thought about it for some time and I can't seem to come up with an XSL solution.

To clarify, by generic I think he meant the equivalent of:
<xsl:apply-templates select="getNodes(unique.key)"/>

Basically the expression with the descendant axis looks a little too complicated, even though it is a pretty generic expression already.

The non-XSL options I could think of:
1. Writing a java extension.
This would allow for a very generic syntax, but would tie our implementation to a specific processor
2. Writing a front-end development tool.
This might be fun.




Anyway, if anyone can think of another solution I would love to hear it. Also, if you think the question itself is flawed, or that seeking a more 'generic' solution is pointless in this case, I'd love to read your response as well.


TIA, Alex

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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.