Definition of XSL Style Sheets for PI Sheets and Cockpits 

Purpose

You define XSL style sheets if you want to replace the standard layouts used for browser-based PI sheets and process manufacturing cockpits by your own layouts. You can use the following standard layouts as templates:

Process Flow

  1. You can find the standard style sheets that you can use as templates in the Business Document Service (BDS) in class POC_TEMPLATE under object key (or object ID) SAP.
    For information on the file names of all the files that you can use as templates when defining your own XSL style sheets, see
    Standard Files as Templates for Layout Definitions.
  2. You copy one of the XSL files that start with PMC_STY_*.XSL or create your own file.

  3. You copy the dependent data:
  1. You update the links to the files you reference in your XSL style sheet.
  2. Note the URL conventions described in Managing of Documents for Layout Definitions. They vary depending on where the documents are stored (BDS or Web Repository).

  3. You modify the files that you want to change.
  4. Note the document type definition (DTD) that contains a description of the structure of generated XML files for cockpits and PI sheets.
    For examples of XML files, see class POC_PIDOC in the BDS.

  5. The system creates XML documents for each control recipe that was sent or each cockpit that was activated. The XSL style sheet is used to convert the XML documents to an HTML document. The browser creates the HTML document at runtime and displays it directly. The HTML document must contain additional information that the runtime environment can use to identify R/3-active components.

Make sure that in your XSL style sheet you have correctly defined that this information is added.

è The HTML document for PI sheet number 100000000000004711 must contain:
<META NAME="_bfw_document_" CONTENT="100000000000004711">

è Write the following in the XSL style sheet:
<META NAME="_bfw_document_">
<xsl:attribute name="CONTENT">
<xsl:value-of select="/DOCUMENT/@id"/>
<xsl:attribute>
</META>

For a description of the additional information required, see Reference Information for the Definition of Style Sheets and the lower-level sections.

  1. You link your style sheet to a process order, master recipe, cockpit definition, or process instruction category in Customizing.

Note the XML definition described in Layout Definition for PI Sheets and Cockpits that you must define in the long text for characteristic PPPI_LAYOUT.