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:

  • For Process Manufacturing Cockpits: PMC_STY_C_DEFAULTX.XSL (for Microsoft Internet Explorer 5.0/5.5 ) and PMC_STY_C_DEFAULTXIE6.XSL (for Microsoft Internet Explorer 6.0 )

  • For Process Instruction (PI) sheets: PMC_STY_DEFAULTX.XSL (for Microsoft Internet Explorer 5.0/5.5 ) and PMC_STY_DEFAULTXIE6.XSL (for Microsoft Internet Explorer 6.0 )

  • For PI sheets in the touch screen: PMC_STY_PO_DEFAULTX_IE6.XSL (only for Microsoft Internet Explorer 6.0)

  • For archiving PI sheets: PMC_STY_A_DEFAULTX.XSL (for Microsoft Internet Explorer 5.0/5.5 ) and PMC_STY_A_DEFAULTXIE6.XSL (for Microsoft Internet Explorer 6.0 )

Process Flow

  1. You can find the standard style sheets for Microsoft Internet Explorer 5.5 that you can use as templates in the Business Document Service (BDS) in class POC_TEMPLATE under object key (or object ID) SAP .

    In the Web Repository, you can find all standard style sheets in the package CMX_POC.

    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 .

    You copy one of the XSL files that start with PMC_STY_*.XSL or create your own file.

  2. You copy the dependent data:

    • That you want to change

    • That you want to add as a separate copy

  3. You update the links to the files you reference in your XSL style sheet.

    Note the URL conventions described in Managing of Documents for Layout Definitions . They vary depending on where the documents are stored (BDS (transaction OAER) or Web Repository (transaction SMWO)).

  4. You modify the files that you want to change.

    Note the document type definition (DTD) that contains a description of the structure of generated XML files for cockpits and PI sheets.

    You will find concrete examples of XML files in the Business Document Service (transaction OAER with class names POC_PIDOC, class type OT, and the control recipe number or plant PIc ockpit name as object key).

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