Print

Print


Thanks Mike - it all makes sense now!

Leah

Leah Prescott
Manuscripts and Archives Librarian
Collections Information Technology Coordinator

MYSTIC SEAPORT
The Museum of America and the Sea
G.W. Blunt White Library
75 Greenmanville Avenue
PO Box 6000
Mystic CT  06355-0990

tel: 860.572.0711 x5263
fax: 860.572.5394
[log in to unmask]
http://www.mysticseaport.org


> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]]
> On Behalf Of Michael Rush
> Sent: Tuesday, October 07, 2003 11:23 AM
> To: [log in to unmask]
> Subject: Re: Getting my bearings with EAD 2 (still)
>
>
> Leah,
>
> If you want your xsl output to be xhtml compliant, you have
> to make some changes to the xsl:output tag in your
> stylesheet.  In short, the stylesheet has to be told to
> create xml rather than html so that rather than getting <META
> http-equiv="Content-Type" content="text/html; charset=UTF-8">
> you will get <META http-equiv="Content-Type"
> content="text/html" charset="UTF-8" />.  Or in the case of
> <br> and <hr> you'll get <br /> and <hr />.  All of those
> tags are empty, in that they don't have closing tags so you
> have to include the "/" at the end of the tag in order to be
> valid xhtml.  The stylesheet will include those ending
> forward slashes if you set the xsl:output method attribute to "xml"
>
> The following is an example of the xsl:output tag in my
> primary stylesheet:
>
> <xsl:output method="xml" encoding="UTF-8" indent="yes"
> omit-xml-declaration="no" doctype-public="-//W3C//DTD XHTML
> 1.0 Transitional//EN"
> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transit
> ional.dtd"/>
>
> Even though the ouput method is "xml", I'm still saving as
> .html and browsers seem able to read it just fine.
>
> For more info on the xsl:output tag, refer to this page at
> the W3: http://www.w3schools.com/xsl/el_output.asp
>
> Mike
> ____________________________________________
> Michael Rush - Manuscript Processor
> Massachusetts Historical Society
> [log in to unmask] - http://www.masshist.org
> (617)646-0553 - (617)859-0074 (fax)
>
> > -----Original Message-----
> > From: Encoded Archival Description List
> [mailto:[log in to unmask]]On Behalf
> > Of Leah Prescott
> > Sent:
> Tuesday, October 07, 2003 10:51 AM
> > To: [log in to unmask]
> > Subject: Getting my bearings with EAD 2 (still)
> >
> >
> > I have another question regarding XML Spy and EAD 2.  In my
> > experimenting I decided to see if my html output was xhtml
> compliant.
> > It worked pretty well except that the meta tags, the <hr>
> tags and the
> > <br> tags don't output with end tags.  When I look at the
> DTD and the
> > stylesheet, the end tags are there, but get lost in translation.
> > There is also a <META http-equiv="Content-Type" content="text/html;
> > charset=UTF-8"> tag that I can't find anywhere else other than the
> > resultant html document.  Is this added by XML Spy, and if
> so, why is
> > there not an end tag?
> >
> > Leah Prescott
> > Manuscripts and Archives Librarian
> > Collections Information Technology Coordinator
> >
> > MYSTIC SEAPORT
> > The Museum of America and the Sea
> > G.W. Blunt White Library
> > 75 Greenmanville Avenue
> > PO Box 6000
> > Mystic CT  06355-0990
> >
> > tel: 860.572.0711 x5263
> > fax: 860.572.5394
> > [log in to unmask]
> > http://www.mysticseaport.org
>
>
> --
> This message has been scanned for viruses by Symantec
> Anti-Virus for SMTP gateways
>