36
contentstrategy101.com Extreme conditions in DITA flickr: mikebaird Sarah O’Keefe Scriptorium Publishing

Extreme conditions in DITA

Embed Size (px)

DESCRIPTION

An overview of how to manage variant content in DITA. Includes variables (keyrefs), attribute-based conditions, ditaval files, and conref push. Pre

Citation preview

Page 1: Extreme conditions in DITA

contentstrategy101.com

Extreme conditions in DITAflickr: mikebaird

Sarah O’KeefeScriptorium Publishing

Page 2: Extreme conditions in DITA

❖ Founder and president, Scriptorium Publishing, www.scriptorium.com, North Carolina, USA

❖ Coauthor of Content Strategy 101

❖ Interested in collision of content, publishing, and technology

Sarah O’Keefe @sarahokeefe

Page 3: Extreme conditions in DITA

❖ Basic conditions

❖ Advanced conditions

❖ Scary conditions

❖ The human element

❖ Surviving extreme conditions

Agenda

Page 4: Extreme conditions in DITA

Murky conditional requirements are common

flickr: jaybergesen

Page 5: Extreme conditions in DITA

❖ Variables

❖ Short snippet, like a product name, that changes

❖ Conditional information

❖ Needs to be included or excluded

❖ Topic, block, or inline

❖ Graphics and tables

Classes of text variants

Page 6: Extreme conditions in DITA

❖ Output

❖ Product

❖ Audience level

❖ Customer type

❖ Customer

❖ and more…

Conditional dimensions

Page 7: Extreme conditions in DITA

flickr: jenniferwoodardmadazero

Page 8: Extreme conditions in DITA

<map> <title>DITA Topic Map</title> <keydef keys="clientname"> <topicmeta> <keywords> <keyword>My First Client</keyword> </keywords> </topicmeta> </keydef> <topicref href="sample.dita"/></map>

<p>When we deliver this information to <keyword keyref="clientname"/>...

Map

Topic

Page 9: Extreme conditions in DITA

Basic conditions

flickr: snowpeak

Page 10: Extreme conditions in DITA

<p>This paragraph is for everyone.</p><p audience="advanced">This paragraph is only for advanced users.</p>

<note><p> It's possible to do conditional content at the phrase level<ph platform="badidea">, but it's a really terrible idea</ph>. </p></note>

Paragraph

Inline

Page 11: Extreme conditions in DITA

<p audience="expert" platform="windows" product="X">content goes here</p> <p audience="expert" platform="windows mac" product="X Y Z">other content here</p>

Page 12: Extreme conditions in DITA

Do not use conditions below the sentence—preferably paragraph—level.

flickr: snowpeak

Page 13: Extreme conditions in DITA

flickr: snowpeak

<p>The colo<ph xml:lang="en-uk">u</ph>r of money is a very speciali<ph xml:lang="en-uk">s</ph><ph xml:lang="en-uk">z</ph>ed topic.</p>

Please, for the love of all that is holy…NO.

Page 14: Extreme conditions in DITA

<val> <prop action="include" att="audience" val="expert" /> <prop action="include" att="product" val="X" /></val>

Page 15: Extreme conditions in DITA

❖ Taxonomy and information architecture much more difficult

❖ Which attributes?

❖ Which attribute values?

❖ How do the attributes combine?

❖ (more on this later)

Markup is the small(er) challenge.

Page 16: Extreme conditions in DITA

❖ Three attributes out of the box.

❖ Then, you must speciali[s|z]e.

❖ Can limit allowed attribute values through authoring tools or subject scheme maps.

Markup is the small(er) challenge.

Page 17: Extreme conditions in DITA

Complex conditionsflickr: ooocha

Page 18: Extreme conditions in DITA

<warning audience="ca"> <p> This product contains chemicals known to the State of California to cause cancer and birth defects or other reproductive harm.</p> </warning>

Page 19: Extreme conditions in DITA

<warning audience="ca"> <p> This product contains chemicals known to the State of California to cause cancer and birth defects or other reproductive harm.</p> </warning>

<warning audience="usa-ca"><warning audience="ca">

Page 20: Extreme conditions in DITA

<warning audience="usa-ca"><warning audience="ca-en">

Page 21: Extreme conditions in DITA

<warning audience="usa-ca"><warning audience="ca-en">

<warning audience="usa-ca"><warning audience="ca" xml:lang= "en-ca"><warning audience="ca" xml:lang= "fr-ca">

Page 22: Extreme conditions in DITA

Customers lead to complexity.

Page 23: Extreme conditions in DITA

<p audience="army">

Page 24: Extreme conditions in DITA

<p audience="army"><p audience="navy">

Page 25: Extreme conditions in DITA

<p audience="army"><p audience="army navy">

Page 26: Extreme conditions in DITA

<p audience="military"><p audience="army navy"><p audience="usaf"><p audience="marines"><p audience="coastguard">

Page 27: Extreme conditions in DITA

And now for the non-U.S. military customer…

Page 28: Extreme conditions in DITA

<warning audience="military-us-army"><warning audience="military-uk-army">

<warning segment="military" branch="army" country="us" ><warning segment="military" branch="army" country="uk" >

Page 29: Extreme conditions in DITA

Reuse and conditions

flickr: noaaphotolib

Page 30: Extreme conditions in DITA

Content references (conrefs)

Page 31: Extreme conditions in DITA

<p id="framemaker">We recommend FrameMaker if sophisticated PDF formatting is a critical requirement.</p>

Source

Page 32: Extreme conditions in DITA

... <p conref="fm.dita#id/framemaker" conaction="mark"/> <p conaction="pushafter">Using FrameMaker would eliminate the manual formatting that currently takes up so much production time.</p>

<p id="framemaker">We recommend FrameMaker if sophisticated PDF formatting is a critical requirement.</p>

... <p conref="fm.dita#id/framemaker" conaction="mark"/> <p conaction="pushafter">FrameMaker does not support right-to-left languages (such as Arabic), which ClientB needs.</p>

Source

Client A

Client B

Page 33: Extreme conditions in DITA

The human element

flickr: danoff

Page 34: Extreme conditions in DITA

Surviving extreme conditions

flickr: Bruce Guenter

Page 35: Extreme conditions in DITA

Questions?

flickr: cayce

Page 36: Extreme conditions in DITA

Contact me

❖ Sarah O’Keefe, Scriptorium Publishing

❖ www.scriptorium.com

❖ Email: [email protected]

❖ Twitter: @sarahokeefe