[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: not showing namespace in output
Subject: Re: not showing namespace in output|
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Thu, 12 Jan 2006 16:52:42 +0100
If the namespaces are declared in your xsl then try setting exclude-result-prefixes on xsl:stylesheet.
If the namespaces are declared in your xml content, use a identity transform template that recreates
attributes and elements using xsl:attribute and xsl:element. Bit awkward, but works okay.
Ian Ring wrote:
I'm transforming some XML using XSL (using .NET), and the output is
being inserted into a <div> on my page.
The output starts with this:
<?xml version="1.0" encoding="utf-16"?>
And some of the tags within it have an extra attribute, which it got
from the XML namespace:
Is there a way to prevent the namespace and xsl declaration from
appearing in my output? I want it to come out the other side of my
transformation looking like plain HTML, with no indication that it once
belonged to an XML feed.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format