Re: [xsl] not showing namespace in output

Subject: Re: [xsl] 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.

Cheers

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:
<div xmlns:uyp="urn:yahoo:aprods">

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.

~ ir

Current Thread