OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

dita message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [dita] Proposed review of DITA 2.0 elements to LwDITA components


I've added this item to the agenda for today's call.

For additional context, I attach a DITA topic that contains all the "Processing expectations" sections for elements that are common to DITA and LwDITA, as well as HTML output for the topic.

Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Principal consultant, Eberlein Consulting
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

On 2/9/2019 9:54 AM, Carlos Evia wrote:
Dear DITA TC members,

The LwDITA spec editing team (Alan, Carlos, and Michael) proposes to conduct a review/analysis of the processing expectations of topics common to the LwDITA and 2.0 planned specs.
We would like to present this idea for discussion during the 02/12/19 TC call.

In order to preserve OASIS transparency, the analysis would be posted in a wiki page under the oasis-open.org domain, and will consist of the following sections:

- DITA 2.0 element/LwDITA component name
- Processing expectations for the topic as written in the draft 2.0 spec
- Notes and observations from the LwDITA spec editors.

The notes and observations section will look and report on the following:

- Feasibility of alignment without modifications
- Proposed changes to make the expectations LwDITA-compatible while preserving their effectiveness for DITA 2.0
- Proposed conditional processing recommendations to make the expectations LwDITA-compatible
- Major problems and discrepancies.

Most of the review will be conducted by the LwDITA spec editors, but in special cases we plan to contact experts from the HTML5 and Markdown communities for feedback and input on specific topics.
We are also aware that the multimedia domain components do not exist yet in the 2.0 draft, and we would gladly work with the 2.0 spec editors to draft the topics and achieve full alignment from day 1.

A proposed template for the analysis/report is posted on the following URL:
https://wiki.oasis-open.org/dita/LightweightDITASubcommittee/LwDITA-to-DITA2.0Mapping

--Â
Carlos Evia, Ph.D.
Associate Professor of Communication
Chair, Hispanic/Latino Faculty & Staff Caucus
Virginia Tech
Blacksburg, VA 24061-0112
(540)200-8201

Title: Processing expectations for element-reference topics

Processing expectations for element-reference topics

This topic contains "Processing expectations" sections for certain element-reference topics. These element-reference topics are for elements that exist in both DITA and LwDITA.

Processing expectations

By default, processors SHOULD treat <data> elements as unknown metadata; the contents of <data> elements SHOULD NOT be rendered.

Processors that recognize a particular <data> element MAY make use of that element to trigger specialized rendering.

Processing expectations

When used in conjunction with <fig> or <table> elements, processors SHOULD consider the content of <desc> elements to be part of the content flow.

When used in conjunction with <xref> or <link> elements, processors MAY choose to render the content of <desc> elements as hover help.

Processing expectations

The two footnote types typically produce different types of output:

Single-use footnote
When rendered, a superscript symbol (numeral or character) is produced at the location of the <fn> element. The superscript symbol is hyperlinked to the content of the footnote, which is placed at the bottom of a PDF page or the end of an online article. The superscript symbol can be specified by the value of the @callout attribute. When no @callout value is specified, footnotes are typically numbered.
Use-by-reference footnote
Nothing is rendered at the location of the <fn> element. The content of a use-by-reference footnote is only rendered when it is referenced by an <xref> with the @type attribute set to "fn". If an <xref> with the @type attribute set to "fn" is present, a superscript symbol is rendered at the location of the <xref> element. Unless conref is used, the <fn> and <xref> must be located in the same topic.

However, the details of footnote processing and formatting are implementation dependent. For example, a tool that renders DITA as PDF might lack support for the @callout attribute, or footnotes might be collected as end notes for certain types of publications.

Processing expectations

The image addressed by the @keyref or @href attribute on <image> typically is rendered in the main flow of the content.

Processors SHOULD scale images when values are provided for the @height and @width attributes. The following expectations apply:

  • If a height value is specified and no width value is specified, processors SHOULD scale the width by the same factor as the height.
  • If a width value is specified and no height value is specified, processors SHOULD scale the height by the same factor as the width.
  • If both a height value and width value are specified, implementations MAY ignore one of the two values when they are unable to scale to each direction using different factors.

Processing expectations

When rendering a map, processors might make use of the relationships defined in the map to create a Table of Contents (TOC), aggregate topics into a PDF document, or create links between topics in the output.

The <title> element can be used to provide a title for the map. In some scenarios the title is purely informational; it is present only as an aid to the author. In other scenarios, the title might be useful or even required. In a map referenced by another map, the title might be discarded as topics from the submap are aggregated into a larger publication.

Processing expectations

Processors SHOULD preserve line the breaks and spaces that are present in a <pre> element.

Processing expectations

Processors SHOULD treat the presence of more than one <title> element in a <section> element as an error.

Processing expectations

Processors SHOULD render the content of the <shortdesc> element as the initial paragraph of the topic.

When processors generate link previews that are based on the map context, they SHOULD use the content of the <shortdesc> that is located in the map rather than the <shortdesc> that is located in the DITA topic. However, processors SHOULD use the content of the <shortdesc> element in the DITA topic when they render the topic itself, unless the @copy-to attribute is specified on the topic reference to the element.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="conref-processing-expectations">
    <title>Processing expectations for element-reference topics</title>
    <shortdesc>This topic contains "Processing expectations" sections for certain element-reference
        topics. These element-reference topics are for elements that exist in both DITA and
        LwDITA.</shortdesc>
    <refbody>
        <section id="data">
            <title>Processing expectations</title>
            <p>By default, processors <term outputclass="RFC-2119">SHOULD</term> treat
                    <xmlelement>data</xmlelement> elements as unknown metadata; the contents of
                    <xmlelement>data</xmlelement> elements <term outputclass="RFC-2119">SHOULD
                    NOT</term> be rendered.</p>
            <p>Processors that recognize a particular <xmlelement>data</xmlelement> element <term
                    outputclass="RFC-2119">MAY</term> make use of that element to trigger
                specialized rendering.</p>
        </section>
        <section id="desc">
            <title>Processing expectations</title>
            <p>When used in conjunction with <xmlelement>fig</xmlelement>
                <ph props="full-dita"> or <xmlelement>table</xmlelement>
                </ph>elements, processors <term outputclass="RFC-2119">SHOULD</term> consider the
                content of <xmlelement>desc</xmlelement> elements to be part of the content
                flow.</p>
            <p>When used in conjunction with <xmlelement>xref</xmlelement><ph props="full-dita"> or
                        <xmlelement>link</xmlelement></ph> elements, processors <term
                    outputclass="RFC-2119">MAY</term> choose to render the content of
                    <xmlelement>desc</xmlelement> elements as hover help.</p>
        </section>
        <section id="fn">
            <title>Processing expectations</title>
            <p>The two footnote types typically produce different types of output:</p>
            <dl>
                <dlentry>
                    <dt>Single-use footnote</dt>
                    <dd>When rendered, a superscript symbol (numeral or character) is produced at
                        the location of the <xmlelement>fn</xmlelement> element. The superscript
                        symbol is hyperlinked to the content of the footnote, which is placed at the
                        bottom of a PDF page or the end of an online article. The superscript symbol
                        can be specified by the value of the <xmlatt>callout</xmlatt> attribute.
                        When no <xmlatt>callout</xmlatt> value is specified, footnotes are typically
                        numbered.</dd>
                </dlentry>
                <dlentry>
                    <dt>Use-by-reference footnote</dt>
                    <dd>Nothing is rendered at the location of the <xmlelement>fn</xmlelement>
                        element. The content of a use-by-reference footnote is only rendered when it
                        is referenced by an <xmlelement>xref</xmlelement> with the
                            <xmlatt>type</xmlatt> attribute set to "fn". If an
                            <xmlelement>xref</xmlelement> with the <xmlatt>type</xmlatt> attribute
                        set to "fn" is present, a superscript symbol is rendered at the location of
                        the <xmlelement>xref</xmlelement> element. Unless conref is used, the
                            <xmlelement>fn</xmlelement> and <xmlelement>xref</xmlelement> must be
                        located in the same topic.</dd>
                </dlentry>
            </dl>
            <p>However, the details of footnote processing and formatting are implementation
                dependent. For example, a tool that renders DITA as PDF might lack support for the
                    <xmlatt>callout</xmlatt> attribute, or footnotes might be collected as end notes
                for certain types of publications.</p>
        </section>
        <section id="image">
            <title>Processing expectations</title>
            <p>The image addressed by the <xmlatt>keyref</xmlatt> or <xmlatt>href</xmlatt> attribute
                on <xmlelement>image</xmlelement> typically is rendered in the main flow of the
                content.</p>
            <p>Processors <term outputclass="RFC-2119">SHOULD</term> scale images when values are
                provided for the <xmlatt>height</xmlatt> and <xmlatt>width</xmlatt> attributes. The
                following expectations apply:</p>
            <ul>
                <li>If a height value is specified and no width value is specified, processors <term
                        outputclass="RFC-2119">SHOULD</term> scale the width by the same factor as
                    the height.</li>
                <li>If a width value is specified and no height value is specified, processors <term
                        outputclass="RFC-2119">SHOULD</term> scale the height by the same factor as
                    the width.</li>
                <li>If both a height value and width value are specified, implementations <term
                        outputclass="RFC-2119">MAY</term> ignore one of the two values when they are
                    unable to scale to each direction using different factors.</li>
            </ul>
        </section>
        <section id="map">
            <title>Processing expectations</title>
            <p>When rendering a map, processors might make use of the relationships defined in the
                map to create a Table of Contents (TOC), aggregate topics into a PDF document, or
                create links between topics in the output.</p>
            <p>The <xmlelement>title</xmlelement> element can be used to provide a title for the
                map. In some scenarios the title is purely informational; it is present only as an
                aid to the author. In other scenarios, the title might be useful or even required.
                In a map referenced by another map, the title might be discarded as topics from the
                submap are aggregated into a larger publication.</p>
        </section>
        <section id="pre">
            <title>Processing expectations</title>
            <p>Processors <term outputclass="RFC-2119">SHOULD</term> preserve line the breaks and
                spaces that are present in a <xmlelement>pre</xmlelement> element.</p>
        </section>
        <section id="section">
            <title>Processing expectations</title>
            <p>Processors <term outputclass="RFC-2119">SHOULD</term> treat the presence of more than
                one <xmlelement>title</xmlelement> element in a <xmlelement>section</xmlelement>
                element as an error.</p>
        </section>
        <section id="shortdesc">
            <title>Processing expectations</title>
            <p>Processors <term outputclass="RFC-2119">SHOULD</term> render the content of the
                    <xmlelement>shortdesc</xmlelement> element as the initial paragraph of the
                topic.</p>
            <p props="full-dita">When processors generate link previews that are based on the map
                context, they <term outputclass="RFC-2119">SHOULD</term> use the content of the
                    <xmlelement>shortdesc</xmlelement> that is located in the map rather than the
                    <xmlelement>shortdesc</xmlelement> that is located in the DITA topic. However,
                processors <term outputclass="RFC-2119">SHOULD</term> use the content of the
                    <xmlelement>shortdesc</xmlelement> element in the DITA topic when they render
                the topic itself, unless the <xmlatt>copy-to</xmlatt> attribute is specified on the
                topic reference to the element.</p>
        </section>
    </refbody>
</reference>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]