xsl-list
[Top] [All Lists]

Re: [xsl] Using multiple xpath-default-namespace

2014-01-23 10:19:21
You can use xpath-default-namespace on any XSLT element, for example 
xsl;template, to define a value for that template. However, it may be more 
convenient to define it at the module level: put the code for handling a 
particular source document in one stylesheet module, with an 
xpath-default-namespace attribute on the xsl:stylesheet element of that module.

Michael Kay
Saxonica

On 23 Jan 2014, at 11:43, Pankaj Chaturvedi 
<Pankaj(_dot_)Chaturvedi(_at_)aptaracorp(_dot_)com> wrote:

Hi,

May be I sound bit stupid but is there a way using multiple
"xpath-default-namespace" in one stylesheet. I have a case wherein I
have multiple XML files following same DTD, but with different version,
difference mainly being the different "xmlns".  There are slight other
changes and I have written style sheet which I was thinking of using on
both version of XML but that does not seems to be case. Tried using
local-name() but it seems to fine on root element.

I can though segregate or write two different XSLT to handle both case
but I thought of cross check the possibility. 

TIA.

Best,
Pankaj



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>