OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] role to class automatically


Hi Larry,
The short answer is that there is no easy way to globally force all role 
attributes to show up as a class name.  You would have to modify the 
template for each element.

If you look at the template that matches on 'emphasis' in html/inline.xsl, 
you'll see the xsl:choose statement that responds to the 
$emphasis.propagates.style parameter.  It has a choose statement because it 
will output the class attribute using the element name as the value if you 
don't set the parameter.  Something like that would need to be done to 
other templates.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Larry Garfield" <larry@garfieldtech.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, June 13, 2006 6:07 PM
Subject: Re: [docbook-apps] role to class automatically


> No one has any suggestions on this front?
>
> On Monday 29 May 2006 22:11, Larry Garfield wrote:
>> Another question.  Is there a way to globally force all role attributes 
>> to
>> show up as a class on the corresponding div or span in the HTML output? 
>> Or
>> some other straightforward way to arbitrarily add a class to the 
>> eventual
>> output?
>
> -- 
> Larry Garfield AIM: LOLG42
> larry@garfieldtech.com ICQ: 6817012
>
> "If nature has made any one thing less susceptible than all others of
> exclusive property, it is the action of the thinking power called an 
> idea,
> which an individual may exclusively possess as long as he keeps it to
> himself; but the moment it is divulged, it forces itself into the 
> possession
> of every one, and the receiver cannot dispossess himself of it."  --  
> Thomas
> Jefferson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]