<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Joe Pairman on Medium]]></title>
        <description><![CDATA[Stories by Joe Pairman on Medium]]></description>
        <link>https://medium.com/@joepairman?source=rss-34f9743f7287------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zh-5lVZqiamBYPMPlG-vHw.png</url>
            <title>Stories by Joe Pairman on Medium</title>
            <link>https://medium.com/@joepairman?source=rss-34f9743f7287------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:29:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joepairman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Modern metadata through a DITA lens]]></title>
            <link>https://medium.com/@joepairman/modern-metadata-through-a-dita-lens-365e3c68ebd0?source=rss-34f9743f7287------2</link>
            <guid isPermaLink="false">https://medium.com/p/365e3c68ebd0</guid>
            <category><![CDATA[ontology]]></category>
            <category><![CDATA[metadata]]></category>
            <category><![CDATA[linked-data]]></category>
            <category><![CDATA[structured-content]]></category>
            <category><![CDATA[dita-xml]]></category>
            <dc:creator><![CDATA[Joe Pairman]]></dc:creator>
            <pubDate>Tue, 05 Dec 2017 11:38:30 GMT</pubDate>
            <atom:updated>2018-09-13T14:14:26.081Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eVSJeEUw765XwgUm.png" /></figure><p>In structured authoring, metadata is best defined as “data about content”<a href="#f8b0">¹</a>. It may describe what the content is about, who wrote it, or what it is intended to achieve. It is used to make content searchable, discoverable, manageable, interchangeable, analyzable, and more easily integrated with other systems. Structured authoring allows us to apply metadata to granular chunks of content. For example, in <a href="http://docs.oasis-open.org/dita/dita/v1.3/os/part3-all-inclusive/archSpec/base/introduction-to-dita.html">DITA XML</a>, it can be applied to maps and topics, but also to elements and attributes within those topics.</p><p>Just as DITA made structured content far easier to adopt and work with, standards around metadata allow different systems and organization- or industry-specific vocabularies to be linked together successfully. This post talks about some of those standards in relation to structured authoring, as well as the basic principles behind all metadata.</p><h3>Principles of metadata</h3><p>The NISO standards body distinguishes four types of metadata (<a href="https://www.niso.org/publications/understanding-metadata">https://www.niso.org/publications/understanding-metadata</a>). The first three are:</p><ul><li><strong>Descriptive</strong> (for finding and understanding information, e.g. values from a subject taxonomy)</li><li><strong>Administrative</strong> (technical and legal information, e.g. data about image formats to use in rendering, or copyright data to decide when and where content can be used)</li><li><strong>Structural</strong> (the relationship of resources to other resources and container objects)</li></ul><p>As NISO point out, these are not mutually exclusive. For example, the same piece of metadata that describes an article’s author for internal administration purposes may also enable the author byline to be displayed when the article is published.</p><p>The fourth type of metadata is <strong>markup languages</strong>, indicating that these languages mix metadata and content together to a greater extent than happens with other content storage approaches. The metadata in markup languages can still be classified under the first three types, but it is applied to nested, granular chunks of content: inline block and phrase-level elements. This allows ways of working with content that are not possible with traditional document- or page-oriented content management. For example:</p><ul><li>Phrases and keywords can be automatically hyperlinked to definitions or related information without risking broken links when content changes, moves, or is deleted.</li><li>In search interfaces and elsewhere, more relevant paragraphs and blocks of information (sometimes known as microcontent) can be suggested — not just the title and short description or other snippets derived from naive indexing of literal strings.</li><li>In conversational interfaces, useful short answers (microcontent again) can be sourced from long articles provided that the inline elements in those articles are suitably annotated.</li><li>By transforming the markup into web pages enriched with the Schema.org vocabulary, search engines can understand the content better and use snippets of information in link previews.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*aNSq9D9dgIdYFRLr.png" /><figcaption>Search result for a Schema.org-enriched recipe, showing thumbnail image, total time, and (concatenated) steps</figcaption></figure><h4>Key ideas and terms</h4><p>In any publishing environment, metadata follows the same basic pattern: a series of statements are made about a piece of content. We can break each statement into three components:</p><ul><li>The <strong>content</strong> itself, or an identifier that represents it</li><li>Some <strong>data</strong> about the content</li><li>A component that represents the type of <strong>relationship</strong> between the content and the data that describes it</li></ul><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*69ZFe1xnKzj6W3TIYvUcFw.png" /></figure><p>In traditional data modelling terms, the content is an Entity; the relationship an Attribute; and the data a Value of that attribute. In Linked Data terminology / RDF, the same conceptual components are understood as analogous to natural language statements and are called Subject, Predicate, and Object. However, in an RDF statement the Object can alternatively represent another entity, and the Predicate a relationship with that entity. As Entity / Attribute / Value are more specific to the case of describing content directly, I’ll use those terms for the rest of this post.</p><p>As in any technical field, a variety of terms are in use for similar ideas. To help with definitions for the rest of the post, here are three important ideas, with some of the terms asssociated with them:</p><ul><li><strong>Schema / ontology / vocabulary</strong><br>In a broad sense, these define <em>containers</em> of information (entities / classes) and the <em>relationships</em> (properties / elements) between these containers and the data they hold. When “vocabulary” is used on its own, it typically has this sense (see a recent <a href="https://plus.google.com/+joepairman/posts/aumVzRzc2SJ">discussion</a>).</li><li><strong>Taxonomy / thesaurus / controlled vocabulary / controlled list<br></strong>These structures define key concepts that can be used as <em>data</em> in metadata statements. This is often descriptive data about the resource (entity) that is the subject of the statement, for example the themes of a document, the user goals it addresses, or the products it relates to. A taxonomy concept does not become metadata until it is used as part of a statement: in an element or field, as a property of the resource it describes. The compound term “controlled vocabulary” always means a taxonomy rather than an ontology / schema.</li><li><strong>Linked Data / Semantic Web<br></strong>These terms describe an increasingly popular approach to defining and using metadata schemas and taxonomies. In the NISO document’s list of “Notable Metadata Languages: Examples in Broad Use”, nearly all use this approach, or at least have a published version that uses it. The approach is to express and publish semantic data so that the entities within are unambiguously defined and so that different schemas and usages (whether within an organization or across the web) are easily linked. It uses web technologies to achieve this, particularly the use of <a href="https://www.w3.org/TR/ld-glossary/#uniform-resource-identifier">URIs</a> (now IRIs) as identifiers. These are typically in URL format, which can cause confusion for people new to the Linked Data approach: they may link to useful information about the identified entity, but they don’t have to. A key technology in Linked Data is <a href="https://www.w3.org/RDF/">RDF</a> — the framework that provides the subject — predicate — object terminology described above.</li></ul><p>The following sections outline two key use cases for metadata in DITA: describing content with taxonomy, and understanding DITA structures in relation to external schemas or ontologies.</p><h3>Describing DITA content with taxonomy and controlled lists</h3><p>We often need to tag content using values from an external source such as an enterprise or industry taxonomy. This makes it easier for all users, internal and external, to find the content, for example via navigational hierarchies or faceted search interfaces. It can also power intelligent content recommendations, ease information sharing, and help with analyzing data on how the content is being used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*-otsIin1WsUoS95o.png" /><figcaption>Taxonomy application: personalized tip with associated how-to article and video content on HTC phones</figcaption></figure><p>In structured content, particularly in markup languages, taxonomical metadata can describe content chunks at various levels of granularity. In DITA, these levels could be root maps, sub-maps, topics, block elements, and phrase-level elements. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLFfiCkNbbvmV_78q68XOw.png" /></figure><p>These examples can be expressed in DITA in various ways<a href="#a397">²</a>. The topic author could be stated using the available &lt;prolog&gt; metadata. (An example of the powerful ability of markup languages to use nested text containers — elements — to provide metadata describing their parent objects.)</p><pre>&lt;task id=&quot;topic&quot;&gt;<br>     &lt;title&gt;…&lt;/title&gt;<br>     &lt;prolog&gt;<br>         &lt;author&gt;Francis-Noël Thomas&lt;/author&gt;</pre><p>If the author value will be manually keyed in (or if the editing environment can restrict prolog element values to an allowable list), this could be a good option. Most authoring tools display element text by default and allow it to be directly edited.</p><p>However, if the author name is sourced from an external list of values, we might need to use a unique identifier for that name (which also makes life easier if the author changes name at some point). This could be placed in the &lt;author&gt; element still or in an attribute. Attributes are often better locations for data that is not intended to be readable or translatable. In addition, their values <a href="http://docs.oasis-open.org/dita/dita/v1.3/errata01/os/complete/part3-all-inclusive/archSpec/base/controlled-values-for-attributes.html">can be controlled by Subject Scheme</a> maps.</p><p>Thus, using a specialized attribute, we could either add the value to the &lt;author&gt; element in the prolog, or, as the prolog structure becomes rather redundant semantically, directly to the &lt;topic&gt; itself:</p><pre>&lt;task id=&quot;topic&quot; author=&quot;francis-noel-thomas&quot;&gt;<br>     &lt;title&gt;…&lt;/title&gt;</pre><p>If we are working with external systems, it may be necessary to use a URI as the unique identifier for the author:</p><pre>&lt;task id=&quot;topic&quot; author=&quot;http://example.com/users/0800200c9a66&quot;&gt;     &lt;title&gt;…&lt;/title&gt;</pre><h4>Benefits of unique identifiers for controlled values</h4><p>As in the example above of the author, we often need to insert standard snippets of text or data in metadata statements. The values are defined in controlled lists of terms or taxonomies. This means that we can effectively exchange content between systems that have access to the same lists or taxonomies, for example web delivery platforms with faceted search interfaces, analytics tools, or taxonomy management systems. To use a value in metadata, we may feel that the easiest way is to simply use the readable string, for example “Francis-Noël Thomas” as the author of a DITA topic, or “factory reset” as the topic’s subject value: the concept that the topic is about. However, relying solely on readable strings presents problems when exchanging content between systems or working with an external taxonomy management tool:</p><ul><li>If there are several strings for the same idea (concept) in different languages, which should be the authoritative one?</li><li>If the string is changed, for example due to capitalization rule changes, how do we update that across all the different pieces of content that refer to it?</li><li>If the string is taken from a hierarchical taxonomy or an even richer structure, how do we share changes to that structure without having to update all the uses of the string?</li></ul><p>Many systems such as older content management systems, discussion forum software, and some CRMs use literal strings for controlled values, and integration is always difficult as a result.</p><p>The smarter, future-proof approach is to use a unique identifier for each value from a controlled vocabulary. It is this identifier, not the associated string, that is embedded in any content that needs to use it. In this way, any updates to the string do not require changes to the content. It is far easier to integrate systems and keep them in sync. In fact, a single identifier can represent a “concept” that includes readable labels in various languages and even alternative labels — synonyms — for the same idea. Clearly, for usability and accuracy, system users have to be able to work with the readable labels instead of pasting in IDs from a list. Many systems allow exactly that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*9xLQS-4WW4jFTobv.png" /><figcaption>Tagging inline terms with taxonomy values in <a href="https://fontoxml.com/">FontoXML</a></figcaption></figure><p>In taxonomies based on RDF standards such as SKOS, the identifiers are all URIs; typically in URL format, such as: http://example.com/users/0800200c9a66</p><p>(Their primary purpose is still to identify concepts, although a best practice in Linked Data is to have the URL point to some useful resource about the concept.) However, there is no easy way to work with URIs in DITA Subject Scheme maps, nor is there a good way to embed URIs in attributes, at least in out-of-the-box, unspecialized DITA. <a href="https://lists.oasis-open.org/archives/dita/201711/msg00034.html">Discussions</a> in the DITA Technical Committee have raised some promising opportunities to deal with this challenges.</p><h3>Understanding DITA elements in relation to external ontologies</h3><p>So far, we have looked at the basic model for expressing data about a chunk of content — both the data itself, and the relationship that it has with the content (i.e. what property of the content is being expressed). However, there need to be some rules for what relationships can be expressed, and perhaps also what forms the data can take. A complete metadata schema expresses:</p><ul><li>The types of content that the data can be applied to</li><li>For each type of content, what relationships or attributes may be expressed (or, in some cases, <em>must</em> be present)</li><li>For each property, what values are allowed: what format do they need to be in, and are they keyed in by the author, generated automatically by the system, or sourced from a controlled list?</li></ul><p>In DITA, some of the more mechanical rules for structuring metadata are provided in the DITA standard itself, and typically enforced in the authoring tool via the DTD or other schema format. For example, the content model for metadata elements in a topic &lt;prolog&gt;, and the general rules for using XML attributes, are controlled in this way.</p><p>Other rules, particularly concerning the <em>meaning</em> of metadata, tend to be maintained in human-readable rather than machine-readable form. If an authoring team decides that the &lt;category&gt; element should be used to store subject matter / aboutness metadata, this guideline may be defined in a team wiki alongside other authoring conventions.</p><p>However, as organizations realize the potential of integrating structured content environments with external systems for content delivery, semantic search, customer relationship management, master data management and so on, it becomes more important that DITA elements (and hence their content) can be understand in relation to external ontologies that link these systems together.</p><p>For example, the author metadata above could be understood as the <a href="http://dublincore.org/documents/dcmi-terms/#terms-creator">Creator</a> element from the widely known, though perhaps dated, Dublin Core metadata schema. Equally, it could be the Schema.org <a href="http://schema.org/author">author</a> property of the resulting generated page.</p><p>Schema.org is a very popular vocabulary for marking up web content, primarily to help external search engines such as Google understand the content, rank it better to relevant queries, and in some cases display <a href="https://developers.google.com/search/docs/guides/search-features">enhanced result snippets</a>. It provides both the general, whole-document level descriptive and administrative metadata that you would expect to find in other schemas such as Dublin Core, but it also mirrors aspects of DITA in its ability to mark up granular fragments of content in a semantically meaningful way. For example, the schema:HowTo entity (perhaps the equivalent of a task topic) can have a schema:HowToStep (equivalent of &lt;step&gt;) that itself relates to a schema:HowToDirection (equivalent of &lt;cmd&gt;). Using our previous framework, a simplified view of this metadata could be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pqg5di8qZL-wJG1yHAL3LQ.png" /></figure><p>In fact, there are a number of statements involved to describe this piece of metadata. A more accurate way to visualize it is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/0*9PpqsUshvet-EYwB.png" /><figcaption>Visualization of part of the graph model for a schema:HowTo entity</figcaption></figure><p>This structure can be parsed and used by services such as Google and Bing to highlight relevant data in search results. There are also some non-search-engine applications of Schema.org being discussed and developed. An obvious use case for DITA in a web publishing environment (particularly a commercial one) is to map these semantic elements to their Schema.org markup equivalents.</p><p>However, there is currently no reliable, consistent way to map DITA elements to their equivalents in external vocabularies or ontologies. The DITA Open Toolkit does in fact generate some Dublin Core markup in HTML based on certain prolog metadata elements, but there is no easy way for external applications to work with that mapping directly in the DITA content. As Linked Data techniques become increasingly prevalent, both for standard ontologies and organization-specific ones, the current approach of ad-hoc mappings shows its limitations.</p><p>For sure, it is not the DITA standard’s responsibility to incorporate every new ontology or vocabulary that comes along. However, it could be very useful for information architects to have a mechanism in DITA to indicate their own mappings from DITA elements (core or specialized) to entities and properties in external vocabularies. Simply enabling RDFa support in DITA could be one way, although it could face significant adoption and usage challenges. Perhaps a better mapping method would be to extend Subject Scheme to define mappings between DITA elements and URIs for externally defined entities and properties. <a href="https://lists.oasis-open.org/archives/dita/201711/msg00034.html">Discussions</a> in the DITA Technical Committee on these and other approaches may reveal a sensible way forward to make DITA, in the Linked Data sense, more truly semantic.</p><h3>Useful resources</h3><ul><li>Good overview of metadata uses and some common standards (PDF):<br><a href="http://www.niso.org/publications/press/understanding_metadata">http://www.niso.org/publications/press/understanding_metadata</a></li><li>More on benefits of IDs/URIs instead of literal taxonomy term labels (PDF): <a href="http://eprints.rclis.org/16818/1/SP_clarke_zeng_isqv24no1.pdf">http://eprints.rclis.org/16818/1/SP_clarke_zeng_isqv24no1.pdf</a></li><li>Excellent presentation that describes the fundamental structures behind all metadata (PDF): <a href="https://web.archive.org/web/20130126101115/http://www.metalounge.org/_literature_52579/Stephen_Machin_%E2%80%93_ON_METADATA_AND_METACONTENT">https://web.archive.org/web/20130126101115/http://www.metalounge.org/_literature_52579/Stephen_Machin_–_ON_METADATA_AND_METACONTENT</a></li><li>Useful discussion of the similarities and differences between schemas (in terms of data modeling) and ontologies<br><a href="https://www.slideshare.net/UscholdM/ontologies-and-db-schema-whats-the-difference">https://www.slideshare.net/UscholdM/ontologies-and-db-schema-whats-the-difference</a></li></ul><h3>¹ Difficulties of defining metadata</h3><p>Many people have observed that metadata is hard to define. In databases or content repositories, in some way <em>all</em> data is related, so what is it about certain bits of data that makes them “meta”? Deane Barker <a href="https://gadgetopia.com/post/7047">points out</a> that in web content management it can no longer be defined as being “external”, because in XML, metadata is stored alongside content. Neither can it be separated according to purpose: for display, management, or otherwise.</p><p>Stephen Machins <a href="https://web.archive.org/web/20130126101115/http://www.metalounge.org/_literature_52579/Stephen_Machin_%E2%80%93_ON_METADATA_AND_METACONTENT">solved the problem</a> in a way by using an older, narrower definition of metadata: just the design of a database — the schema that sets rules for containers (entities) and properties or attributes. For the current sense of metadata, he used the term <em>metacontent</em>: content about content; the data that goes in the attributes. Yet, this doesn’t help us much from a pragmatic point of view, and it is the broader sense of metadata that is commonly used now.</p><p>Here, I’m using the term to mean “data about content”, including content that describes other content. It doesn’t mean that that “metacontent” will never be content in its own right. It’s just that in the current, functional context, that’s how it’s behaving. If it acts as metadata, I’m calling it metadata.</p><h3>² Storing metadata directly in XML content or attached to it</h3><p>The examples here are of metadata stored directly in the XML of a document: as element or attribute values. However, when structured content is managed in a database, it is often possible to attach metadata externally to the content, as database fields. For example, some component content management systems (CCMSs), popular in DITA and other structured documentation formats, allow taxonomy tags to be attached to discrete database objects such as maps/books and topics/sections. This can have benefits. The object may have already been through the workflow and been approved and released, in the context of one publication or deliverable. Subsequently, it may be used in a new context requiring additional metadata, such as applying to a new market or product. If the metadata is stored in the XML, that object may need to go back through the draft — review — approval workflow, just to add new metadata. On the other hand, if the metadata is stored externally, it can be updated without needing to modify the content itself.</p><p>The limitation of most CMSs/databases is that there is no easy way to apply metadata to smaller chunks within a topic or section. If this is needed, the best solution is still to embed the metadata in the markup, most feasibly as attributes in XML.</p><p><em>Originally published at </em><a href="https://joepairman.com/posts/metadata-through-dita-lens"><em>joepairman.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=365e3c68ebd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing XML in Git or Mercurial? Watch out for your merges]]></title>
            <link>https://medium.com/@joepairman/managing-xml-in-git-or-mercurial-watch-out-for-your-merges-ba925dec38dd?source=rss-34f9743f7287------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba925dec38dd</guid>
            <category><![CDATA[mercurial]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[xml]]></category>
            <category><![CDATA[structured-content]]></category>
            <dc:creator><![CDATA[Joe Pairman]]></dc:creator>
            <pubDate>Sat, 26 Nov 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-11-26T22:15:04.252Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s increasingly common to manage XML-based tech docs in distributed version control systems such as Git and Mercurial. For limited requirements, this is quite feasible. Every contributor gets their own full version of the repository, available locally, offline. Different contributors can work on the same set of files concurrently. Changes can be co-ordinated via a central server (of which GitHub and BitBucket are examples, though it’s easy to set up one’s own), or even on a peer-to-peer basis.</p><p>Of course this relies on decent branch and merge capabilities. This is particularly where distributed version control has made software development easier. When two sets of changes are merged, they’re automatically compared with their common ancestor to see what’s actually new (and presumably should be kept). With program code development, even concurrent changes to the same file are usually easy to merge. If one contributor edits one part of the file and another edits another part, comparison with the common ancestor shows that both these changes are new, and so the resulting automatically merged file incorporates them both.</p><p>However, this principle can fall down when working with XML documents and using the version control system’s built-in diff/merge features, or using standard line-based merge tools such as KDiff3 or the diff tool in Eclipse. In program code, each line is often a meaningful unit. In XML documents, the smallest meaningful unit is generally an element, which often spans multiple lines. Line-based merge tools can be fiddly to work with and you can easily end up with invalid files or missing content.</p><p>Some time ago, I <a href="http://blog.joepairman.com/posts/concurrent-xml-authoring-with-fairly-easy-merges">b</a><a href="http://blog.joepairman.com/posts/xml-in-git-mercurial-watch-out-for-merges#">logged</a> about these potential problems and an XML-aware 3-way merge tool that alleviates them. I mentioned this on a thread on the DITA-Users mailing list, and Ron Wheeler <a href="https://beta.groups.yahoo.com/neo/groups/dita-users/conversations/messages/37489">replied</a>:</p><blockquote><em>I would be interested in some example files where Project:Merge would do something that Eclipse would not handle as well.</em></blockquote><p>To answer this question I’ve been playing around with some examples. Here’s one where you would think that the diff algorithm should take the new content from each author, but it doesn’t.</p><p><strong>Base content:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files.&lt;/p&gt;<br>&lt;/conbody&gt;</pre><p><strong>Author A adds to the paragraph:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files. Most often, it<br>    is necessary when a file is modified by two people on two different computers at the same<br>    time. When two branches are merged, the result is a single collection of files that contains<br>    both sets of changes.&lt;/p&gt;<br>&lt;/conbody&gt;</pre><p><strong>However, Author B, working from the same base, adds a definition list:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files.&lt;/p&gt;<br>  &lt;dl&gt;<br>    &lt;dlentry&gt;<br>      &lt;dt&gt;Automatic merging&lt;/dt&gt;<br>      &lt;dd&gt;Automatic merging is what revision control software does when it reconciles changes that<br>        have happened simultaneously (in a logical sense). &lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>    &lt;dlentry&gt;<br>      &lt;dt&gt;Manual merging&lt;/dt&gt;<br>      &lt;dd&gt;Manual merging is what people have to resort to (possibly assisted by merging tools)<br>        when they have to reconcile files that differ.&lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>  &lt;/dl&gt;<br>&lt;/conbody&gt;</pre><p><strong>Using a standard 3-way merge algorithm, KDiff3 reports two automatically resolved conflicts and one that requires manual resolution:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/0*dTkcrJn1fO-BcATp.png" /></figure><p><strong>Here’s the result:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files. Most often, it<br>&lt;Merge Conflict&gt;<br>      &lt;dd&gt;Automatic merging is what revision control software does when it reconciles changes that<br>      have happened simultaneously (in a logical sense). &lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>    &lt;dlentry&gt;<br>      &lt;dt&gt;Manual merging&lt;/dt&gt;<br>      &lt;dd&gt;Manual merging is what people have to resort to (possibly assisted by merging tools)<br>        when they have to reconcile files that differ.&lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>  &lt;/dl&gt;<br>&lt;/conbody&gt;</pre><p><strong>Here’s how it looks in KDiff3:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*rmDAueMnzDK8jyQknSmUHg.png" /></figure><p><strong>If I use the tool to pick lines from A, I get this malformed fragment:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files. Most often, it<br>    is necessary when a file is modified by two people on two different computers at the same<br>    time. When two branches are merged, the result is a single collection of files that contains<br>    both sets of changes.&lt;/p&gt;<br>      &lt;dd&gt;Automatic merging is what revision control software does when it reconciles changes that<br>        have happened simultaneously (in a logical sense). &lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>    &lt;dlentry&gt;<br>      &lt;dt&gt;Manual merging&lt;/dt&gt;<br>      &lt;dd&gt;Manual merging is what people have to resort to (possibly assisted by merging tools)<br>        when they have to reconcile files that differ.&lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>  &lt;/dl&gt;<br>&lt;/conbody&gt;</pre><p><strong>If I use the tool to pick lines from <em>B</em>, I get this different malformed fragment:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files. Most often, it<br>  &lt;dl&gt;<br>    &lt;dlentry&gt;<br>      &lt;dt&gt;Automatic merging&lt;/dt&gt;<br>      &lt;dd&gt;Automatic merging is what revision control software does when it reconciles changes that<br>        have happened simultaneously (in a logical sense). &lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>    &lt;dlentry&gt;<br>      &lt;dt&gt;Manual merging&lt;/dt&gt;<br>      &lt;dd&gt;Manual merging is what people have to resort to (possibly assisted by merging tools)<br>        when they have to reconcile files that differ.&lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>  &lt;/dl&gt;<br>&lt;/conbody&gt;</pre><p><strong>Using Project: Merge, an XML-aware 3-way merge tool, if I launch it manually I get to pick whole elements from A or B, and if I launch it via Git/Mercurial client SourceTree, the correct new elements are selected by default:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/0*j8SEVoi2wqChvc9Z.png" /></figure><p><strong>This is the result of that correct merge:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files. Most often, it<br>    is necessary when a file is modified by two people on two different computers at the same<br>    time. When two branches are merged, the result is a single collection of files that contains<br>    both sets of changes.&lt;/p&gt;<br>  &lt;dl&gt;<br>    &lt;dlentry&gt;<br>      &lt;dt&gt;Automatic merging&lt;/dt&gt;<br>      &lt;dd&gt;Automatic merging is what revision control software does when it reconciles changes that<br>        have happened simultaneously (in a logical sense). &lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>    &lt;dlentry&gt;<br>      &lt;dt&gt;Manual merging&lt;/dt&gt;<br>      &lt;dd&gt;Manual merging is what people have to resort to (possibly assisted by merging tools)<br>        when they have to reconcile files that differ.&lt;/dd&gt;<br>    &lt;/dlentry&gt;<br>  &lt;/dl&gt;<br>&lt;/conbody&gt;</pre><p>If the closing &lt;/p&gt; tag is on its own line, the line-based diff tools are also able to merge the file automatically and correctly. However, I’m not sure whether it’s possible to configure XML editors to always put tags on their own lines (couldn’t find any option in Oxygen for that), and anyway the addition of attributes could still mess up the consistency of opening tags. Even with tags on separate lines, if the tags overlap then line-based diff tools can’t cope. Here’s an example of a true conflict; one that the 3-way merge algorithm shouldn’t automatically resolve.</p><p><strong>Base content:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;<br>    Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files. Most often, it<br>    is necessary when a file is modified by two people on two different computers at the same<br>    time. When two branches are merged, the result is a single collection of files that contains<br>    both sets of changes.<br>  &lt;/p&gt;<br>&lt;/conbody&gt;</pre><p><strong>Author A splits it into a shorter paragraph and a note:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;<br>    Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files.<br>  &lt;/p&gt; <br>  &lt;note&gt;<br>    Most often, it is necessary when a file is modified by two people on two different computers <br>    at the same time. When two branches are merged, the result is a single collection of files <br>    that contains both sets of changes.<br>  &lt;/note&gt;<br>&lt;/conbody&gt;</pre><p><strong>Author B also splits it, but at a different place:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;<br>    Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files. Most often, it<br>    is necessary when a file is modified by two people on two different computers at the same<br>    time.<br>  &lt;/p&gt; <br>  &lt;note&gt;<br>    When two branches are merged, the result is a single collection of files that contains<br>    both sets of changes.<br>  &lt;/note&gt;<br>&lt;/conbody&gt;</pre><p><strong>KDiff3 reports 4 automatically solved conflicts (it shouldn’t really be solving any in this case), and 2 remaining ones:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;<br>    Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files.<br>&lt;Merge Conflict&gt;<br>  &lt;/p&gt; <br>  &lt;note&gt;<br>&lt;Merge Conflict&gt;<br>  &lt;/note&gt;<br>&lt;/conbody&gt;</pre><p><strong>In KDiff3, if I accept A’s changes, I get exactly what I had. However, if I accept B’s changes, it becomes malformed, gaining an duplicate &lt;/note&gt; tag and also losing some of the content:</strong></p><pre>&lt;conbody&gt;<br>  &lt;p&gt;<br>    Merging (also called integration) in revision control, is a fundamental operation that<br>    reconciles multiple changes made to a revision-controlled collection of files.<br>    time.<br>  &lt;/p&gt; <br>  &lt;note&gt;<br>    When two branches are merged, the result is a single collection of files that contains<br>    both sets of changes.<br>  &lt;/note&gt;<br>  &lt;/note&gt;<br>&lt;/conbody&gt;</pre><p><strong>In Project: Merge, for each element (&lt;p&gt; and &lt;note&gt;), there’s a preview and a button to pick the version I want to keep.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*Lx3ZNGZMgr4_Ugwlh9HJYg.png" /></figure><p>The reason I’ve focused on Project: Merge is that it’s cheap and it integrates very easily with distributed version control systems and clients. Oxygen’s diff and merge is very nice for 2-way merges but I don’t think it has a 3-way merge algorithm, so you’d be picking manually from the two new versions without using info about their common ancestor.</p><p><a href="http://www.deltaxml.com/">DeltaXML</a> provide a powerful set of tools to enable N-way merging (i.e. more than just two simultaneous changes to a base ancestor), keeping clear info on who changed what and integrating with editors and CMSs to provide friendly functionality based on that. I haven’t yet looked in any detail at how it might integrate with distributed version control systems.</p><p>I don’t think there’s much else out there — there are a couple of defunct XML merge projects that seem to have ceased active development in the mid 2000-s, but that’s it.</p><p><em>Originally published at </em><a href="http://blog.joepairman.com/posts/xml-in-git-mercurial-watch-out-for-merges"><em>blog.joepairman.com</em></a><em> on November 26, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba925dec38dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What WYSIWYG Got Right About Writing]]></title>
            <link>https://medium.com/@joepairman/what-wysiwyg-got-right-about-writing-665a71ed2591?source=rss-34f9743f7287------2</link>
            <guid isPermaLink="false">https://medium.com/p/665a71ed2591</guid>
            <category><![CDATA[structured-content]]></category>
            <category><![CDATA[wysiwyg]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[author-assurance]]></category>
            <dc:creator><![CDATA[Joe Pairman]]></dc:creator>
            <pubDate>Tue, 11 Oct 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-10-11T20:33:57.218Z</atom:updated>
            <content:encoded><![CDATA[<h4>WYSIWYG wasn’t just a comfort blanket. It helped writers do their jobs. We can’t go back, but must fill the gaps.</h4><p>In my <a href="http://blog.joepairman.com/posts/author-assurance-did-i-do-this-right">last post</a>, I argued that web and structured writing tools need <em>author assurance</em>: the confirmation that authors have done their job or that there is a clear path to fixing errors. In this post, I discuss the sense of assurance that WYSIWYG-style desktop publishing tools provided, and identify three components of that experience that we must transfer to structured authoring environments.</p><p>Many of us started our serious writing somewhere like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*XEexY7xcIIxOMJVFa-I7MA.jpeg" /><figcaption>Word 2000 image from <a href="http://www.pcworld.com/article/152585/microsoft_word_program.html#slide11">http://www.pcworld.com/article/152585/microsoft_word_program.html#slide11</a></figcaption></figure><p>What we saw on screen was pretty much what we would see on paper. Buttons looked like what they did: a heavy “B” for bold; a kind of I Ching hexagram for centered. If a paragraph style was obviously unsuitable, you picked the right one. If images didn’t line up with the right text, you moved them. If page breaks fell in confusing locations, you adjusted them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*HCseAHIzg4BIfONgeo7U3w.png" /><figcaption>The 12 kinds of spaces featured in Adobe InDesign</figcaption></figure><p>Sometimes, this fine-grained control lead us to spend excessive time on design decisions. We might find ourselves dwelling on page breaks or wrestling with list numbering. We might advance to full desktop publishing tools such as InDesign, with a whole different set of controls and 12 kinds of space to choose from.</p><p>But we generally learned to use our tools in a way that suited our needs. While nobody ever said they loved Word, they grew comfortable with it.</p><p>The web brought trouble. While design tools such as Dreamweaver and in-CMS editors such as CKEditor tried to recreate the familiar WYSIWYG experience, the resulting mess of code was inflexible and hard for designers to work with. The gaps in the DTP metaphor started showing up to authors as well. James Morrish <a href="http://jamesmorrish.co.uk/blog/markdown-vs-wysiwyg-in-symphony/">wrote</a> about the WYSIWYG editor in Wordpress:</p><blockquote><em>Uploading and floating images, changing font sizes — doing pretty much anything unleashes a torrent of divs and in-line styles. Deleting a header and replacing it with plain text resulted in the paragraph being the same font size as the header — it’s clear the editor can become easily confused.</em></blockquote><p>For a while, format-based elements such as &lt;b&gt; and, later, inline CSS wrestled readers’ browsers into submission. Where that wasn’t enough, Flash took over the browser to control not only what appeared, but when it appeared.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*ieSkprhdBbs0qtP-bZDFEQ.jpeg" /><figcaption>From Seagullsfly, via zanetinewebdesign.com/seagullsfly/</figcaption></figure><p>But with the big push for web standards, the separation of HTML from CSS, and the birth of responsive and adaptive design to cater for various viewing contexts, it was clear that authors would need to be weaned off WYSIWYG to more controlled forms of content creation. The same applied in the parallel world of product documentation, where the need to produce some form of HTML-based content (or at least produce PDFs more efficiently), led information development teams to adopt XML.</p><p>Us structured content implementers assured writers that a more controlled environment would make life easier. They could focus on the words they wrote, and the system would present those words attractively. Moreover, with a slight effort to add metadata, their creations would be delivered to all devices and all platforms, cut up and reassembled into suitably flavored pieces for each individual reader. A few of us promised <a href="https://www.linkedin.com/pulse/five-things-structured-content-can-do-you-one-cant-joe-pairman">even more</a>.</p><p>However, while structured content did indeed bring great benefits, it also brought pain. There was the initial effort to get used to a <a href="http://blog.joepairman.com/2014/metamorphose-to-dita.html">whole new way of working</a> — an effort that organizations sometimes underestimated. But then, even after a system was mature, it didn’t always live up to expectations.</p><p>Form-based web interfaces didn’t offer sufficient control and feedback on what textual content was associated with what visual or multimedia content. As Jeff Eaton wrote in <a href="http://alistapart.com/article/battle-for-the-body-field">The Battle for the Body Field</a>, writers:</p><blockquote><em>…needed to mix in multiple videos, a gallery and a poll, or several related article teasers, at specific points in each article. Carving out these elements into separate CMS fields or standalone pieces of content would make storing and remixing them easier. However, relying on rule-based CMS templates to display them would also break their connection to the specific sentences, paragraphs, and sections they were meant to enhance.</em></blockquote><p>Where authors did have more control, often this meant inserting short tags, attributes, or other metadata values in an all-too-manual way. Relying on memory for these increased the burden on authors and risked expensive errors, particularly where the content had legal or safety implications. The effect of a metadata choice might not be visible until content was made public, and even then was only visible in certain situations.</p><p>In structured content environments where XML would be transformed to PDF, again authors often had to remember special codes. Checking their work involved publishing, looking through, then figuring out what went wrong. And when things went <em>badly</em> wrong, error messages were often cryptic. Where a “simple”, Word-style authoring environment had been introduced, serious errors might be hidden altogether, or the environment would just freeze or crash.</p><p>Quietly, some writers wondered whether things had been better in the days of desktop publishing. More vocally, some teams who hadn’t yet moved to structured content wondered whether it was even worth it. It was easy for implementors to dismiss these concerns as fear of change or reluctance to give up creative control over formatting. But most professional writers have always been willing to adopt new ways of working when they learn about the benefits. They have more patience with tools than they are often given credit for (after all, they learned to use Word!) And the increasing popularity of Markdown, a syntax that offers virtually no creative formatting control, shows that “<a href="http://www.techwr-l.com/archives/0305/techwhirl-0305-00675.html#.VXRwqFxViko">font fondlers</a>” (if they ever really existed) are dying out. What WYSIWYG really meant to writers was knowing when they’d <a href="http://blog.joepairman.com/posts/author-assurance-did-i-do-this-right">got it right</a>. When we abandoned desktop publishing tools, they lost that sense of assurance. Their discomfort was less personal and more professional: all too often, the new systems proved to be error-prone, distracting, and time-consuming.</p><p>What can we do about this? We can’t go back to pure WYSIWYG, for sure. Today’s structured content authors <em>are</em> responsible for more than just the words on a page, and have to be aware at least of the possible contexts in which their work might appear. They should be able to associate articles and even <a href="http://blog.joepairman.com/2013/04/is-structured-content-missing-a-trick.html">inline terms</a> with the real-world entities they describe. But there are some important components of author assurance that we can apply from WYSIWYG to our authoring environments: boundedness, immediacy, and narrative control.</p><h3>Boundedness: you knew where your responsibilities ended</h3><p>In Word, you wrote on a virtual sheet of paper. Unless you were in the unfortunate position of using Word to author Web content, your task was bounded by the limits of print. Hyperlinks and TOCs or indexes were a minor and usually unproblematic exception. While of course it was very possible to get yourself messed up with auto-numbering and lists, it was rare to see an error message, and what you saw on screen was pretty much what would be printed out.</p><p>In web and structured authoring, writers are responsible for a lot more than a single possible rendering. Their creations may appear at many sizes, in many different layouts, in part or whole. As we’ve seen above, they are often required to remember obscure codes and enter them accurately, even to enable a print emulation of what was previously authored in WYSIWYG.</p><p>The needs of author assurance demand that tools provide some sense of boundedness; of when the author’s task finishes and the system can be trusted to do the rest.</p><h3>Immediacy: your errors showed up straight away</h3><p>As I noted above, while you could certainly get yourself into trouble with tools such as Word, the problems usually showed up straight away. In Adobe InDesign, not only did you see exactly what was on the page, you also had a visual indication of what was <em>not</em> there, when there was too much text for the current frame.</p><p>In structured authoring, not only are writers responsible for more than a single presentation; they are not always informed promptly (or at all) when they get things wrong. It may not be until days or weeks after their content goes live that a serious error is noticed. When attempts to catch errors are made, too often they are in the form of custom scripts or plugins — of clunky bolt-ons to a poorly designed system.</p><p>Author assurance demands that tools demonstrate errors as soon as possible, and in as direct a fashion as possible. In the same way that a mouse or touchscreen provides direct manipulation of virtual objects, so errors should manifest in a tangible, controllable way.</p><h3>Narrative control: you felt better able to shape the story</h3><p>To convey anything other than atomic facts, writing must take a narrative structure. This is true no matter the format or subject matter. Reports flow from introduction through methodology and details to a conclusion. Effective emails move quickly from a reason for writing to a required action. Even short knowledge base articles say who they’re for and what problem they solve before getting to instructions and examples. If writers fail to fulfill these narrative expectations, readers will be forced to work harder to understand the meaning, and may give up. There are valid reasons for making readers work a little, but lack of discipline is not one of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*nJ7ZZafiVb5F0_uJ.jpg" /><figcaption>John Bauer [Public domain], via Wikimedia Commons</figcaption></figure><p>Online texts form part of a longer narrative that readers participate in directing — the journey through various sections on a website or screens in an app. If this too finishes without satisfaction, the story will resemble a poorly written Choose Your Own Adventure book — one with a variety of fatal endings and few successes.</p><p>The <a href="http://www.academia.edu/22029046/Mangen_A._2016_What_hands_may_tell_us_about_reading_and_writing">best way</a> to really grasp the narrative we are writing or reading may be through physical media — the painstaking covering of sheets with ink; the leisurely leafing through several hundred pages, where progress is marked not by a line of pixels, but by the proportion of pages in each hand.</p><p>The second-best way for writers to grasp the story they are shaping may be through paper analogues such as DTP tools. As they scroll through a Word document, the effort of swiping upward or rolling the mouse wheel reminds them that we are progressing through words that readers themselves will need to work through.</p><p>Of course, even in print, readers haven’t always followed dutifully along the paths that authors laid out. In a hypertext environment, and especially if content is laid bare to external search, the expectation has to be that they won’t. So, rather than relying on the false assurance of a book-centered tool, we have to consider how authoring tools should help writers construct the narrative forms that are relevant now.</p><p>A very successful format on the web is what we could broadly call an article — for example a blog post, wiki page, or technology tutorial/recipe. This format can provide ample context and rich examples while still being suited to consumption in one session. Yet, many structured authoring tools either require writers to create smaller chunks instead of writing the article together, or simply dump them in a sea of text that they cannot even intersperse with images or charts. To write a story, we must see the story — see it together without the need to check in / check out a dozen tiny chunks, and without needing to follow the text with a finger to make sense of where we are.</p><p>The narrative that readers experience often involves them following hyperlinks, yet some automated publishing environments give few clues to writers as to what kind of links will accompany their work or lead to it. The quality of the links may disappoint, especially for writers who have been assured that the system would do a better job of linking than they themselves could do manually. Even when links are effective, the algorithms used to generate them may be complex or opaque. If writers are to be more than form-fillers, they need to understand the kind of contexts in which their text will appear, and why, in order to shape that text more effectively to its purpose and its audience. They can’t always control those contexts, but they need to understand them, and writing environments must play a better role in that.</p><p>No wonder many writers miss WYSIWYG. It’s not that they want to return to print publishing, or that they expect pixel-level control over web formatting. Rather, many structured or web authoring environments are failing to provide them with the necessary assurance that they are doing their jobs ok, or the support to fix things when they go wrong.</p><p>In my next post, I’ll look at ways that some tools are providing this kind of assurance, and explore ways to improve authoring environments further.</p><p><em>Originally published at </em><a href="http://blog.joepairman.com/posts/what-wysiwyg-got-right"><em>blog.joepairman.com</em></a><em> on October 11, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=665a71ed2591" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Author Assurance: did I do this right?]]></title>
            <link>https://medium.com/@joepairman/author-assurance-did-i-do-this-right-3d8c0361922a?source=rss-34f9743f7287------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d8c0361922a</guid>
            <category><![CDATA[usability]]></category>
            <category><![CDATA[author-assurance]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[author-experience]]></category>
            <category><![CDATA[structured-content]]></category>
            <dc:creator><![CDATA[Joe Pairman]]></dc:creator>
            <pubDate>Wed, 28 Sep 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-09-29T08:11:28.193Z</atom:updated>
            <content:encoded><![CDATA[<p>I don’t know any content team manager who wants his or her writers to work with frustrating, complicated tools. But improving the experience of using writing tools usually takes second place when it comes to setting departmental budgets. It loses out to investments with a clearer ROI. That’s why, although I enjoyed many things about Rick Yagodich’s book “<a href="http://theaxbook.com/">Author Experience</a>”, I think the concept is hard to sell under that title. Every manager would like authors to have a pleasurable experience, but few can justify paying for it.</p><p>In fact, structured authors (and information workers in general) don’t seem to expect a Google-like level of simplicity in their work tools. <a href="http://www.cio.com/article/3103893/it-industry/think-older-workers-struggle-with-technology-think-again.html">Comments on a recent survey</a> suggest that older workers in particular are tolerant of software that may not be as easily usable as mass-market, consumer apps. Structured authoring has inherent complexity and, as Don Norman explains, a tool must <a href="http://www.jnd.org/dn.mss/complexity_is_good_.html">reflect the complexity of the task</a>, or risk frustrating skilled users. Such seemingly complex interactions as Adobe FrameMaker’s document tree manipulation in fact speed up the structured authoring process and make it more accurate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*w86qk_bWU3G7R-nUST0eIQ.gif" /><figcaption>Screenshot of the Structure View in an earlier version of Adobe FrameMaker — a feature I used a lot</figcaption></figure><p>Every professional writer that I know wants to do a good job, and using specialized tools is often a part of that job. There’s a problem, however, if the tools don’t let them know that they’ve done their job correctly. The job is, of course, to convey the intended meaning to the user, within the specified structure, conforming to the relevant technical requirements. In web authoring, and particularly structured authoring, it’s not always obvious to writers that they’ve fulfilled these requirements or, if there are errors, what those errors are and how to fix them. Too frequently, writers have to interrupt their work to ask a senior or technical resource, “Will this work?” or “Did I do this right?”</p><p>Meaning is conveyed not only through words, but also visual formatting. Automated and online publishing should take care of the formatting for authors, but often the tools abnegate their duty and expect authors to enter obscure codes or hierarchies of tags in order to achieve the required visual effect.</p><p>Online content is written in the understanding that users will have some sense of narrative flow when they read it. For sure, we can rarely assume that users will be with us for the duration of a book — more likely a page, or a section on a page, is what they’ll consume at any one time. But even when reading that section, there must be some flow, and also some sense of what might come next. While structured content enables clever re-stitching of content chunks into appropriately personalized narratives, the authoring tools mostly do a poor job of informing writers what the possible relationships between the chunks they’re writing might be, and what the implications are for users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*dWtA3CNo9W1AVn2vyjfE4A.png" /><figcaption>An unhelpful error message, sourced from <a href="https://www.kayako.com/blog/error-messages-great-way-annoy-the-hell-of-your-customers/">this blog post</a></figcaption></figure><p>Unhelpful error messages have received a good deal of <a href="https://www.kayako.com/blog/error-messages-great-way-annoy-the-hell-of-your-customers/">attention</a> and <a href="http://www.jnd.org/dn.mss/error_messages_are_e.html">scorn</a> in recent years. In authoring, however, the more insidious errors in following templates or using appropriate codes aren’t always immediately obvious. Sometimes it’s only when content has been live for some time that a serious mistake is noticed.</p><p>This author frustration has a serious impact on productivity, content accuracy, and ultimately user experience. It costs our organizations, and so investment to address it is worthwhile. As tools designers, implementers, or authoring team managers, we have to do a better job of assuring authors when they’re doing their jobs OK, and provide clear information on how to fix things if not. As Don Norman <a href="http://www.jnd.org/dn.mss/hcd_harmful_a_clari.html">writes in general about software design</a>:</p><blockquote><em>To me, error analysis is the sweet spot for improvement. Usually, designers do think of the order in which activities will be done. But they seldom think properly about what should be done when the person encounters problems, or when the situation is novel…</em></blockquote><p>We can do better. In the next couple of posts, I’ll explore how.</p><p><em>Originally published at </em><a href="http://blog.joepairman.com/posts/author-assurance-did-i-do-this-right"><em>blog.joepairman.com</em></a><em> on September 28, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d8c0361922a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting with real-world entities: Is structured content missing a trick?]]></title>
            <link>https://medium.com/@joepairman/connecting-with-real-world-entities-3af86b04a0b4?source=rss-34f9743f7287------2</link>
            <guid isPermaLink="false">https://medium.com/p/3af86b04a0b4</guid>
            <category><![CDATA[semanticweb]]></category>
            <category><![CDATA[structured-content]]></category>
            <category><![CDATA[linked-data]]></category>
            <category><![CDATA[information-architecture]]></category>
            <dc:creator><![CDATA[Joe Pairman]]></dc:creator>
            <pubDate>Thu, 04 Jun 2015 11:38:06 GMT</pubDate>
            <atom:updated>2016-09-29T08:26:20.347Z</atom:updated>
            <content:encoded><![CDATA[<h3>Connecting with real-world entities:<br>is structured content missing a trick?</h3><p><em>(I posted this two years ago on </em><a href="https://plus.google.com/+joepairman/posts/VdM8bRFHqGQ"><em>Google+</em></a><em>. Since then, Schema.org has increased interest in semantic Web technologies in general, but still not much is happening around inline references to real-world entities.)</em></p><ol><li>One of the most promising and least used aspects of <a href="https://www.linkedin.com/pulse/five-things-structured-content-can-do-you-one-cant-joe-pairman">structured content</a> is the ability to associate inline elements unambiguously with the real-world people, companies, and things they describe (think Facebook mentions but much more powerful and outside that walled garden).</li><li>When using inline mentions in this way, it’s better if the markup format is not tied to specific applications or actions that should be taken by the system.</li><li>The best place to unambiguously reference an entity is in the source content.</li></ol><h3>Associate inline elements unambiguously with real-world entities</h3><p>Here are some of the many possible uses for this kind of semantic tagging:</p><ul><li>For names which are trademarked in some countries but not others, you can get the appropriate trademark symbol (or none) showing up for each language or country output, on the first mention, on all mentions or according to any other requirement.</li><li>For documentation containing strings such as UI text or programming language keywords, you can keep them in sync with the canonical source.</li><li>You can ensure coverage of all relevant product features, or compare feature mentions with customer searches related to those features.</li><li>You can enable more effective search for relevant content (including allowances for synonyms and misspellings). This works for content creators and consumers alike.</li><li>For terms where links to definitions or other relevant content would be useful, you can enable such links. For one vision of this, see <a href="http://everypageispageone.com/">Mark Baker</a>‘s article <a href="http://thecontentwrangler.com/2012/05/03/re-thinking-in-line-linking-dita-devotees-take-note/">Re-Thinking In-Line Linking</a>, including the discussion in the comments (though note that my point 3 diverges from this on the best place to disambiguate entity mentions).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yIbMBEStqKQarFDE7hYYZA.png" /><figcaption>A customized Web application based on <a href="https://ditaweb.com/">Mekon DITAweb</a></figcaption></figure><ul><li>You could perhaps base conditional filtering on the features mentioned in a block element. If a feature isn’t in the current product configuration, the whole block could be filtered out.</li><li>You could expose this kind of metadata in web content, allowing external applications to use it (and preparing for the increasing capabilities of search engines).</li></ul><p>It surprises me a little that inline markup for these purposes isn’t more common. Inline markup is very common for formatting purposes — bold and italics being the classic examples! This is obviously rather limited. Inline markup’s also commonly used to indicate types of information or types of entity (much of the “out of the box” DITA vocabulary is like this). But not every structured content implementation attempts to refer to specific real-world entities at the inline term or “mention” level.</p><h3>Don’t tie markup to specific applications or actions that should be taken by the system</h3><p>There are of course plenty of examples where inline markup <em>is</em> associated with real-world entities, especially in medium or large organizations. Conditions represent features; custom implementations link keywords to their canonical sources; and tricks with attribute values get trademarks displayed correctly. But the markup is often different depending on the specific application for which it’s used, limiting later extension. For example, there may be a conditional attribute to mark information about a feature that is present in some product configurations and absent in others. Yet if the feature name is trademarked, there may be a <em>different</em> attribute to ensure that only the first mention of the name gets the TM symbol. And if the feature name is used as a UI string, this may be different again. Once the content is being localized, still different markup may be used for terminology management. This seems to be an unfortunate intermingling of concerns. In an ideal world, it seems that the source content should describe what it’s about, without locking this description to a particular action to be taken by the system. That leaves the system free to take any action (or multiple actions) based on the rules for the particular context.</p><h3>Resolve ambiguity in the source content</h3><p>This third point is about where to disambiguate terms / mentions. There’s a valid argument that specific attribute values are not needed to indicate real-world entities; the content of an element is enough. For example,</p><pre>&lt;organizationname&gt;Acme Corporation&lt;/organizationname&gt; </pre><p>refers to the organization named “Acme Corporation”, and can be processed by a system accordingly. If an term is mis-spelled or an alternate term is used, the system can prompt authors to use the approved version — or in the case of a synonym, perhaps the system can silently do the appropriate matching, leaving the synonym visible in the output. During localization, terminology management systems can match the strings from the source with their approved, localized counterparts (or skip translation where the term is global). This certainly works for many organizations and I wouldn’t say it’s wrong. But here’s why I think it’s preferable to keep the full, unambiguous meaning of the content in its source:</p><ul><li>It avoids messy ambiguity, for example where two companies have the same name (there have been a number of Acme Corporations), or where a name is very close and an author accidentally gets the wrong one. It also avoids the need to create specific elements solely for disambiguation, for example if there was an “Exit” UI string on a software tool’s File menu, and another “Exit” string on a particular dialog, and in the canonical string resource these were maintained separately and liable to be updated independently.</li><li>It means the content is not quite so dependent on a specific system or implementation. It’s easier to make use of the content in other contexts: whether in different tools by the same team/s, other group’s tools, or in external teams entirely. This isn’t the same as saying that we should create content in an interchange format — I think most people have experience that as soon as they start doing anything interesting with their content, they pretty much lose the ability to import that content easily and blindly into a different system without missing something. What I mean, though, is that attaching the full semantics to the source creates the possibility to interpret the source in another system without having to recreate large parts of the original system.</li><li>It gives authors confidence. Authors like unambiguity. I believe some of the affection for WYSIWYG is because of the desire to “get things right”. The appearance of the content in a WYSYWIG tool gives a sense of confidence (albeit one that isn’t always justified). A better way to get it right is to be confident that your source can be used appropriately. It seems that a true <em>WYSIWYM</em> (what you see is what you mean) tool would give authors confidence that the semantics of their work were correct and would be preserved.</li></ul><p>The questions then arise as to what format this markup should take, and how authors should work with it. For the format question, consistency and extensibility seem very important. <a href="http://rdfa.info/">RDFa</a> comes to mind. It’s machine-readable, extensible, and has the advantage of already working with the major search engines, possibly simplifying the system somewhat. But raw RDFa is not something that most authors really want to get into inserting manually, or that would be productive if they did. Here is where authoring tools can really come into their own. Where there’s a canonical list of external entities or another searchable resource, designs such as the following can be used: After working on a piece of content, you could press a button and get suggested matches for the terms you’d mentioned. During writing, a keyboard shortcut could bring up a dynamic list of items, filtered as you typed.</p><p>It’s worth mentioning that sharing a canonical list of entities doesn’t have to imply anything about power and authority in a team. With the right design, new entities could be added by anyone. And the technical architecture need not even be centralized — it could work with a distributed repository as with Git or Mercurial.</p><p>At the beginning of the post, I wondered whether I was indulging in architecture astronautics. Based on what I’ve written so far, there is certainly plenty of room to get carried away. But experience tells us that we shouldn’t get so hung up on a particular concept or way of doing things that we lose sight of the practical costs and benefits. I really like <a href="http://www.gollner.ca/">Joe Gollner</a>‘s <a href="http://www.slideshare.net/jgollner/xml-without-tears-j-gollner-at-intelligent-content-2012">slides</a> on these kinds of concerns. As Joe puts it, we should use just enough semantic technology, and no more.</p><p>Of course, just enough for now may not always be enough for the future. And one of the great things about RDF’s use of a graph model (including RDFa of course), is that it is really extensible. Extending a semantic structure or modifying existing semantics is a lot easier than if everything is buried in a relational or hierarchical form. (So it’s ironic that the term RDF has <a href="http://answers.semanticweb.com/questions/2918/why-is-rdf-so-old-complicated-unpopular-and-still-not-discarded#2955">misconceived</a> connotations of idealistic, over-ambitious implementations that try to do everything and rarely realize practical value.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*idzrpm7QGVSbB04J.png" /><figcaption><em>Open Graph representation by Dan Brickley </em><a href="http://www.flickr.com/photos/danbri/4554793962/"><em>on Flickr</em></a></figcaption></figure><p>So, as I see it, inline semantics connected to specific real-world entities have huge and somewhat untapped potential; they should be separated from specific applications where possible; and they are probably best kept in the source. I have no dire predictions for people who don’t do these things, but I think structured content could perhaps be enhanced with them!</p><p>Have you used inline markup in this way? Is it something you’re thinking of? Or wouldn’t it be worth it for your situation? It would be great to hear opinions and experiences related to these ideas.</p><h4>Selected comments, copied from the <a href="https://plus.google.com/114800010143832815203/posts/VdM8bRFHqGQ">original post</a></h4><p><a href="http://everypageispageone.com/">Mark Baker</a> commented:</p><blockquote>Yes, structured content is missing this trick. Glad I’m not the only one saying so. One more use for this kind of markup: it can be used to fully automate linking across your entire content set, eliminate broken links, eliminate all issues with links in reused content, and allow old content to discover links to new content.</blockquote><blockquote>The question of whether you should just mark up the running text or use an attribute to specify the object named more specifically is one that has to be settled on a case by case basis. My preference is to use straight markup of the running text whenever possible, to make the markup as inexpensive as possible for writers.</blockquote><blockquote>I would restate Joe Gollner’s principle very slightly: we should use all the semantic technology we can afford, and no more. In other words, we should use semantic technology only insofar as it pays us back. The best way to improve the payoff from semantic technology is to reduce the cost of acquiring semantics. Since semantics come from authors, we want to make it as easy as possible for them to supply them. Using natural language processing and other content intelligence techniques on the back end can reduce the cost of acquiring semantics on the front end.</blockquote><blockquote>The way you do that is to start your system design with the authoring interface. Most systems today start with the content management problem or the publishing problem, create markup that expresses content management or publishing concerns, and then try to figure out how to get authors to write in those formats. This is the wrong approach is you want to get inexpensive reliable semantics. Instead, you need to start by designing an authoring interface that can get the most semantic information from the broadest population of authors at the least cost. Then you figure out how to use that markup to drive content management and publishing processes. If you get good semantics up front, though, you will never have a problem driving content management and publishing on the back end.</blockquote><p>To which I replied:</p><blockquote>Mark, thanks for the comments. Good to hear this pretty much tallies with your experience. Indeed, I had all those benefits of soft linking in mind in my bullet on linking, and the reference to your article was supposed to be a kind of shorthand for those, though I realize that other pieces you’ve written go into more detail. (Also, your writing on other areas such as separating content from behavior has really helped me clarify my thoughts.)</blockquote><blockquote>We definitely agree that a system should do the heavy lifting for authors, not the other way round. And the specifics of how to capture the semantics should indeed be decided case by case. But I wanted to expand a little on why I think it can be less expensive overall and even more pleasant for authors if real-world entities are unambiguously denoted in the source.</blockquote><blockquote>First, an example. When I mentioned your name at the beginning of this comment, I typed a plus, then “M”, then clicked on your name and photo from the popup list (your name was at the top because you’re in my circles and because you were a previous commenter on this post). Your name was then highlighted in my comment in a little blue capsule, so even if I came back to the comment later I would know this mention was entered in such a way that it would link to your profile, and it might also notify you of the comment. If, when I came back to my draft comment, I wasn’t sure that I’d picked the right Mark Baker, I could simply mouse over the blue capsule to see your brief profile pop up. If, on the other hand, I hadn’t had the benefit of the UI, and had to enter something like &lt;person&gt;Mark Baker&lt;/person&gt;, Google would have to figure which of all these people I meant: <a href="https://plus.google.com/s/mark%20baker/people">https://plus.google.com/s/mark%20baker/people</a> And if I’d accidentally typed “Laker” instead of “Baker”, there would be plenty of other wrong alternatives: <a href="https://plus.google.com/s/mark%20laker/people">https://plus.google.com/s/mark%20laker/people</a> In fact, to have any chance of getting a meaningful mention, the decision would still have to come back to me at some point.</blockquote><blockquote>While of course a single mention of a person’s name is not a typical example for structured content, the examples I gave in the post are fairly typical: still similar or identical names for different instances of the same type of thing. The Google+ mention UI shows that entering an unambiguous term can be easy, and the way it’s presented afterwards gives confidence that it will work. In my experience, this kind of confidence is incredibly important to writers. When confidence is shaken — for example when the system can’t disambiguate or can’t identify an entity (perhaps if a writer entered a variant term or misspelling that wasn’t yet recognized or stored by the system), it has an impact on writers’ flow. As well as worrying about writing well, they start to wonder whether their intentions or meanings will be correctly discerned by the system. That’s the main reason I’d prefer to get the unambiguous entity mention (in the form of an attribute) at source. There are a few other reasons:</blockquote><blockquote>It seems to place more power in authors’ hands. There’s less magic going on behind the scenes. We agree that for many structured content implementations, it doesn’t make much sense for writers to have control over how something’s presented. But to me, unambiguously expressing meaning seems to be something that more appropriately belongs to authors. If authors need to choose an element when entering a mention (as opposed to the system trying to automatically pick entities out of unmarked text — a big challenge), it’s hardly more effort to pick the correct instance of the item.Using RDFa in the source arguably makes the system simpler (no need for complex NLP at least; no need to re-match entities multiple times as a piece is revised; and if you want to output your semantics to the web, they may already be in a suitable format). Simpler means fewer bugs, and everyone’s life is easier, including authors.</blockquote><blockquote>This kind of solution does imply some serious tool customization (at least for now, before such solutions are common). That’s why I’m interested in experimental tools such as the one I linked to. It’s a bit rough around the edges, but at least has the two key features of being able to pick an entity from a context-generated list, and subsequently displaying the marked-up term in such a way that the existence of a linked entity and the specific details of the entity are clearly visible. There are definitely cases for which this would be overkill!</blockquote><p>And Mark responded:</p><blockquote>Hi Joe. I don’t disagree with you at all on this. Essentially this is still the resolution of ambiguity on the back end using NLP techniques, it’s just doing it in real time. The advantages of doing it in real time are that it allows the author to confirm the identification of the subject, and it allows the system to suggest subjects to the author, which can lead to more comprehensive semantic capture (unless it lets the author get lazy and not identify semantics the system does not catch). The downside is the cost of creating such interfaces, as you note, and that has to weigh into the total cost of semantics calculation. One in place, such a system will lower the cost of each piece of semantics captured. It is the fixed cost to establish it that is the issue.</blockquote><blockquote>But in general, I believe very strongly in the judicious combination of intelligent content and content intelligence techniques. Indeed, I would suggest as a general principle that the role of structured markup is to contextualize content sufficiently for content intelligence techniques to be used effectively. Don’t ask an author to disambiguate what a machine can effectively disambiguate for itself. All part and parcel of lowering the barriers to effective semantic capture.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3af86b04a0b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualizing Complex Content Models with Spatial Schemas]]></title>
            <link>https://medium.com/@joepairman/visualizing-complex-content-models-with-spatial-schemas-d8ac3f81564a?source=rss-34f9743f7287------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8ac3f81564a</guid>
            <category><![CDATA[xml]]></category>
            <category><![CDATA[information-architecture]]></category>
            <category><![CDATA[intelligent-content]]></category>
            <category><![CDATA[structured-content]]></category>
            <category><![CDATA[content-modelling]]></category>
            <dc:creator><![CDATA[Joe Pairman]]></dc:creator>
            <pubDate>Sun, 15 Mar 2015 00:00:00 GMT</pubDate>
            <atom:updated>2016-09-29T08:25:14.728Z</atom:updated>
            <content:encoded><![CDATA[<p>Structured content can have various levels of complexity, from simple sequences of form fields — titles and descriptions, metadata values from lists, and body fields — to more elaborate sequences and nested structures. The latter can be particularly useful in regulated contexts such as legal or medical documentation, but aren’t by any means limited to those. Generally speaking, the better defined a content model can be, the more consistent and informational the content is, and the greater the <a href="http://blog.joepairman.com/2014/what-structured-content-can-do-for-you.html">potential benefits</a>.</p><p>One way of ensuring control of content structures is to use XML-aware authoring tools such as Oxygen or FontoXML. These editors validate content against XML schemas — documents that define the permitted structures using syntaxes such as DTD, XML Schema (with a capital S), and RELAX NG. The authoring tools themselves can be configured to make authoring in XML visually appealing and accessible to non-specialists. However, setting up schemas in the first place or improving existing ones isn’t so easy.</p><p>Authors and managers must be consulted to make sure the formal structures work both in terms of intended outputs and in terms of the authoring experience. The structures should support authors’ mental models of the content they write. To aid this process, a clear visualization of the whole content model would be very helpful. Sometimes, information architects represent aspects of content models with Visio-style boxes and connectors. This works well when examining the detail of a model, but the full context of that detail — the whole topic or document model — rapidly gets too much to view on one screen or page. In addition, updating a diagram such as this takes time and isn’t well suited to collaborative development on the fly during a meeting.</p><p>Most commonly, schema developers are stuck with the raw schema syntax. Here, for example, is part of the task DTD based on the DITA XML 1.2 standard.</p><pre>&lt;!— LONG NAME: Step —&gt; &lt;!ENTITY % step.content “((%note;)*, %cmd;, (%choices; | %choicetable; | %info; | %itemgroup; | %stepxmp; | %substeps; | %tutorialinfo;)*, (%stepresult;)? )” &gt;</pre><p>This extract controls the elements that can go directly within a procedural step element. It allows for any number of note elements, followed by an obligatory cmd (a command; the core of the procedural step), followed by any number of choices / choicetable / info / itemgroup / stepxmp / substeps / tutorialinfo elements in any order, followed by an optional stepresult. (While this might seem fussy and unnecessarily limiting if you are not used to working with such detailed content models, the thinking behind it is clear: any step should have an action-oriented sentence but notes should be read before that sentence; and other information might be helpful but there can only be one result of a well-specified step.)</p><p>The step element is one of quite a few allowed elements in a DITA task, and each has its own defined content model in the DTD. It is obvious that seeing a big list of these content models isn’t necessarily the most accessible way to get an idea of DITA task structure, or to work with modifications of that structure (DITA is designed to enable more constrained or specialized content models based on the “out of box” types.)</p><p>Over the last couple of weekends, I’ve been refining a framework for visualizing schemas that:</p><ul><li>Provides an accessible way for authors, managers, and schema developers alike to understand or refine a content model.</li><li>Is easy to update and maintain without specialist tools or knowledge[¹].</li><li>Offers a single-page view of the whole content model at a glance, rather than the common approach of revealing only certain aspects of the model in each view. While it can sometimes be helpful to focus on details of the model, the full picture is very helpful for putting the detail in context and working with the model in a way that’s easily grasped. (As is often the case with conceptual architectures, printing the visualization out and doodling/handwriting notes on it could be particularly useful for collaborative schema development)[¹].</li><li>Is structured enough that it could be parsed to generate at least a skeleton formal schema such as a DTD.</li><li>Is general enough that it can be used for any content model, whether that model will be implemented in DITA XML, other XML languages, other markup standards such as SGML, or perhaps even a schema that isn’t based on markup, such as the model for a relational database.</li></ul><p>I call it a spatial schema. It’s authored in a spreadsheet tool such as Google Sheets. Here’s an example of a somewhat constrained DITA task topic model using this framework:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/0*tSa5utGiueNKQo0W.png" /></figure><p>The rules for reading this are:</p><ul><li><strong>The nested boxes</strong> represent the hierarchy of elements: which elements are contained by which.</li><li><strong>The name at the top left of a box (or in the middle of a box)</strong> is the element name.</li><li><strong>The indent level</strong> represents the level in the hierarchy.</li><li><strong>Multiple separate boxes at the same level</strong> indicate that those elements are in sequence: the latter ones follow the former. For example, an optional abstract element follows an optional titlealts, which follows a mandatory title. abstract cannot come before title.</li><li><strong>Multiple items in a single box</strong> indicate multiple options at that point in the sequence. For example, after cmd, there can be any number of choices / choicetable / info / itemgroup / stepxmp / substeps elements in any order.</li><li><strong>The number at the top right of a box</strong> signifies the number of the box’s elements that can appear within the box’s direct container. For example:</li><li><em>0+</em> means any number, e.g. the note or hazardstatement elements at the beginning of a step.</li><li><em>1</em> in the same box would mean that there must be either a note or a hazardstatement at the beginning of a step, but not both.</li><li>Inline elements such as ph are <em>not</em> represented directly, to keep the visualization simple and specific to the topic type itself.</li><li>You should read the contents of the last descendants of any element as text data and inline elements. For example, cmd may only contain inline elements; no block elements.</li></ul><p>To see the source document and copy it for your own use, view this <a href="https://docs.google.com/spreadsheets/d/1CnW2oFRtGnTYkBDZn8dg2fdweB7QOL-1lhvEyLwoAfE/edit?usp=sharing">Google Sheets document</a>.</p><ul><li>The model for the whole document type (at least the elements) is represented in a reasonably compact and accessible manner.</li><li>As it’s authored in a spreadsheet tool, it’s easy to use other columns to the left of the diagram for notes, descriptions of XML attributes that are part of the content model, or any other relevant info. For example, I used one column for the DITA inheritance path, and another to indicate where this model was different from the base, unspecialized one.</li><li>As it follows a consistent structure, it would be possible to generate a skeleton schema document from it. From a coding point of view, one way to start would be to export the sheet as a comma separated values file (.csv), and build an internal representation of the document model based on the first column in which an element name appeared (the indent level) and the number (if any) contained in that row.</li><li>In the main visualization itself, there’s currently no room to include XML attributes that are part of the content model, although they can be described in adjacent columns of the sheet.</li><li>There is a practical limit to the degree of nesting that can be visualized in this way, and so generic block elements are indicated as <em>[regular block element]</em>. A similar approach should be taken with nested topics — the recursion can be indicated but left at that. This could, however, be seen as an advantage rather than a limitation — authors and users alike can get lost in deeply nested structures, and a rule of thumb might be that unless you can visualize a structure, you shouldn’t write content using it!</li><li>There is no provision for directly describing conditionally dependent relationships: “if this optional element is present then another one must be too”.</li></ul><p>Here is one example of the latter from the experimental troubleshooting task specialization included with Oxygen XML, drawn from the DITA 1.3 spec in development:</p><pre>&lt;!— LONG NAME: Remedy —&gt; &lt;!ENTITY % remedy.content “((%title;)?, (%responsibleParty;)?, (%steps; | %steps-unordered; | %steps-informal;) )?” &gt;</pre><p>This says that the remedy element can be empty, i.e. with no content, but if it has <em>any</em> content, it must have one of steps, steps-unordered, or steps-informal. A workaround to represent this using the spatial schema framework would be to use a dummy/virtual container for the child elements:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*23DrobUZxCl4joLG.png" /></figure><p>However, this type of structure does not seem to be needed very often in any case.</p><p>Here’s the link to the <a href="https://docs.google.com/spreadsheets/d/1CnW2oFRtGnTYkBDZn8dg2fdweB7QOL-1lhvEyLwoAfE/edit?usp=sharing">demo Google Sheet</a> again. Let me know what you think in the comments. Could this be helpful to you? Is there anything that could be tweaked to improve it?</p><p><em>Originally published at </em><a href="http://blog.joepairman.com/posts/visualizing-complex-content-models"><em>blog.joepairman.com</em></a><em> on March 15, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8ac3f81564a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Structured Content Can Do for You (and what it can’t)]]></title>
            <link>https://medium.com/@joepairman/what-structured-content-can-do-for-you-and-what-it-cant-f9f6d296c7fd?source=rss-34f9743f7287------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9f6d296c7fd</guid>
            <category><![CDATA[information-architecture]]></category>
            <category><![CDATA[intelligent-content]]></category>
            <category><![CDATA[structured-content]]></category>
            <category><![CDATA[content-strategy]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Joe Pairman]]></dc:creator>
            <pubDate>Wed, 31 Dec 2014 00:00:00 GMT</pubDate>
            <atom:updated>2016-09-29T08:24:43.797Z</atom:updated>
            <content:encoded><![CDATA[<p>I gave a talk about causes of structured content management project failure at the CMS/DITA Europe conference last month. Two common causes of failure are lack of success criteria and no business case. Decision makers often want to buy tools such as CMSs without having a clear idea of how they will use them or what the benefits will be. Perhaps they hear that competitors are using those tools, or they come away from conferences with the vague impression that structured content is a good thing. But without a clear idea of what benefits can be achieved and how, any such project is doomed to inefficiency or complete failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9ZLwXz_SRhVw90CI.png" /></figure><p>To begin with, we should be clear what we mean by the term <em>structured content</em>. In common usage, it refers to content that has metadata applied to its subcomponents. Metadata is “information about information”, and in this case it tells you more about the content it’s applied to. For example, a library cataloging system contains <em>descriptive metadata</em> that helps library users to find books by keyword, author, title, and so on. It also contains <em>administrative metadata</em> that helps library staff manage and preserve resources. However, most books themselves don’t count as structured content, because the metadata isn’t applied to their internal structure — for example the sections, chapters, pages, lists, diagrams, and terms they contain. In structured content, metadata is attached to these kinds of subcomponents to indicate either:</p><ul><li>their type (for example a section could be an intro, a methodology description, or a conclusion), or</li><li>the real-world entities they refer to (for example the concept or person that a particular page, paragraph, or even an individual phrase describes). For more on this kind of metadata see my post <a href="http://blog.joepairman.com/2013/04/is-structured-content-missing-a-trick.html"><em>Is Structured Content Missing a Trick</em></a>.</li></ul><p>Because structured content contains extra information, it takes extra planning and work to produce. The tools used to manage it can be costly, but the human changes needed to work with it can be even more expensive (see my post on <a href="http://blog.joepairman.com/2014/metamorphose-to-dita.html">preparing for such changes</a> in the context of the DITA XML architecture). It’s essential that before starting a structured content implementation, stakeholders in the organization understand the benefits that they can achieve through it, as well as those they can’t.</p><p>I believe that the five kinds of benefit I list below are comprehensive (although please do comment if you feel I’ve missed any). Often, a project starts by prioritizing more output platforms or increased efficiency — the first two kinds — and as the implementation becomes more mature, the other three kinds become more important. In any case, it is helpful to understand each category, since even a small-scale project with limited goals can benefit from an eye to the long-term potential and the desirability of keeping options open in the future.</p><p>Note that there are various technical approaches to storing structured content, for example as various flavors of XML, or within a relational database. There are also different kinds of systems to create and manage it, including integrated Web content management and delivery systems, dedicated XML component-based systems, and barebones implementations using basic version control. For the purposes of this post, the differences between technical approaches and systems are not important.</p><h3>1. Deliver content to various platforms and audiences</h3><p>A common driver for a move to structure is the need for digital content that works well no matter what size screen, operating system, or application it is viewed with. For technical content there may also be legal or contractual requirements to produce a print version, or at least a standalone package of content such as a PDF. And it may be necessary to tailor content for different customers (e.g. branding requirements), audiences (e.g. information for a particular role), and even for different individuals (providing different information according to their needs, experience, interests, and preferences).</p><p>By labeling content subcomponents with descriptive metadata according to the information they contain rather than how they should look, different presentational styles can be applied for different viewing contexts. In a responsive web context, where screen width allows, a description can be floated next to a figure it describes, but where the screen is too narrow, the description can fit below the figure. In print or PDF output, rules can be applied to ensure that the description and the figure are always on the same page. And headings, lists, and tables can be formatted appropriately for each viewing context. Where different audiences require a different look and feel, for example customer-specific branding, this is straightforward too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MjV_GJTpZj_WrqkW.png" /></figure><p>However, an organization may require different versions of a particular piece of content to be displayed on different platforms or in different contexts. For example, if an article has a short description and a long description available, the short description could be displayed in a “mobile” context — narrower screens or mobile apps / browsers — whereas the long description could be used in a desktop or print context. Alternatively, one description could be displayed for viewers arriving at the article via an external search, and another displayed for those coming from another page on the same site.</p><p>At a larger scale, if an organization wants to include or omit whole topic areas or types for particular contexts or audiences (for example if it is felt that users who are traveling do not want to view reference material, or different roles have different tasks), this can be achieved by building a different collection of topics for each context, either dynamically based on metadata associated with the topic chunks, or manually if a more curated approach is required. The principle is the same as in the paragraph described above, but the chunks are bigger. Where the delivery platform has access to data on individuals (for example via CRM integration), dynamic filtering can also be used to tailor information to those individuals’ needs, experiences, and preferences.</p><p>While there are well-trodden technical paths to selectively present different content in different viewing contexts, we should not assume that we understand enough about users’ varying needs in those different contexts to make this approach useful or worthwhile. As Karen McGrane writes in <a href="http://www.abookapart.com/products/content-strategy-for-mobile"><em>Content Strategy for Mobile</em></a>, to take one example:</p><blockquote>If we want objective and accurate data about how people engage with mobile devices, we first need to get all of our content on mobile. Only then will we be able to get real facts and glean meaningful insights about what people want, when they want it, and how they want it presented.</blockquote><p>Where requirements for selective / adaptive presentation are very clear, or where they are externally mandated, we can go ahead confidently. Otherwise, we should be cautious and err on the side of letting users filter their own content.</p><p>The ability to deliver multiple outputs from a single source can be seen an instant productivity increase compared to the cost of tailoring such outputs using traditional presentation-oriented approaches to content creation. Even where a content team produces only a single output type, automated rules-based publishing of structured content can eliminate effort spent manually formatting outputs, for example tweaking figure layouts, tables, and page breaks. It bears mentioning, however, that the initial outlay and ongoing maintenance of such publishing solutions depends to some extent on the consistency of the source content. If the source structure is controlled and predictable, automation is far easier.</p><p>Further savings can be made by working with reusable content components. If the structured content implementation is done in such a way that chunks of content can not only be labelled descriptively but also managed independently from each other, it is no longer necessary to push complete deliverables (publications, or collections of content) through the workflow. This is of course nothing new for teams working primarily with individual pages of web content or articles, but for those producing books or collections of content, it is a significant departure from the traditional way of working. If a publication is being updated, authors, reviewers, and translators can focus on the new or updated chunks of content without having to handle the unchanged parts.</p><p>There is no point in publishing to more platforms or producing greater quantities of information if that information is of low quality. Some aspects of information quality that structured content can help with are:</p><ul><li><strong>accuracy</strong> — the information that an organization produces should be factually correct, or reflective of the organization’s viewpoints and approach. By applying review workflow rules to independent chunks or modules, and by reusing approved modules wherever appropriate, maintaining accuracy becomes easier and less error-prone. Another aspect of accuracy is correct terminology. Where external systems store canonical lists of terms (for example a database of software UI strings), these can be integrated into a structured content system so that the correct, up-to-date term is always used.</li><li><strong>conformance to contractual, regulatory, or other legal requirements</strong> — certain information in a certain format may need to be included, for example warnings in technical documentation, or correct use of trademarked terms. Specific review processes may be needed for chunks of content that fall into this category. In a structured environment, metadata can be applied to content chunks to indicate what specific requirements apply to them. Alternatively, a central bank of legal or safety text can be maintained, which authors can draw on whenever needed.</li><li><strong>extent and balance of subject matter coverage</strong> — when metadata describes what content modules are about, it is possible to query an entire collection of modules to find out what it includes and to what extent those subject areas are covered. When data on user needs or common search queries is available, this can be analyzed alongside the subject coverage data to reveal where there are information gaps or where there is duplicated, redundant, or otherwise necessary information. (Of course, the subsequent corrective action can help to increase efficiency as well as content quality. There are no hard dividing lines between the various benefits that can be achieved with structured content.)</li><li><strong>consistent sequence of elements</strong> — it can help readers if particular types of content are always found on the same area of a page or in the same navigational arrangement. For example, Wikipedia articles nearly all feature a <a href="http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Lead_section">lead section</a>/intro at the top, and “References” and “External links” sections at the bottom. A structured content environment can strongly encourage the use of standard structures, for example by means of template placeholders, form fields, or the direct control of block elements by means of an XML schema.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/0*z1aK_-H9ajALc6Mm.png" /><figcaption>Screenshot from FontoXML, an intuitive XML editor</figcaption></figure><p>The uses of metadata that we’ve looked at so far are all internal; that is, they enable <em>content producers</em> to customize outputs, manage content better, and improve its quality. These uses are well-established and are often the only ones that an organization considers when starting an implementation. A less-explored use, but one with huge potential, is to surface aspects of the source metadata to improve the experience of <em>end users</em>; the people who read the information.</p><p>Some examples of this potential are:</p><ul><li><strong>taxonomy-based navigation</strong> — when metadata describes the subject matter of content modules (e.g. pages or articles), it can be used in a faceted search application to help readers find what they’re looking for. They select categories of interest to browse content, or search for a term first and use the categories to filter the search results.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*La286sMPcP5HvZPx.png" /></figure><ul><li><strong>automated content recommendations</strong> — taxonomical metadata can be used to generate links to content that’s related to the currently viewed page. This can be very helpful when, as is often the case, users land on a page from an external search result, and it is close to what they are looking for, but not quite there. Suggested links can take them to the exact piece of content that they need. (Automated textual analysis, “<a href="http://www.cs.princeton.edu/~blei/topicmodeling.html">topic modeling</a>”, can also be used to enhance related links, though this is not in itself dependent on structured content.) Suggested links can also be tailored to individuals’ needs, experiences, and interests, where data exists on those individuals (for example with CRM integration). The difference from the pre-emptive personalized filtering described above is that with content suggestions, users always have the choice to view them or not. This is generally a better approach unless we are completely confident in our judgements of what information our users need.</li><li><strong>term definitions and related links</strong> — when phrases in content such as names of organizations or scientific/technical terms are labeled with metadata that indicates what they refer to, links to definitions of those terms or related content can be generated automatically. In this demo application built with <a href="http://www.ditaweb.com/">Mekon DITAweb</a>, each highlighted term is clickable to reveal related definitions and other links.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a7jQ5Ed0ciyJK_ep.png" /></figure><ul><li><strong>exposing metadata in Web content to enhance external searches</strong> — we can publish our descriptive metadata directly with our Web content, improving results from external search engines such as Google and allowing any external organization to build applications which connect to the information we publish. This is possible through standard, extendable vocabularies such as <a href="http://schema.org/">Schema.org</a> and formats such as <a href="http://rdfa.info/">RDFa</a> and <a href="http://json-ld.org/">JSON-LD</a>.</li></ul><h3>5. Give your content a life beyond the system it’s currently held in</h3><p>The information we create is a valuable asset and can remain valuable for many years. For many organizations, it is important that the information can still be accessed and used even if the system it is managed in changes — for example if a new CMS is adopted or even if the underlying hardware platform changes. The metadata that is stored with structured content allows the content to be exported with the meaning intact, transformed into other structured formats if necessary, and brought into other systems.</p><p>This also allows collaborative working between various groups using various tools in the same or different organizations. Note that it is not necessary to store content in a single, interchangeable format for this to work. While it can be cheaper to do so, there may be legitimate business reasons to work with structured content in several different formats and to automatically transform it between the various formats.</p><p>In contrast, a hallmark of non-structured content is that it is hard to work with outside of the specific tool with which it is created. While non-structured tools exist that can provide some of the benefits listed above, such as modular content management, it is almost always expensive or time-consuming to get the created content out of the tool and into another one.</p><h3>What structured content can’t do: substitute for good writing skills</h3><p>In <a href="http://blog.joepairman.com/2013/does-your-writing-tool-leave-space-to-build-a-story.html"><em>Does Your Writing Tool Leave Space to Build a Story?</em></a> I wrote:</p><blockquote><em>All writing, bar the driest reference material or the most avant-garde literature, must tell a story. For example, a market research report (at least one that’s any good) weaves the data into a coherent plot, with an actionable denouement. A help page starts with a goal or problem and finishes with one or more solutions. And email should be the haiku of business communication. A sentence or two to frame the topic; some more for the details; and then an unambiguous statement of the necessary action. But it’s difficult to wrestle a wriggling mass of ideas into a coherent structure.</em></blockquote><p>For sure, the guidance that a structured template provides can help authors to avoid missing important or mandatory information, as can the automated checks on coverage discussed above. But valuable information requires much more than a “paint-by-numbers” approach to writing. It requires writers to exercise imagination and empathy to put themselves in readers’ shoes; to provide sufficient background information and orientation and lead readers through a line of argument or discussion; in other words to avoid the “<a href="http://www.wsj.com/articles/the-cause-of-bad-writing-1411660188">curse of knowledge</a>”, to use Steven Pinker’s catchy phrase.</p><p>With structured content, particularly when dealing with reusable content modules, it is easy to focus on the technical aspects and ignore the reading experience; the need for context and flow. A mature approach to a structured content implementation has a clear idea of the benefits to be achieved, and doesn’t fall into the trap of thinking that information quality will automatically improve without continued investment in learning and development for skilled writers.</p><h3>Resources</h3><ul><li>For a current view on single sourcing to multiple output contexts, see Rachel Lovinger’s <a href="http://nimble.razorfish.com/publication/"><em>Nimble</em></a>, and for an approach to defining structured content sections to support such single sourcing, see her post <a href="http://alistapart.com/article/content-modelling-a-master-skill"><em>Content Modelling: A Master Skill</em></a>.</li><li>For a look at the limitations of form-based structured templates, see Jeff Eaton’s <a href="http://alistapart.com/article/battle-for-the-body-field"><em>The Battle for the Body Field</em></a>.</li><li>For more on semantic tagging, see Mark Baker’s <a href="http://www.thedynamicpublisher.com/2012/03/06/what-is-xml-really-about/"><em>What is XML Really About?</em></a>.</li><li>For a detailed look at topic-based authoring and content reuse within the DITA XML architecture, see Laura Bellamy, Michelle Carey, and Jenifer Schlotfeldt’s <a href="http://www.ibmpressbooks.com/store/dita-best-practices-a-roadmap-for-writing-editing-and-9780132480529"><em>DITA Best Practices: A Roadmap for Writing, Editing, and Architecting in DITA</em></a>.</li></ul><p><em>Originally published at </em><a href="http://blog.joepairman.com/posts/what-structured-content-can-do-for-you"><em>blog.joepairman.com</em></a><em> on December 31, 2014.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9f6d296c7fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>