Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'zh'

...

languageen

When data is transferred from an MIS to the PLA software, the MIS generates job information in XML format that is specific to the MIS, and then a custom Extensible Stylesheet Language Transformation (XSLT) file changes the MIS XML files into XML files that PLA can accept.

XML generated by the MIS 

The MIS must generate job information in XML format—one XML file per layout.

The format of the XML is flexible. Each MIS may have its own custom format. Typically, the format is defined in a schema written in an XML schema definition (.xsd) file. The schema defines the names, types, and relationships of each piece of information. A schema is helpful but not required.

XML required by PLA

The PLA software must receive data in XML files that conform to a specific XML schema. 

For example, the PLA schema requires the XML file to identify marks with the name MarksList. The marks that you want to add must be identified with the name AddList, and they must be inside the MarksList.

The schema is installed on the server when you install PLA. It is called TargetXML.xsd and is located in the ...\Program Files (x86)\Kodak\LayoutAutomation\RBA\XML folder. 

For descriptions of the elements and attributes in the schema, see the annotations embedded in the schema file.

Comparing the MIS and the PLA XML

The MIS schema usually differs from the PLA schema.

For example, the XML file from your MIS may identify all artwork with the name Artworks, while the PLA software requires you to identify artwork with the name ArtworkList

To resolve this problem, software developers have the following options:

  • Modify the MIS so that it generates XML files that conform to the PLA schema. This solution is appropriate if software developers are modifying the MIS for other reasons—for example, to make the MIS generate XML files instead of using another file format.
  • Write an XSLT file that changes the XML file from the MIS into an XML file that conforms to the PLA schema.

Modifying XML with XSLT

XSLT is a programming language that can change one type of XML into another type.

Use XSLT to change the XML files that the MIS generates into XML files of a format that the PLA software supports. Each time that the MIS produces an XML file, the XSLT file reads the XML file and creates a new XML file with a different structure but the same data.

For example, an XSLT file can change the name Artworks in an MISgenerated XML file to ArtworkList in the XML file used by the PLA software.

You can create the XSLT file in a text editor, or you can use XSLT editing software.

...

languagezh

数据从 MIS 传输到 PLA 软件时, MIS 将生成特定于 MIS 的 XML 格式的作业信息,然后一个自定义的可扩展样式单语言转换 (XSLT) 文件将 MIS XML 文件更改为 PLA 可以接受的 XML 文件。

MIS 生成的 XML

MIS 必须生成 XML 格式的作业信息 - 每个版式一个 XML 文件。

XML 的格式很灵活。 每个 MIS 可以具有其自身的自定义格式。 通常来说,格式定义在 XML 模式定义 (.xsd) 文件中编写的模式中。 该模式定义每项信息的名称、类型和关系。 模式很有用,但不是必需的。

PLA 所需的 XML

PLA 软件必须接收符合特定 XML 模式的 XML 文件中的数据。

例如,PLA 模式需要 XML 文件来标识名称为“MarksList”的标记。 您想添加的标记必须用名称“AddList”来标识,并且必须位于“MarksList”之内。

安装 PLA 时,模式安装在服务器上。 它名为 TargetXML.xsd,并且位于 ...\Program Files (x86)\Kodak\LayoutAutomation\RBA\XML 文件夹。

关于模式中的元素和属性的描述,请参阅嵌入在模式文件中的注释。

比较 MIS 和 PLA XML

MIS 模式通常与 PLA 模式不同。

例如,来自 MIS 的 XML 文件可以用名称“Artworks”来标识所有页面,而 PLA 软件要求您使用名称“ArtworkList”来标识页面。

为解决该问题,软件开发人员拥有以下选项:

  • 修改 MIS,以使其生成符合 PLA 模式的 XML 文件。 如果软件开发人员由于其他原因修改 MIS,例如,用 MIS 来生成 XML 文件,而不是使用另一个文件格式,则该解决方案是适合的。
  • 请编写一个 XSLT 文件,该文件将 XML 文件从 MIS 更改为符合 PLA 模式的 XML 文件。

使用 XSLT 修改 XML

XSLT 是一种编程语言,它可以将一种类型的 XML 更改为另一种类型。

使用 XSLT 以便将 MIS 生成的 XML 文件更改为 PLA 软件支持的 XML 文件格式。 MIS 每次生成一个 XML 文件时,XSLT 文件就读取该 XML 文件,并利用不同的结构和相同的数据来创建一个新的 XML 文件。

例如,XSLT 文件可将 MISgenerated XML 文件中的名称“Artworks”更改为 PLA 软件使用的 XML 文件中的“ArtworkList”。

...