beta7 bug with file:

"John D. Mitchell" <[email protected]> Tue, 12 Mar 2002 18:33:12 -0800 (PST)
Newsgroups gmane.emacs.xae
Message-ID <[email protected]>
[XAE v1.0beta7 and running it on a Linux 2.2.x box under GNU Emacs 20.7.1.
I'm testing this installation under my personal home directory.]


I used the Files->XAE New->Book to generate a simple test book.

The header generated was:

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBk XML V4.1.2//EN" "file:////home/johnm/Emacs/lisp/xae-1.0beta7/doctypes/docbook/docbookx.dtd" []>

<?xml-stylesheet href="file:////home/johnm/Emacs/lisp/xae-1.0beta7/doctypes/docbook/styles/docbook/html/docbook.xsl" type="text/xsl"?>


Trying to XAE->Apply Stylesheet->Associated fails with:

XAE Services

> apply_assoc_stylesheet file:///home/johnm/new.xml /home/johnm/new.xhtml
Failed while looking for xml-stylesheet PI
Cannot read from file://home/johnm/Emacs/lisp/xae-1.0beta7/doctypes/docbook/docbookx.dtd (home)
At line 3 in file:/home/johnm/new.xml
javax.xml.transform.TransformerConfigurationException: org.xml.sax.SAXParseException: Cannot read from file://home/johnm/Emacs/lisp/xae-1.0beta7/doctypes/docbook/docbookx.dtd (home)
	at com.icl.saxon.TransformerFactoryImpl.getAssociatedStylesheet(TransformerFactoryImpl.java:255)
...


When I changed the file: specifier to file:/// instead of file://// like so:

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBk XML V4.1.2//EN" "file:///home/johnm/Emacs/lisp/xae-1.0beta7/doctypes/docbook/docbookx.dtd" []>

<?xml-stylesheet href="file:///home/johnm/Emacs/lisp/xae-1.0beta7/doctypes/docbook/styles/docbook/html/docbook.xsl" type="text/xsl"?>

then the transformation seems to work correctly.

Take care,
	John
_______________________________________________
XAE mailing list
[email protected]
http://sunsite.dk/mailman/listinfo/xae