Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'de'
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
languagede

Die XSLT-Dateien enthalten Informationen darüber, wie Daten aus der XML-Datei extrahiert und als HTML-Informationsbögen angezeigt werden, die von den Benutzern geöffnet, bearbeitet oder vervollständigt werden können.

Sie können Änderungen an den XSLT-Dateien vornehmen, um das Layout und die Darstellung der Informationsbogendaten anzupassen, indem Sie zum Beispiel die Farbe oder die Größe der Schrift ändern.

Hinweis: Mit Hilfe von XSLT-Dateien können Sie auch verschiedene XML-Formate ineinander umwandeln, z. B. aus dem InSite-Format in das PLA-Format.

Sie können verschiedene XSLT-Dateien erstellen, um die für die Benutzer sichtbare Datenmenge zu beschränken oder um die Informationen in verschiedenen Sprachen darzustellen.

Prepress Portal enthält zwei vorinstallierte XSLT-Dateien für die Anzeige von Informationsbogendaten für Kunden, die sich im Unterordner Customer befinden, und zwei vorinstallierte XSLT-Dateien im Ordner Staff für die Anzeige von Informationsbogendaten für die Mitarbeiter.

Zu jedem Unterordner gehören eine read-Datei und eine edit-Datei.

  • Die read-Datei zeigt einen Job-Informationsbogen im schreibgeschützten Modus an – für Benutzer, die nur Leseberechtigung besitzen, oder für die Anzeige von Job-Informationen auf den Registerkarten Zusammenfassung und Verlauf.
  • Die edit-Datei zeigt einen Job-Informationsbogen im Bearbeitungsmodus an – für Benutzer, die über Berechtigungen zum Anzeigen und Bearbeiten des Job-Informationsbogens verfügen.

Informationsbögen für Kunden und Mitarbeiter können entsprechend Ihren Anforderungen identisch oder unterschiedlich aussehen. Wenn die an den XSLT-Dateien für Kunden und für Mitarbeiter vorgenommenen Änderungen unterschiedlich sind, erhalten die Kunden andere Informationen (und in einem anderen Layout) als die Mitarbeiter. Sie können natürlich auch ähnliche Kunden- und Mitarbeiteransichten erstellen, indem Sie eine Datei in einem Ordner anpassen und dann die Datei in den anderen Ordner kopieren.

XSLT-Beispiel

Wenn Sie den Kunden die Bearbeitung des Job-Informationsbogens über Turnaround (Standardwert „Ein Tag“) und TotalQuantity erlauben möchten, können Sie die folgende edit-XSLT-Datei im Unterordner Customer einrichten:

<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>

...