Clark Karr wrote: > For converting to pdf, I?d like to change the default values for some > attributes: > > An unspecified ?spacing? attribute of ordered and itemized lists is > treated like ?normal?; I?d like ?compact?. > > An unspecified ?align? attribute of imagedata is treated like ?left?; > I?d like ?center?. > > An unspecified ?contentwidth? attribute of imagedata produced giant > images; I?d like ?2in?. > > > > I?ve wandered around the > \XMLmind_XML_Editor\addon\config\docbook\xsl\fo\ folder trying to adjust > params.xsl, formal.xsl, and graphics.xsl but haven?t succeeded. > > > > I can?t seem to find where the default attribute values are specified. > Any help is appreciated. >
--> Attribute default values are specified in the DocBook 4 DTD (or in the DocBook 5 RELAX NG schema). The DocBook 4 DTD is found in \XMLmind_XML_Editor\addon\config\docbook\dtd\VN.M\. But modifying the DTD or schema is probably not what you want to do. --> You probably want to change the parameters of the XSL style sheet which converts DocBook to XSL-FO (then FOP or XEP converts the XSL-FO to PDF). Example: parameter "default.image.width" http://docbook.sourceforge.net/release/xsl/current/doc/fo/default.image.width.html These parameters are documented here: http://docbook.sourceforge.net/release/xsl/current/doc/fo/index.html Once you have identified the parameters and their values, you need to specify them to XXE. There are two ways to do so: [1] By using menu item "Options|Customize Configuration|Change Document Conversion Parameters". See http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.kit.part.ConversionParametersEditor.html [2] By creating a customization of the DocBook configuration. See "Customizing an existing configuration" http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html and more specifically in "Parametrizing the XSLT style sheets used in the Convert Document submenu" http://www.xmlmind.com/xmleditor/_distrib/doc/configure/parametrize_xslt.html --> If you cannot customize the output simply by using XSLT style sheet parameters, you'll have to specialize the XSLT style sheet by creating what is called a ``customization layer''. More information in "DocBook XSL: The Complete Guide" http://www.sagehill.net/docbookxsl/ Integrating such customization layer in XXE is explained in "Customizing an existing configuration" http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html and more specifically in "Customizing the XSLT style sheets used in the Convert Document submenu" http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customize_xslt.html

