It is my understanding that when you include a processing instruction in you EAD instance that specifies a stylesheet to be used for transformation as you have done with this document, you are trumping the declaration in ead.mcr that would otherwise specifies the stylesheet to be used in page preview transformations.
As to IE, it looks as if the processor cannot find the file ead.dtd. The SGML declaration statement (lines 3 and 4 in your clip) indicates, by the lack of a path to another directory in the last part where it reads "ead.dtd", that ead.dtd needs to be in the same directory as the EAD instance.
The path stated looks like it is looking for it in an XMetaL rules folder, but citing the template file name.
I have no explanation from here as to how that happened but users of XMetaL need to know that when you open an new instance and don't use a template, XMetaL will insert the path to the rules directory where the DTD is stored which can cause problems in subsequent uses of document outside of XMetaL. The solution is to use an XMetaL template which specifies a more persistently accessible location for the ead.dtd file.
Michael
-----Original Message-----
From: Encoded Archival Description List [mailto:[log in to unmask]]On Behalf Of
Sarena Fletcher
Sent: Wednesday, March 23, 2005 12:48 PM
To: [log in to unmask]
Subject: XMetaL 4.5 stylesheet problem
I am using the XMetaL 4.5 trial software. I am having difficulty getting the
stylesheets to work with the xml documents. I am referring to the ones I
downloaded from the EAD Cookbook 2002.
When I try to view an xml document, with first three lines:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet href="eadcbs8.xsl" type="application/xsl"?>
<!DOCTYPE ead PUBLIC "+//ISBN 1-931666-00-8//DTD ead.dtd Encoded Archival
Description (EAD) Version 2002//EN" "ead.dtd">
through Internet Explorer, I get this message:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then
click the Refresh button, or try again later.
The system cannot locate the resource specified. Error processing resource
'ead.dtd'. Error processing resource 'file:///C:/Program Files/Blast
Radius/XMetaL 4.5/Author/Rules/eadperson2002xm.xml'. Line 3, Position 121
<!DOCTYPE ead PUBLIC "+//ISBN 1-931666-00-8//DTD ead.dtd Encoded Archival
Description (EAD) Version 2002//EN" "ead.dtd">
When I preview an xml document through XMetaL (Preview in Browser), the
resulting htm document looks the same as when I do not link any of the
stylesheets offered in the Cookbook.
Following the EAD Cookbook 2002 Section 6.2.2.3, MSXML with XMetaL, I do not
see the specified text any where in the ead.mcr when open in Notepad.
The stylesheets and xml documents are all in the same folder. I have the
latest version of MSXML.
Does anyone have any suggestions as to what I may be doing wrong?
Thanks,
Sarena Fletcher
Head Librarian
Delaware Art Museum
Wilmington, Delaware
|