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

RE: variable matching...

Subject: RE: variable matching...
From: Jarno.Elovirta@xxxxxxxxx
Date: Mon, 8 Dec 2003 14:04:02 +0200
you substitution
Hi,

> <xsl:template match="$stage">

  <xsl:template mathc="*[name() = $stage]">

 > I think this is not allowed, but was wondering if
> there was a way (xslt2 acceptable) to do this kind

Have you got an WXS for the different vocabularies? Do you substitution groups?

> of thing?  I suppose instead of variables or parameters,
> a secondary xml file would be another option.
> 
> Obviously I don't want to just do:
> <xsl:template match="sd|stagedir">
> <stage><xsl:apply-templates/></stage>
> </xsl:template>
> because sometimes one file will use an element name
> that conflicts with another file's use of it.

Can you use the ancestors to make the matches unumbiquous?

  <xsl:template match="scene/sd | scn/stagedir">

Cheers,

Jarno - Hocico: Forgotten Tears (Live out-take)

 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.