xsl-list
[Top] [All Lists]

Re: [xsl] processing xml data with default namespace

2006-07-12 13:14:11
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


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