[45 min]

Soit les fichiers DITA ci-après.

1
<?xml version="1.0" encoding="utf-8"?>
2
<!--  wheelbarrow.xml -->
3
<concept id="wheelbarrow" xml:lang="en-us">
4
    <title>Wheel barrow</title>
5
    <conbody>
6
        <p>A good wheel barrow will save your back from extensive trauma when you garden.</p>
7
    </conbody>
8
</concept>
1
<?xml version="1.0" encoding="utf-8"?>
2
<!--  takinggarbage.xml -->
3
<task id="takinggarbage" xml:lang="en-us">
4
    <title>Taking out the garbage</title>
5
    <taskbody>
6
        <steps>
7
            <step>
8
                <cmd>Find out from the town what day of the week garbage is collected in your
9
                    neighborhood.</cmd>
10
            </step>
11
            <step>
12
                <cmd>The night before collection, place the garbage cans on the curb.</cmd>
13
            </step>
14
            <step>
15
                <cmd>After the garbage has been collected, move the cans back into your
16
                    garage.</cmd>
17
            </step>
18
        </steps>
19
    </taskbody>
20
    <related-links>
21
        <link href="../concepts/lawnmower.xml" format="dita" type="concept"
22
                ><linktext>Lawnmower</linktext></link>
23
    </related-links>
24
</task>

Question

En utilisant Oxygen, produire une XSLT qui permet de publier en PDF via FO le fichier de type concept.

Indice

Indice

Penser à la gestion des namespaces.

1
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format">

Question

Traiter de la même façon le fichier de type task.