Subject: Re: [xsl] Template matching with multiple namespaces From: Jeff Sese <jeferson.sese@xxxxxxxxxxxx> Date: Fri, 20 Mar 2009 13:54:52 +0800 |
Hi,
I have a stylesheet which works with one namespace, prefix say 'lml'. I
now want the same stylesheet to work on documents under another
namespace, say lml10.
Here is my namespace defs...
<xsl:stylesheet version="1.0" xmlns:lml=... xmlns:lml10=... xmlns:msxsl=... xmlns:xsl="...
Now the stylesheet does, of course match nodes such as
<xsl:apply-templates select=".//lml:LandXML" />
But I want it to also match on
<xsl:apply-templates select=".//lml10:LandXML" />.
How can I set up some variable to allow me not to have to duplicate code?
This doesn't work...NodeTest expected. <xsl:apply-templates select=".//{$namespacevariable}:LandXML" />
Or is there a better way to get the one stylesheet to work over multiple
namespaces?
I am using XSLT 1.0 still because I need to use the MSXML parser 6.0.
Tony
Jeferson L. Sese jeferson dot sese at asiatype dot com Asiatype Inc. Suite 114 Columbia Tower Ortigas Ave., Greenhills Mandaluyong City 1550 Philippines Tel: +632-744-6262 Mobile: +63927-671-7901
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Template matching with multip, Tony Rowe | Thread | RE: [xsl] Template matching with mu, Michael Kay |
Re: [xsl] Expanding Ranges, Ganesh Babu N | Date | RE: [xsl] Expanding Ranges, Joga Singh Rawat |
Month |