Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: publish html error

Subject: publish html error

From: Olaf

Date: 18 Dec, 2007 13:53:54

Message: 1 of 3

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

Subject: Re: publish html error

From: Olaf

Date: 18 Dec, 2007 14:00:03

Message: 2 of 3

oh, I see, XSL stylesheet. Anyway, how can I use my own css?

Thanks,
Olaf

Subject: Re: publish html error

From: Matthew Simoneau

Date: 18 Dec, 2007 15:54:59

Message: 3 of 3

We don't make this very easy. You need to copy
toolbox/codetools/private/mxdom2simplehtml.xsl, modify it to
reference your CSS file, save it with a different name, and
then use this new file as a custom stylesheet.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
publish Matthew Simoneau 18 Dec, 2007 10:55:05
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics