Please review this answer in the XSLT FAQ on namespaces:
http://dpawson.co.uk/xsl/sect2/N5536.html#d7038e1015
"You have to include a corresponding namespace declaration in your
stylesheet, binding it to a prefix of your choice. Then, in your match
patterns, include that prefix. Your stylesheet is written to match
elements that are not in a namespace. It matches nothing because all
of the source document's elements *are* in a namespace."
Mark A. Matienzo
Digital Archivist, Manuscripts and Archives
Yale University Library
On Wed, Dec 8, 2010 at 3:59 PM, De Catanzaro, Christine D
<[log in to unmask]> wrote:
> I'd like to know the answer to this question as well!
>
> Christine
>
> ----- Original Message -----
> From: "Michele R Combs" <[log in to unmask]>
> To: [log in to unmask]
> Sent: Wednesday, December 8, 2010 2:56:18 PM
> Subject: Re: XSLT for HTML display of schema-compliant EAD?
>
> Heh. This is why I should just stay out of namespace discussions ;) But if that's the case -- if xmlns="urn:isbn:1-931666-22-9" is the correct namespace for EAD -- then why doesn't the style sheet work as is?
>
> Michele
>
> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Mark A. Matienzo
> Sent: Wednesday, December 08, 2010 11:08 AM
> To: [log in to unmask]
> Subject: Re: XSLT for HTML display of schema-compliant EAD?
>
>
> That line is absolutely necessary for the EAD to be schema-compliant.
> The problem lies in the stylesheet; you can try declaring the default
> namespace of the stylesheet to be that of the schema version of EAD. I
> am not sure offhand if this will work.
>
> Mark A. Matienzo
> Digital Archivist, Manuscripts and Archives
> Yale University Library
>
> --
> Christine D. de Catanzaro, Ph.D., M.L.I.S.
> Access Archivist
> Subject Librarian - Music
>
> Georgia Tech Archives
> Library and Information Center
> 704 Cherry Street
> Atlanta, GA 30332-0900
>
> Phone: 404-385-0107
> Fax: 404-894-9421
>
> E-mail: [log in to unmask]
>
|