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

RE: Saxon removes namespace in XHTML output

Subject: RE: Saxon removes namespace in XHTML output
From: M 1879 <m1879@xxxxxxxxxxxxx>
Date: Tue, 22 Aug 2006 15:17:15 -0700
namespace in xhtml
Thanks very much for several excellent, fast responses! Each one would fix the problem. I see now that I was putting some result elements out of namespace "scope."

Removing the xhtml namespace from the html element and putting it on the stylesheet element worked. I also found that removing the xhtml namespace from any element and having the following xsl:output element also got rid of the out-of-namespace xhtml elements:

<xsl:output method="xml"
            media-type="text/html"
            doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
            doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
            indent="yes"
            encoding="ISO-8859-1" />

Thanks again,
Mark

> -----Original Message-----
> From: M 1879 [mailto:m1879@xxxxxxxxxxxxx]
> Sent: 22 August 2006 07:52
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Saxon removes namespace in XHTML output
>
> Hello,
>
> I'm using Saxon-B 8.7.1 from the command line to output
> XHTML. In some tags, not others, the namespace gets reset to
> nothing with xmlns="". The <p> tag at the end of the XHTML
> below is an example.
> The part of the stylesheet that creates these elements is
> after the XHTML.
>
> XHTML output:
> ------------------------
> (XHTML namespace set up here on html element)
>    <h1>Bgp Object</h1>
>    <hr/>
>    <p>
>       <a href="object-index.htm">Back to Object Index</a>
>    </p>
>    <p>
>       <b>Description: </b>
>    </p>
>    <p xmlns="">Defines the characteristics...</p>
> <<<<----RESETS NAMESPACE
> ------------------------
> stylesheet:
>
> <p><b>Description: </b></p>
> <xsl:apply-templates select="doctag_object/description"
> mode="multi-descr" />
>
> <xsl:template match="description" mode="multi-descr">
>      <p><xsl:apply-templates /></p>
> </xsl:template>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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-2011 All Rights Reserved.