Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 1st, 2007, 08:15 AM
Joost van den Boom
Guest
 
Posts: n/a
Default XslCompiledTransform adds xmlns:msxsl attribute to root node

Hi all,

I use XslCompiledTranform to transform one XML file into another. In my
stylesheet I use the msxsl:node-set() function, so I have a namespace import
in my stylesheet.

After transforming, the root node of my resulting XML file has an attribute

xmlns:msxsl="urn:schemas-microsoft-com:xslt"

Since the resulting XML file is being validated, this unexpected attribute
generates an exception.

Does anyone know how to prevent this attribute from being generated?

Thanks!

Joost van den Boom



  #2  
Old March 1st, 2007, 01:15 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: XslCompiledTransform adds xmlns:msxsl attribute to root node

Joost van den Boom wrote:
Quote:
Does anyone know how to prevent this attribute from being generated?
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
version="1.0"
exclude-result-prefixes="msxsl">

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles