[oXygen-user] Controlling the style of generated schema documentation

Sorin Ristache
Fri Apr 7 04:03:17 CDT 2006


Hello,

There is one parameter of the xs3p stylesheet which does exactly what 
you want: specify a CSS stylesheet for the result HTML documentation. It 
is called externalCSSURL and you have to specify it in the 
schemaDocumentation script on the line which applies the 
frameworks/xs3p/xs3p.xsl stylesheet to the XSD file. The value of the 
externalCSSURL parameter is a path to a local CSS file or a URL. The 
local file path must be specified relative to the location of the result 
HTML file. I attached the default internal CSS in case you need the 
class names used in the HTML elements.

A future version of <oXygen/> will publish the parameter in the user 
interface.


Best regards,
Sorin

http://www.oxygenxml.com/


Sorin Ristache wrote:
> Hello,
> 
> All the customizable settings of the schema documentation generator are 
> presented in the dialog which launches the generator. As the dialog 
> shows the current version of <oXygen/> does not allow configuring the 
> CSS stylesheet, colors, etc. for the HTML result but we added a feature 
> request with that on our bugzilla.  The XSLT stylesheet used to generate 
> the documentation is almost the same as 
> [oXygen-install-folder]/frameworks/xs3p/xs3p.xsl but you do not have 
> access to it. You can see an example of using 
> [oXygen-install-folder]/frameworks/xs3p/xs3p.xsl from the command line 
> in the script [oXygen-install-folder]/schemaDocumentation.bat (or 
> schemaDocumentation.sh for Mac OS X/Unix/Linux). Until the feature 
> request is implemented the only possibility to set your own CSS file, 
> colors, etc. is to modify this stylesheet and invoke it as in the 
> schemaDocumentation.bat script.
> 
> 
> Best regards,
> Sorin
> 
> http://www.oxygenxml.com/
> 
> 
> Christopher Smith wrote:
> 
>> Hi there,
>>
>> I was wondering if there is a place in the oxygen preferences, or a  
>> stylesheet, that is used when generating the schema documentation.  
>> I'd like to be able to change the default colors (for instance) used  
>> for the generated documentation.
>>
>> I noticed that there is CSS information in the head of the generated  
>> documentation, but I was wondering if I can change this for all  
>> documentation that I generate, without needed to resort to post- 
>> generation editing or scripting.
>>
>> Thanks,
>>
>> -- Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: internal.css
Type: text/css
Size: 7535 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20060407/026bb9e4/attachment.css 


More information about the oXygen-user mailing list