1

org.dita4publishers.html2 プラグインを使用して、すべてのトピック参照の概念、章を単一の html ファイルに入れることは可能ですか?

私のditamapまたはxmlファイルはこのようなものです

<?xml version="1.0" encoding="UTF-8"?>
<bookmap>
    <title class="- topic/title ">Workflow</title>
    <frontmatter class="- map/topicref bookmap/frontmatter ">
      <preface class="- map/topicref bookmap/preface " href="concept/guide.xml"/>
      <preface class="- map/topicref bookmap/preface " href="concept/notices.xml"/>
        <booklists class="- map/topicref bookmap/booklists ">
            <toc class="- map/topicref bookmap/toc "/>
            <tablelist class="- map/topicref bookmap/tablelist "/>
        </booklists>
    </frontmatter>
   <chapter class="- map/topicref bookmap/chapter " href="concept/workflow.xml"/>
  <chapter class="- map/topicref bookmap/chapter " href="concept/plug.xml"/>
  <chapter class="- map/topicref bookmap/chapter " href="task/deve.xml"/>
  <chapter class="- map/topicref bookmap/chapter " href="concept/overview.xml">
    <topicref class="- map/topicref " href="task/existing.xml"/>
      <topicref class="- map/topicref " href="task/Edit.xml"/>
      <topicref class="- map/topicref " href="task/original.xml"/>
    </chapter>
    <chapter class="- map/topicref bookmap/chapter " href="task/Start.xml"/>

</bookmap>

ditamap 参照ファイル Start.xml

<task>
<title>intro1</title>
<tbody>
<p>intro1</p>
</tbody>
</task>

概要.xml

<task>
<title>intro2</title>
<tbody>
<p>intro2</p>
</tbody>
</task>

既存の.xml

<task>
<title>intro3</title>
<tbody>
<p>intro3</p>
</tbody>
</task>

Edit.xml

<task>
<title>intro4</title>
<tbody>
<p>intro4</p>
</tbody>
</task>

original.xml

<task>
<title>intro5</title>
<tbody>
<p>intro5</p>
</tbody>
</task>

開始.xml

<task>
<title>intro6</title>
<tbody>
<p>intro6</p>
</tbody>
</task>

ガイド.xml

<concept>
<title>intro7</title>
<conbody>
<p>intro7</p>
</conbody>
</concept>

通知.xml

<concept>
<title>intro8</title>
<conbody>
<p>intro8</p>
</conbody>
</concept>

ワークフロー.xml

<concept>
<title>intro9</title>
<conbody>
<p>intro9</p>
</conbody>
</concept>

plug.xml

<concept>
<title>intro10</title>
<conbody>
<p>intro10</p>
</conbody>
</concept>

概要.xml

<concept>
<title>intro11</title>
<conbody>
<p>intro11</p>
</conbody>
</concept>

org.dita4publishers.html2 プラグインを使用して、これらのすべてのファイルを以下のように必要な単一の html ファイルにします。

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:df="http://dita2indesign.org/dita/functions" xml:lang="en-us" lang="en-us">
<head>
<link rel="stylesheet" type="text/css" href="css/topic.css"></link>
</head>

<body id="topicid">
<div class="topic">
<h1>intro7</h1>
<p>intro7</p>
</div>
<div class="topic">
<h1>intro8</h1>
<p>intro8</p>
</div>
<div class="topic">
<h1>intro9</h1>
<p>intro9</p>
</div>
<div class="topic">
<h1>intro8</h1>
<p>intro8</p>
</div>
<div class="topic">
<h1>intro10</h1>
<p>intro10</p>
</div>
<div class="topic">
<h1>intro8</h1>
<p>intro8</p>
</div>
</body>
</html>

これについて私に提案してください

4

2 に答える 2

0

要素のchunk属性を値に設定するか、パラメーターを使用して DITA-OT 変換を呼び出すことができます。<bookmap>to-content-Droot-chunk-override=to-content

于 2017-03-10T11:12:17.550 に答える