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: 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: 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

Contact us at files@mathworks.com