Of course. Silly me.
I tried but putting the XSL-stylesheet processing instruction before and after the DOCTYPE declaration and it made no difference to IE. It transformed the file either way. However, other transformation engines may not be so forgiving.
So that puts us back to the other idea- the transformation is failing because the processor is not finding either the dtd or the stylesheet files because it does not have a full and proper path to their location in the DOCTYPE declaration and/or the stylesheet processing instructions.
Michael
________________________________________
From: Encoded Archival Description List [[log in to unmask]] On Behalf Of Michele R Combs [[log in to unmask]]
Sent: Tuesday, March 30, 2010 11:57 AM
To: [log in to unmask]
Subject: Re: problem with a reference to an xsl stylesheet i do not have
Wouldn't that just be for transformation on your local PC using Oxygen? Once you have the file online with a callout to an XSL style sheet, doesn't the browser do all the work?
Michele
-----Original Message-----
From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Fox, Michael
Sent: Tuesday, March 30, 2010 11:56 AM
To: [log in to unmask]
Subject: Re: problem with a reference to an xsl stylesheet i do not have
I believe that you have to create a transformation scenario in Oxygen that directs the XSLT engine to use the stylesheet instruction that you reference at the beginning of the document.
Michael
-----Original Message-----
From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Anna Kresmer
Sent: Tuesday, March 30, 2010 7:49 AM
To: [log in to unmask]
Subject: problem with a reference to an xsl stylesheet i do not have
Hello All,
I'm a new archivist working with my IT department to get our very
first EAD finding aid online. This is a new experience to all of us and we
have run into a problem. We set up a directory on our web server with all
the proper files (EAD DTD, the EAD file, an XSL stylesheet, and a CSS
file) all linked together as they should be. It all appears to work fine,
until you try to visit the URL.
The IT department identified a problem with one line of code in
the EAD XML file. It references an XSL stylesheet we do not have. This
stylesheet reference was left in the EAD template that came with Oxygen
Editor and was presumable used by the archivist who created/donated the
EAD template to Oxygen (see the middle line, please):
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://nwda-
db.wsulibs.wsu.edu/xsl/project.xsl"?>
<!DOCTYPE ead PUBLIC "+//ISBN 1-931666-00-8//DTD ead.dtd (Encoded Archival
Description (EAD) Version 2002)//EN" "ead.dtd">
We removed this reference and got a white page of the finding aid text
with no formatting at all. I then replaced it with the references to the
correct XSL and CSS stylesheet, like so:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE ead PUBLIC "+//ISBN 1-931666-00-8//DTD ead.dtd (Encoded Archival
Description (EAD) Version 2002)//EN" "ead.dtd">
<?xml-stylesheet type="text/xsl" href="ead_divs.xsl"?>
<?xml-stylesheet type="text/css" href="ead_divs.css"?>
But this does not fix the problem. Loading the URL just gets an error
message:
The page cannot be found
The page you are looking for might have been removed, had its name
changed, or is temporarily unavailable.
________________________________________
Please try the following:
* Make sure that the Web site address displayed in the address bar
of your browser is spelled and formatted correctly.
* If you reached this page by clicking a link, contact the Web site
administrator to alert them that the link is incorrectly formatted.
* Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
________________________________________
Technical Information (for support personnel)
* Go to Microsoft Product Support Services and perform a title
search for the words HTTP and 404.
* Open IIS Help, which is accessible in IIS Manager (inetmgr), and
search for topics titled Web Site Setup, Common Administrative Tasks, and
About Custom Error Messages.
Is there anyone out there who can shed some light on what I am doing
wrong? According to Oxygen, my EAD file is valid, well-formed, and the
transformation scenario loads properly when I test it on my computer. Am I
missing some all important line of code?
Any help would be greatly appreciated.
Thank you,
|