RE: [xsl] namespaces gets copied to root node with result-document

Subject: RE: [xsl] namespaces gets copied to root node with result-document
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 5 Jul 2005 18:00:46 +0100
Use exclude-result-prefixes="dyn saxon" on the xsl:stylesheet element.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Arian Hojat [mailto:arianhojat2000@xxxxxxxxx] 
> Sent: 05 July 2005 17:25
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] namespaces gets copied to root node with 
> result-document
> 
> Hello all, 
> I am making a new html document with
> xsl:result-document, and my namespaces I use in my
> stylesheet get copied into the html output and i was
> wondering why since its not explicitly set, and how to
> stop that.
> ##########
> <xsl:stylesheet version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:dyn="http://exslt.org/dynamic";
> xmlns:saxon="http://saxon.sf.net/";>
> ...
> <xsl:result-document href="html/{$FileName}.html"
> method="html">
>  <html>
>   <head>
> ....
> ##########
> outputs this html file
> ##########
> <html xmlns:dyn="http://exslt.org/dynamic";
> xmlns:saxon="http://saxon.sf.net/";>
>  <head>...
> ##########
> thanks in advance.
> 
> 
> 		
> __________________________________ 
> Yahoo! Mail Mobile 
> Take Yahoo! Mail with you! Check email on your mobile phone. 
> http://mobile.yahoo.com/learn/mail 

Current Thread