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