Re: [xsl] processing xml data with default namespace

Subject: Re: [xsl] processing xml data with default namespace
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 12 Jul 2006 15:49:02 -0400
Achim,

At 03:04 PM 7/12/2006, you wrote:
i was expecting to get the same result as in output1. why is pat:bar apparently not the same as the xsl:element instruction above?

Actually, in namespace-aware XML, it is.


The difference in handling of prefixes between the two methods you've presented is:

* "merely" cosmetic
* symptomatic of your particular XSLT processor's serializer but not necessarily
of others
* exploitable when writing "cosmetic cleanup" stylesheets
(which in theory are never needed, but in practice are often asked for)


Cheers,
Wendell

Current Thread