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

RE: AW: select 1st occurence of element tag name

Subject: RE: AW: select 1st occurence of element tag name
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Mon, 16 Feb 2004 18:08:41 +0100
xsl condition tag
> -----Original Message-----
> From: Nikolas Nehmer
>
> I'm using a cascade of XSL files. One which serves as
> interface e.g. person.xsl for all person xmls and dependent on the
> person xml it calls a specific xsl. So in my case the key definition
> should base on a param which holds the nodeset to transformed. BUT the
> key definition is made before the param is defined within the template:
>
> <xsl:key name="elements-by-name" match="/*/*" use="name(.)" />
>   	<xsl:template name="default">
> 	<xsl:param...
>
> So the match attribute /*/* should base on the param which is defined
> later (because xsl:key has to be drclared as top level element)! Is
> there any solution except referencing this XSL directly from the XML
> file?
>

I'm afraid I lost you slightly here ...
A key is indeed top-level --defined with global scope, from the viewpoint of
the source document(s) as well as the stylesheet... It is certainly possible
to use a key across multiple xml documents, if that's what you're worried
about.

Anyway, it's a bit difficult to see what the exact nature of the
puzzle/problem is, since the description breaks off after the xsl:param.
Does it add a condition of some sort you can incorporate in the key? Maybe
you can fiddle a bit with the key's match- or use-pattern in order to solve
this?



Cheers,

Andreas


 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.