How to present visual tags in output that correspond to element attributes in a topic

Hi all,

We have a requirement to deliver context-sensitive content based on metadata on elements within a topic. One output is embedded into a third-party app and the correct content for each context is shown based on the metadata attributes. A custom XSLT is required to produce the right schema (i.e. we bypass DITA-OT processing entirely).

In PDF and XHTML, we need to show the content of all elements, with some visual way of describing their contexts. We use DITA-OT processing for these outputs.

To support that, we're thinking we'd need to render a visual indicator for each attribute in the PDF and XHTML outputs to indicate context.

Example DITA markup:

<p otherprops="foo">Read this if you are using foo.</p>

<p otherprops="bar">Read this if you are using bar.</p>

<p otherprops="global">Read this, everyone.</p>

Example output:

|For foo only| Read this if you are using foo.

|For bar only| Read this if you are using bar.

|Global| Read this, everyone.

where |xyz| can be an image or other visual indicator.

It looks like IBM WebSphere docs use a similar approach:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp (see topic "Installing the product and additional software")

Can anyone suggest ways of doing this using DITA-OT? Even better, actual examples of DITA markup + corresponding XSLT to render this kind of output? (Psst, WebSphere doc team?)

TIA!

- lisa

 

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I