Custom Preview Stylesheets
For custom XML document types, you can specify the XSLT to use when generating the
preview used in the administrative screen by placing a
preview.xsl
file at
the root level of the document type.Preview stylesheets should generally follow the same conventions used for portal transforms.
The resulting HTML will be inserted into the preview panel, so should only contain
elements
suitable within an HTML <body>
element. Generally, the root of the HTML
output should be a <div>
element. If your document type has a
/HARP-META/doctype.xml
file or is based on DITA, graphics and links
will automatically be resolved by the application; the @href
attributes in
the source do not have to be manipulated by the stylesheet.