Next in thread → Next in month →

RE: [docbook-apps] <phrase> attribute

From
Rowland, Larry <>
Date
2006-01-23T18:33:09+00:00
ID
Thread
RE: [docbook-apps] <phrase> attribute
It is also possible to set the phrase.propogates.style parameter in the
DocBook HTML transform and pass the role attribute through to the HTML
as a class attribute on a span element surrounding the content of the
phrase in the output.  This allows you to match a predefined style in a
CSS rather than having to write XSLT code to modify the output.

Larry Rowland

> -----Original Message-----
> From: Richard Hamilton [mailto:] 
> Sent: Monday, January 23, 2006 11:20 AM
> To: 
> Cc: 
> Subject: RE: [docbook-apps] <phrase> attribute
> 
> 
> Daniel,
> 
> The docbook standard provides the role attribute as a way
> for implementers to add application specific information.
> It is typically used to subset an element.  E.g., it is
> pretty common to use role on the <emphasis> element to
> choose between "normal" and "strong" emphasis.
> 
> The standard does not assign any values to role, so in
> theory you could ignore it.  However, in practice, you
> may want to recognize it in a few places, emphasis being
> one example.  I'd suggest looking in two places to find
> "commonly used" roles: Bob Stayton's DocBook XSL book and
> the DocBook XSL stylesheets, which process the use of role
> in a few places.  I'll bet that will cover the most common
> uses of role; most other uses are going to be specific to
> some small group of users.
> 
> Dick Hamilton
> 
> > -----Original Message-----
> > From: Daniel Carrera [mailto:] 
> > Sent: Saturday, January 21, 2006 5:36 PM
> > To: Craeg Strong
> > Cc: 
> > Subject: Re: [docbook-apps] <phrase> attribute
> > 
> > 
> > Hmm... so 'role' can mean anything at all then?
> > 
> > I am writing an XSLT to turn Docbook into OpenDocument. I 
> > guess I have 
> > to just ignore the role attribute, right?
> > 
> > Cheers,
> > Daniel.
> > 
> > 
> > Craeg Strong wrote:
> > > role is a generic attribute that is available on nearly 
> > every docbook 
> > > element.
> > > It's use is largely application-defined.  Whomever authored 
> > that test 
> > > file either provided
> > > a custom DTD that lists the valid attribute values or 
> they did not.
> > > see: http://docbook.org/tdg/en/html/pe-role.html
> > > hope this helps,
> > 
> > 
> > -- 
> >       /\/`) http://oooauthors.org
> >      /\/_/  http://opendocumentfellowship.org
> >     /\/_/
> >     \/_/    I am not over-weight, I am under-tall.
> >     /
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
> 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
>
Next in thread → Next in month →