I believe that what you need to do is add the following string to your <xsl:stylesheet> element.

exclude-result-prefixes="fn xdt xs xlink ead

Michael Fox

From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Bill Walker
Sent: Tuesday, September 09, 2008 11:04 AM
To: [log in to unmask]
Subject: EAD 2 XHTML

I am attempting to transform EAD to XHTML.  My XSL stylesheet <xsl:stylesheet> element has several namespaces which get output as attribute to the opening <html> element.

Here is my opening stylesheet element:

<xsl:stylesheet version="2.0" xmlns:xsl="" xmlns:ead="urn:isbn:1-931666-22-9"
            xmlns:xs="" xmlns="" xmlns:fn=""
            xmlns:xdt="" xmlns:xlink="">

Here is the resulting HTML element:

<html xmlns:fn="" xmlns:xdt="" xmlns="" xmlns:xs="" xmlns:xlink="" xmlns:ead="urn:isbn:1-931666-22-9">

Here is my <xsl:output> element:

Of course, these namespace attributes are not valid for the <html> element, but are required for <xsl:stylesheet>.

How do I resolve this problem?

Bill Walker
Imaging Field Services Officer
Amigos Library Services,
14400 Midway Road,
Dallas, TX 75244-3509
800-843-8482 x2853
972-340-2853 (direct)
972-991-6061 (fax)
Email: [log in to unmask]