XML document actions

  • Document+XML DocumentShow Definition (also available on the contextual menu of the editor panel) : move the cursor to the definition of the current element in the schema associated with the edited XML document (DTD, XML Schema, Relax NG schema, NRL schema).

  • Document+XML DocumentCopy XPath (Ctrl+Alt+.): Copy XPath expression of current element from current editor to clipboard.

  • Document+XML Document+Go to the matching tag (Ctrl+Shift+G): Moves the cursor to the end tag that matches the start tag, or vice versa.

  • Document+XML DocumentGo after Next Tag (Ctrl+Close Bracket): Moves the cursor to the end of the next tag.

  • Document+XML DocumentGo after Previous Tag (Ctrl+Open Bracket): Moves the cursor to the end of the previous tag.

  • Document+XML Document+Associate XSLT/CSS Stylesheet : Inserts an xml-stylesheet processing instruction at the beginning of the document referencing either an XSLT or a CSS file depending on the user selection. Either reference is useful for rendering the document in a Web browser when the action Open in browser is executed. Referencing the XSLT file is also useful for automatic detection of the transformation stylesheet when there is no scenario associated with the current document

    Figure 4.49. Associate XSLT/CSS stylesheet dialog

    Associate XSLT/CSS stylesheet dialog

    When associating the CSS, the user can also specify the title and if the stylesheet is an alternate one. Setting a Title for the CSS makes it the author's preferred stylesheet. Checking the Alternate checkbox makes the CSS an alternate stylesheet.

    oXygen Author fully implements the W3C recommendation regarding "Associating Style Sheets with XML documents". For more information see: http://www.w3.org/TR/xml-stylesheet/ http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3.2