[oXygen-user] Fwd: Toggling @keyref with Tags Display Mode

Wendell Piez wapiez at wendellpiez.com
Tue Jan 28 08:53:45 CST 2014


I'm always forgetting to reply to list ...

---------- Forwarded message ----------
From: Wendell Piez <wapiez at wendellpiez.com>
Date: Tue, Jan 28, 2014 at 9:53 AM
Subject: Re: [oXygen-user] Toggling @keyref with Tags Display Mode
To: Roger Sheen <infotexture at gmail.com>

Hi Roger,

To bind this behavior to "No Tags Mode" raises all kinds of questions
regarding exactly which behaviors are toggled when. Keep in mind that
Tags Display functionality applies to all document types, not just
DITA.

Much simpler, and cleaner layering, is to deploy another CSS
stylesheet alongside the generic one, with whatever customizations you
want. oXygen lets you have as many CSS displays to choose from as you
wish to configure. Users can switch between them with a pull-down
menu. You can do this yourself. Your new CSS can import the old one
and simply override where necessary.

I can imagine other solutions, such as designating an attribute flag
in the document that toggles display behavior. Using oXygen's forms
widgetry, one could present this as a radio button widget (for
example) and let the user toggle from inside the document.

But this would mean both extending DITA to support it, and arguably
crossing an architectural line, since the document is now being asked
to carry display semantics specifically for the editing environment.
And this raises questions for document interchange, etc. etc.

I'm sure there are other ideas I haven't thought of. :-)

Cheers, Wendell

On Tue, Jan 28, 2014 at 7:33 AM, Roger Sheen <infotexture at gmail.com> wrote:
> While working on Author mode CSS customizations today, I was looking for
> a way to remove the @keyref values that are automatically displayed
> before *keyword* elements when editing DITA topics.
>
> The content in this project makes heavy use of keywords, and many
> authors find the extra text distracting.
>
> I found the relevant rule on line 1053 of the default `topic.css` file
> and added an override in my custom CSS to remove `"[" attr(keyref) "]"`
> from the inserted content (but still display the link).
>
> This solution works, but I was thinking it might be better if this could
> be toggled along with the *Tags display mode*. When set to *No Tags*, it
> would be nice if these values were hidden. I would expect them to be
> displayed in other modes that progressively disclose additional visual
> cues.
>
> Any thoughts?
>
> Regards,
>
> Roger
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user



--
Wendell Piez | http://www.wendellpiez.com
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^


-- 
Wendell Piez | http://www.wendellpiez.com
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^


More information about the oXygen-user mailing list