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

Re: xmlns:xi attributes getting into HTML output

Subject: Re: xmlns:xi attributes getting into HTML output
From: "Michael B Allen ioplex@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Oct 2022 15:03:56 -0000
Re:  xmlns:xi attributes getting into HTML output
On Wed, Oct 26, 2022 at 10:56 AM Michael Kay mike@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Firstly, I suspect that that "..." is hiding an identity template that
> uses xsl:copy. The xsl:copy instruction copies namespace nodes from the
> source document to the result document. In 2.0+ you can suppress that with
> a copy-namespaces="no" attribute.
>

Of course I just discovered that I was looking at the wrong XSL file and I
was using xsl:copy-of:

<xsl:template match="header">
    <header>
        <xsl:copy-of select="*"/>
    </header>
</xsl:template>

Changing from copy-to to <xsl:apply-templates select="@*|node()"/> seems to
have fixed the problem.

Thanks,
Mike

--

Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/

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-2013 All Rights Reserved.