On Fri, Dec 13, 2002 at 01:57:21PM +0100, scarso luigi wrote:
> > I agree with this point of view: formatting preferences are expressed
> > by customizing style sheets. 
> 
> But, again for example, variations like bold etc are not into semantic
> of docbook: a xml document can use proc.instructions
> or role attr. (ex. <para role="bold" >) to carry this informations to
> (ConTeXt) engine, but they
> still remains specific for that engine with a style sheet and there are
> no guarantees  that they will be understand by a different engine.

I did not know what to do with such attributes as role, whose range of
values is not constrained. Luigi's remark gives me an idea: I should
put a hook in the stylesheet for the user's own formatting
command. Something like \attributeaction[para][role]. The user could
define such an action with something like
\defineXMLattributeaction[para][role].

The attribute action should be invoked within a group in order to
allow the user to change fonts etc. for this element. Therefore
context cannot invoke the attribute action automatically, because it
cannot know where it should do so. For example, some mappings for the
opening tag invoke \egroup; if the attribute action had been invoked
automatically, its scope would be ended immediately.

Groeten, Simon

-- 
Simon Pepping
email: [EMAIL PROTECTED]

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to