List Info

Thread: How to specify an attribute-set?




How to specify an attribute-set?
user name
2006-12-29 22:05:03
Hi,

I'm using DocBook XSL to transform a DocBook file to FO, and
I'm  
customizing the output via user-configurable parameters [1].
For  
instance, if I want to prevent URLs from appearing after the
text of  
a ULink, I can set the ulink.show parameter [2].

Specifying these parameters is easy enough. When using Ant's
Xslt  
task [3], for instance, I can simply add <param>
sub-elements.  
Likewise, when calling Saxon from the command line, I can
just add  
the parameters as command line arguments.

I recently discovered that some of the FO parameters, such
as  
formal.title.properties [4], are not so simple; they're
structured.  
That is, instead of a key/value pair, they're specified as
an  
attribute-set. How is one supposed to specify these
attribute-sets  
when using Ant or Saxon? I couldn't find any documentation
or  
examples on how to do this.

Thanks,

Trevor

[1] http://docbook.sourceforge.net/release/xsl/c
urrent/doc/fo/index.html
[2] http://docbook.sourceforge.net/release/xsl/current/doc
/fo/ 
ulink.show.html
[3] htt
p://ant.apache.org/manual/CoreTasks/style.html
[4] http://docbook.sourceforge.net/release/xsl/current/doc
/fo/ 
formal.title.properties.html


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

How to specify an attribute-set?
user name
2006-12-29 22:48:38
Hi Trevor,

On Friday 29 December 2006 23:05, Trevor Harmon wrote:
>
> I'm using DocBook XSL to transform a DocBook file to
FO, and I'm
> customizing the output via user-configurable parameters
[1]. For
> instance, if I want to prevent URLs from appearing
after the text of
> a ULink, I can set the ulink.show parameter [2].
>
> Specifying these parameters is easy enough. When using
Ant's Xslt
> task [3], for instance, I can simply add <param>
sub-elements.
> Likewise, when calling Saxon from the command line, I
can just add
> the parameters as command line arguments.
>
> I recently discovered that some of the FO parameters,
such as
> formal.title.properties [4], are not so simple; they're
structured.
> That is, instead of a key/value pair, they're specified
as an
> attribute-set. How is one supposed to specify these
attribute-sets
> when using Ant or Saxon? I couldn't find any
documentation or
> examples on how to do this.

I fear it is not possible to add an attribute set on a
command line.

I am not very familiar with Ant but as fas as I understood
it, you need a 
customization layer (see [1,2]).  Simply said, you create a
XSLT 
stylesheet, import the original DocBook stylesheet, move
your parameters 
from your Ant task to the customization layer and add your
attribute 
sets.

Delete all <param> in your Ant task and use your
customized stylesheet 
instead the original one. Hope it's clear from this rough
description. 


Hope that helps,
Tom

----------
[1] 
http://www.sagehill.net/docbookxsl/Custo
mMethods.html#CustomizationLayer
[2] http://www.sagehill.net/docbookxsl/AttributeSets.html

-- 
Thomas Schraitle

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )