[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Identity transform (case conversion)

Subject: Re: Identity transform (case conversion)
From: George Cristian Bina <george@xxxxxxxxxxxxx>
Date: Sun, 09 Jul 2006 08:51:54 +0300
identity transform xsl msxml
Hi Mukul,

Dimitre is right, I can filter without problems the xml namespace with the initial code:

select="current()//namespace::*[not(.=$currentNamepsace) and not(name()='xml')]"

A simple test to list the namespace mappings:

<xsl:stylesheet version="1.0"
  <xsl:template match="/*">
      <xsl:for-each select="current()//namespace::*">
            <xsl:value-of select="name()"/>
            <xsl:value-of select="."/>

will give with MSXML 4.0 on a

<?xml version="1.0" encoding="UTF-16"?>

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Dimitre Novatchev wrote:
It would really be a nasty bug, in case Mukul got that output.

However, what he got (note the capitalisation) was:

<AUTHOR xmlns:auto-ns1="HTTP://WWW.W3.ORG/XML/1998/NAMESPACE"
xmlns:A="XYZ" xmlns:B="PQR">

Also in the code sample he provided there is no filtering of the "xml"

Mukul's statement that:

But this predicate doesn't work as expected, with MSXML. MSXML outputs
xmlns:auto-ns1="http://www.w3.org/xml/1998/namespace" in the absence
of this predicate.

is both contradictory and untrue. Contradictory, because he says "this predicate doesn't work as expected, with MSXML" and then makes it clear what "didn't work" was produced "in the absence of this predicate".

Untrue, because the real result is very different:


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.