Bill,
 
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="http://www.w3.org/1999/XSL/Transform" xmlns:ead="urn:isbn:1-931666-22-9"
            xmlns:xs
="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml" xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
            xmlns:xdt
="http://www.w3.org/2005/02/xpath-datatypes" xmlns:xlink="http://www.w3.org/1999/xlink">

 

 

Here is the resulting HTML element:  

 

<html xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes" xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/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]

Web: www.amigos.org