Default profile for a book

Here should go questions about transforming XML with XSLT and FOP.
odinodin
Posts: 7

Default profile for a book

Fri May 08, 2015 10:15 am

Is there a way to define a default profile for a given Docbook book? I.e if you want you can override it in the transformation scenario by setting profile.audience=something but if you do not define profile.audience then a default value (defined in the XML) is used.
Radu
Posts: 5757

Re: Default profile for a book

Mon May 11, 2015 3:24 pm

Hi,

The XSLT stylesheets used by Oxygen by default to convert Docbook content to various output formats are located in:

OXYGEN_INSTALL_DIR/frameworks/docbook/xsl

If you search in all of them using Oxygen's Find/Replace in Files for this parameter:

Code: Select all

<xsl:param name="profile.audience"/>


it can probably be altered to set a default value to it:

Code: Select all

<xsl:param name="profile.audience" select="'novice'"/>


We have a presentation about creating a Docbook customization layer which can be used to overwrite XSLT:

http://www.oxygenxml.com/demo/DocBook_Customization.html

You could also register on the Docbook Apps Users list and ask for second opinions:

http://www.docbook.org/help

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests