This is the mail archive of the sgml-tools@via.ecp.fr mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Q: "style samples" with DocBook


On 14 Feb 00, at 7:06, Norman Walsh wrote:

> / "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> was heard to say:
> | Is it really that hard?
> | 
> | <simplelist>
> |   <member renderas=acronym>acronym</member>
> |   <member renderas=phrase>phrase</member>
> 
> That would be a stylesheet author's nightmare. Checking every element
> for a renderas attribute? And doing something reasonable if asked to
> renderas something unreasonable (<orderedlist renderas="chapter">...)
> 
> | I just want to create a summary for the style being used in the 
> | document. I wonder If I could use the role attribute with some 
> | contents like "renderas:phrase" to render the element as "phrase", 
> | but I really don't know how to do it in DSSSL.
> 
> How about simply:
> 
> <simplelist>
>   <member><acronym>acronym</acronym></member>
>   <member><phrase>phrase</phrase></member>

Almost, but it's getting more complicated for <procedure>, 
<programlisting>, <blockquote>, etc (non-inline elements)

(Assuming the assigned style does not enforce non-inline rendering)

Regards,
Ulrich




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]