xsl-list
[Top] [All Lists]

Re: [xsl] Fwd: Namespace issue in copy override

2012-10-06 05:06:52
On Sat, Oct 6, 2012 at 11:00 AM, Andrew Welch 
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
On 6 October 2012 10:34, Ihe Onwuka <ihe(_dot_)onwuka(_at_)gmail(_dot_)com> 
wrote:
I'm having a brainfart moment here.

My source XML is a database extract - all elements are in the null namespace.

So I am  doing a copy override override of the identity (i.e importing
the identity template) and after a bit of eye rubbing I realised that
anything processed by the imported template will stay in the null
namespace rather than "magically" be coerced into my transforms
default namespace.

So before I start hacking away at any of a number of workarounds in my
fatigued state, I thought I asked for suggestions.

Am running XSLT 2.0.

Hi,

You'll need to post some code...

cheers
andrew


Nah... had a moment of clarity ....(always good to step away from the
computer). Copy override doesn't help much here as different
namespaces effectively mean different elements (identical local-names
is irrelevant).  So just treat it like a straightforward rename which
is what it is.

--~------------------------------------------------------------------
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>