Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'fr'
Sv translation
languageen

The XSLT files contain information about how to extract data from the XML file and display it as HTML info sheets that users can view, edit, or complete.

By modifying the XSLT files, you can customize the layout and presentation of the info sheet data—for example, by changing the color or the font size.

Note: XSLT files can also translate one XML format into another, such as from the InSite format to PLA format.

You can create different XSLT files to restrict the amount of data that is visible to users or to present the information in different languages.

Prepress Portal is shipped with two XSLT files in the Customer subfolder for displaying info sheet data to customer users, and two XSLT files in the Staff subfolder for displaying info sheet data to staff users.

Each subfolder has a read file and an edit file.

  • The read file displays a job info sheet in read-only mode—for users with the View Only right or for displaying job information on the job’s Summary and History tabs.
  • The edit file displays a job info sheet in edit mode—for users who have the rights to View and Edit Job Info Sheet.

Customer and staff info sheets can look identical or different, according to your requirements. If you modify the customer and staff XSLT files differently, you can provide a customer user with different information (and in a different layout) than the information that a staff user sees. Or, you can quickly create similar customer and staff views by customizing a file in one folder and then copying that file to the other folder.

XSLT example

If you want to allow customers to edit the job info sheet based on Turnaround (with One Day as a default value) and TotalQuantity, you might set up the following edit XSLT file in the Customer subfolder:

<table border="0" bordercolor="#00FF00" width="100%"
cellpadding="0" cellspacing="0">
<tr height="35">
<td style="padding-left:10">
   <span class="biggerSansBold">TotalQuantity</span>

</td>
<td align="right" style="padding-left:10">
   <xsl:for-each select-"TotalQuantity">
      <input type="text" size="7" class="baseSans
CSWStyle_InputColor" style="text-align:right">
               <xsl:attribute name="value">
             <xsl:value-of select="." />
               </xsl:attribute>
      </input>
    </xsl:for-each>
</td>
<td style="padding-left:10">
   <span class="biggerSansBold">Turnaround</span>
</td>
<td align="right" style="padding-left:10">
   <xsl:for-each select-"Turnaround">
      <select size="0" class="baseSans
CSWStyle_DropDownColor">
         <option value="One Day">
            <xsl:if test=".=''">
                     <xsl:attribute
name="selected">1</xsl:attribute>
            </xsl:if>
         </option>
         <option value="One Day">
            <xsl:if test=".='One Day'">
               <xsl:attribute name="selected">1</
xsl:attribute>
                                                </
xsl:if>
            One Day
                           </option>
         <option value="Two Day">
            <xsl:if test=".='Two Day'">
               <xsl:attribute name="selected">1</
xsl:attribute>
            </xsl:if>
                                                Two
Day
          </option>
          <option value="One Week">
             <xsl:if test=".='One Week'">
                <xsl:attribute name="selected">1</
xsl:attribute>
             </xsl:if>
One Week
          </option>
       </select>
    </xsl:for-each>

Sv translation
languagefr

Les fichiers XSLT contiennent des informations sur la procédure à suivre pour extraire les données du fichier XML et les afficher sous forme de fiches d'informations HTML qui peuvent être consultées, modifiées ou renseignées par les utilisateurs.

Si vous modifiez les fichiers XSLT, vous pouvez personnaliser la mise en page et la présentation des données des fiches d'informations, par exemple, en changeant la couleur ou la taille de police.

Remarque : les fichiers XSLT peuvent également convertir un format XML en un autre, par exemple, passer du format InSite au format PLA.

Vous pouvez créer différents fichiers XSLT pour limiter la quantité des données visibles aux utilisateurs ou pour présenter les informations dans différentes langues.

Prepress Portal est fourni avec deux fichiers XSLT situés dans le sous-dossier Customer pour l'affichage des données des fiches d'informations aux utilisateurs clients, et deux fichiers XSLT situés dans le sous-dossier Staff pour l'affichage des données des fiches d'informations aux utilisateurs du personnel.

Chaque sous-dossier comprend un fichier read et un fichier edit.

  • Le fichier read affiche une fiche d'informations sur le travail en mode lecture seule : il est destiné aux utilisateurs qui disposent du droit Afficher seulement ou à l'affichage des informations de travail dans les onglets Résumé et Historique du travail.
  • Le fichier edit affiche une fiche d'informations sur le travail en mode de modification : il est destiné aux utilisateurs qui disposent du droit d'afficher et de modifier la fiche d'informations sur le travail.

Les fiches d'informations destinées aux clients et au personnel peuvent avoir une apparence identique ou différente, en fonction de vos exigences. Si vous apportez des modifications différentes aux fichiers XSLT des clients et du personnel, vous pouvez fournir à un utilisateur client des informations différentes (et une mise en page différente) de celles qui peuvent être consultées par un utilisateur du personnel. Vous pouvez également créer rapidement des vues semblables pour les clients et le personnel en personnalisant un fichier dans un dossier, puis en copiant ce fichier dans l'autre dossier.

Exemple de fichier XSLT

Pour permettre aux clients de modifier la fiche d'informations sur le travail basée sur les attributs Turnaround (avec la valeur par défaut One Day) et TotalQuantity, vous pouvez configurer le fichier XSLT edit suivant dans le sous-dossier Customer :

<table border="0" bordercolor="#00FF00" width="100%"
cellpadding="0" cellspacing="0">
<tr height="35">
<td style="padding-left:10">
<span class="biggerSansBold">TotalQuantity</span>

</td>
<td align="right" style="padding-left:10">
<xsl:for-each select-"TotalQuantity">
<input type="text" size="7" class="baseSans
CSWStyle_InputColor" style="text-align:right">
<xsl:attribute name="value">
<xsl:value-of select="." />
</xsl:attribute>
</input>
</xsl:for-each>
</td>
<td style="padding-left:10">
<span class="biggerSansBold">Turnaround</span>
</td>
<td align="right" style="padding-left:10">
<xsl:for-each select-"Turnaround">
<select size="0" class="baseSans
CSWStyle_DropDownColor">
<option value="One Day">
<xsl:if test=".=''">
<xsl:attribute
name="selected">1</xsl:attribute>
</xsl:if>
</option>
<option value="One Day">
<xsl:if test=".='One Day'">
<xsl:attribute name="selected">1</
xsl:attribute>
</
xsl:if>
One Day
</option>
<option value="Two Day">
<xsl:if test=".='Two Day'">
<xsl:attribute name="selected">1</
xsl:attribute>
</xsl:if>
Two
Day
</option>
<option value="One Week">
<xsl:if test=".='One Week'">
<xsl:attribute name="selected">1</
xsl:attribute>
</xsl:if>
One Week
</option>
</select>
</xsl:for-each>

Sv translation
languagezh

XSLT 文件包含有关如何从 XML 文件提取数据的信息,并将其显示为用户可查看、编辑或完成的 HTML 信息页。

通过修改 XSLT 文件,您可以自定义版式和信息页数据的显示 — 例如,更改颜色或字体大小。

注意:XSLT 文件还可以将一个 XML 格式转换为其他格式,例如从 InSite 格式转换为 PLA 格式。

您可以创建不同的 XSLT 文件以限制对用户可见的数据量,或将信息显示为不同语言。

Prepress Portal 随附 Customer 子文件夹中的两个 XSLT 文件,用于对客户用户显示信息页数据,以及 Staff 子文件夹中的两个 XSLT 文件,用于对员工客户显示信息页数据。

每个子文件夹具有一个 read 文件和一个 edit 文件。

  • 可读文件将作业信息页显示为只读模式 — 针对仅具有查看权限的用户,或用于在作业的“摘要”和“历史记录”选项卡上显示作业信息。
  • edit 文件将作业信息页显示为编辑模式 — 针对具有查看和编辑作业信息页权限的用户。

客户和员工信息页可以根据您的需要看起来相同或不同。 如果您对客户和员工 XSLT 文件进行了不同的修改,可以为客户用户提供不同于员工用户所看到的信息(采用不同的版式)。 或者,您可以通过在一个文件夹中自定义文件,然后将该文件复制到另一个文件夹,从而快速创建相似的客户和员工视图。

XSLT 示例

如果您想允许客户编辑基于 Turnaround(将“一天”作为默认值)和 TotalQuantity 的作业信息页,您可以设置 Customer 子文件夹中的以下 edit XSLT 文件:

<table border="0" bordercolor="#00FF00" width="100%"
cellpadding="0" cellspacing="0">
<tr height="35">
<td style="padding-left:10">
<span class="biggerSansBold">TotalQuantity</span>

</td>
<td align="right" style="padding-left:10">
<xsl:for-each select-"TotalQuantity">
<input type="text" size="7" class="baseSans
CSWStyle_InputColor" style="text-align:right">
<xsl:attribute name="value">
<xsl:value-of select="." />
</xsl:attribute>
</input>
</xsl:for-each>
</td>
<td style="padding-left:10">
<span class="biggerSansBold">Turnaround</span>
</td>
<td align="right" style="padding-left:10">
<xsl:for-each select-"Turnaround">
<select size="0" class="baseSans
CSWStyle_DropDownColor">
<option value="One Day">
<xsl:if test=".=''">
<xsl:attribute
name="selected">1</xsl:attribute>
</xsl:if>
</option>
<option value="One Day">
<xsl:if test=".='One Day'">
<xsl:attribute name="selected">1</
xsl:attribute>
</
xsl:if>
One Day
</option>
<option value="Two Day">
<xsl:if test=".='Two Day'">
<xsl:attribute name="selected">1</
xsl:attribute>
</xsl:if>
Two
Day
</option>
<option value="One Week">
<xsl:if test=".='One Week'">
<xsl:attribute name="selected">1</
xsl:attribute>
</xsl:if>
One Week
</option>
</select>
</xsl:for-each>