Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news.f.de.plusline.net!newsfeeder.dynfx.net!news.musoftware.de!news.mind.de!news.cs.uni-magdeburg.de!not-for-mail
From: Olaf <noreplay@inder.net>
Newsgroups: comp.soft-sys.matlab
Subject: publish html error
Date: Tue, 18 Dec 2007 14:53:54 +0100
Organization: University of Magdeburg, Germany
Lines: 40
Message-ID: <fk8jdf$ss9$1@fuerst.cs.uni-magdeburg.de>
NNTP-Posting-Host: imat55.mb.uni-magdeburg.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
X-Trace: fuerst.cs.uni-magdeburg.de 1197986032 29577 141.44.146.55 (18 Dec 2007 13:53:52 GMT)
X-Complaints-To: abuse@cs.uni-magdeburg.de
NNTP-Posting-Date: Tue, 18 Dec 2007 13:53:52 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
Xref: news.mathworks.com comp.soft-sys.matlab:442905


Hi,

why I get the error:

Error on line 1 column 1 of
file:///C:/Programme/MATLAB/R2007b/toolbox/matlab/demos/private/style.css:
  Error reported by XML parser: Content is not allowed in prolog.
??? Error using ==> javaMethod
Java exception occurred:
javax.xml.transform.TransformerConfigurationException: Failed to parse
stylesheet

	at com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:117)

	at
com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:120)

	at
com.icl.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:72)


Error in ==> xslt>locTransformer at 166
    xProcessor = javaMethod('newTransformer',...

Error in ==> xslt at 87
xProcessor =
locTransformer(varargin{2},xSource,xUtil,errorListener,uriResolver);

Error in ==> publish at 212
        xslt(dom,options.stylesheet,outputAbsoluteFilename);


if I use it like this:

opts.stylesheet = fullfile(matlabroot,
'toolbox','matlab','demos','private','style.css')
publish('doc_demo.m', opts)

Thanks,
Olaf