如何导入此dita 1.3 xml?

问题描述 投票:0回答:1

有人可以帮助贫穷的开发人员升级到Dita 1.3:)

我需要使dita-ot与xml的较新版本一起使用(下面的示例)。我需要调整库中的某些内容,但是我不知道从哪里开始。我只替换了有问题的位,例如-// FOOBAR /

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//FOOBAR//DTD DITA Concept//EN" "file:///D:/InfoShare/Web/Author/ASP/DocTypes/dita-sdl/1.3/dtd/technicalContent/dtd/sdlConcept.dtd">
<?ish ishref="GUID-874B737D-F63A-48C3-887A-571C38D5ED5A" version="1" lang="en-us"?>
<concept xml:lang="en-us" id="xs_help_me_contextually_please" rev="for Desktop" product="Foobar product">
   <title id="GUID-F92ED443-BE97-44C7-AB36-726B2A76ECF9">New DITA declaration topic without any new elements</title>
   <shortdesc id="GUID-8D7A677D-6782-4A65-96B4-F7F4B3CB5CCD">
      <ph>Short description of the topic.</ph>
   </shortdesc>
   <prolog>
      <metadata>
         <category>
            Content area
            <keyword>Templates</keyword>
         </category>
         <keywords>
            <indexterm id="GUID-32379B47-E4F9-4E00-A8A7-383584241D88">indexterm</indexterm>
         </keywords>
      </metadata>
   </prolog>
   <conbody>
      <p id="GUID-A2466389-DC06-4052-A0EE-8684F3C3D7D3">
         <ph>Text here.</ph>
      </p>
   </conbody>
</concept>

如果我将FOOBAR更改为OASIS,则它似乎可以正常工作-至少不会出现任何错误。的我正在运行的命令是:

dita -i=/app/dita/in/foobar.ditamap -f=xhtml -o=/app/dita/out

它给出的错误:

[gen-list] [DOTJ079E][ERROR] File 'file:/app/dita/in/xs_help_me_contextually_please.xml' could not be loaded. Ensure that grammar files for this document type are referenced and installed properly. Cannot load file: /D:/InfoShare/Web/Author/ASP/DocTypes/dita-sdl/1.3/dtd/technicalContent/dtd/sdlConcept.dtd (No such file or directory)
[move-meta] I/O error reported by XML parser processing file:/tmp/temp20191106165059386/in/xs_help_me_contextually_please.xml: /tmp/temp20191106165059386/in/xs_help_me_contextually_please.xml (No such file or directory)
[move-meta] file:/app/dita/in/foobar.ditamap:3:327: [DOTX026W][WARN]: Unable to retrieve linktext from target: 'xs_help_me_contextually_please.xml'. Using navigation title as fallback. 

[另外,我应该在库中的某个位置添加technicalContent / dtd / sdlConcept.dtd(我也得到了),但不确定在哪里。试图将其放在plugins / org.oasis-open.dita.v1_3中,并认为它可以工作,但是当删除文件并在源xml中包含// OAOSIS /时,它也没有发出任何错误。

如果路径为file:/// D:/ InfoShare / Web / Author / ASP / Doc ...,但在进行导入的系统(Docker容器)中不存在,这怎么办?只是提供信息吗?

对这一切感到非常困惑。

谢谢您!

dita dita-ot
1个回答
0
投票

很难提供给您所提供的帮助,但是我可以添加一些澄清信息:

  1. 您正在使用SITA CCMS中已(或已存储)的DITA源。根据SDL产品的年龄,它有不同的名称:Trisoft,SDL Live Content,SDL Tridion Docs。
  2. DITA 1.3与所有以前的DITA版本向后兼容,因此您不必调整任何DITA源文件。但是-如果DITA源使用不同的DTD-与SDL产品中存储的任何内容一样,您将需要这些DTD,因为它们与DITA-OT附带的OASIS DTD不同。

希望这会有所帮助;您也可以在Yahoo的dita用户列表上发布更好的运气!

最好,克里斯

© www.soinside.com 2019 - 2024. All rights reserved.