|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: variable matching...
On Mon, 8 Dec 2003 Jarno.Elovirta@xxxxxxxxx wrote: > Hi, > > > <xsl:template match="$stage"> > > <xsl:template mathc="*[name() = $stage]"> I hadn't thought of that. If that works, then that is the way I'll try. What if I have a document where the stage directions are given in two different ways and I want to match both... can I do: <xsl:variable name="stage">sd|stagedir</xsl:variable> Or does that mean that <xsl:template match="*[name() = $stage]"> will just look for an element named "sd|stagedir"? > Have you got an WXS for the different vocabularies? Do you substitution groups? Nope, for the most part each one is individualistic. > Can you use the ancestors to make the matches unumbiquous? > <xsl:template match="scene/sd | scn/stagedir"> Probably, but this would have so many different possibilities that it wouldn't be worth it. i.e. I'd have to change it for each file (perhaps). Thanks for the suggestions Jarno, -James --- Dr James Cummings, Oxford Text Archive, James.Cummings@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








