xmlns:wwpage="urn:WebWorks-Page-Template-Schema"
Attribute | Purpose |
---|---|
wwpage:condition | Controls when elements should be preserved in the generated output. |
wwpage:content | Use this attribute to replace the innerHTML or innerXML of an element. |
wwpage:replace | Use this attribute to replace the innerHTML/innerXML as well as the outerHTML/outerXML. |
wwpage:attribute-<name> | Use this attribute to emit a generated attribute value with name: name. In addition, you can specify a value of either: relative-to-output or copy-relative-to-output or wwsetting:<target-setting-name>. Specifying the value using relative-to-output is useful for file type attributes that require a pathname relative to the parent file. If the copy version is used, it additionally copies the file into the correct location within the generated output directory. |
wwpage:NoBreak | Use this attribute to collapse all white space between two elements into nothing. |
wwpage:Import | Use this attribute to indicate an that an import operation will take place using one of the *-from-* wwpage attributes. |
wwpage:content-from-file | Use this attribute to import the contents of the specified file as the innerHTML of an element. |
wwpage:replace-from-file | Use this attribute to import the contents of the specified file as the innerHTML as well as the outerHTML of an element. |
wwpage:content-from-lookup | Use this attribute to import the contents of the specified item name generated by ePublisher as the innerHTML of an element. |
wwpage:replace-from-lookup | Use this attribute to import the contents of the specified item name generated by ePublisher as the innerHTML as well as the outerHTML of an element. |
Attribute | Example usage in Page.asp page template |
---|---|
wwpage:condition | <hr wwpage:condition="header-exists" align="left" /> |
wwpage:content | <title wwpage:content="title">Title</title> |
wwpage:replace | <div wwpage:replace="content">Page content.</div> |
wwpage:attribute-<name> | <link rel="StyleSheet" href="css/print.css" wwpage:attribute-href="copy-relative-to-output" type="text/css" media="print" /> |
wwpage:NoBreak | <a href="#"> <wwpage:NoBreak /> <img src="myimage.png"> </a> |
wwpage:Import | <wwpage:Import wwpage:replace-from-file="scripts/common.js" /> |
wwpage:content-from-file | <div wwpage:Import wwpage:content-from-file="scripts/common.js"></div> |
wwpage:replace-from-file | <wwpage:Import wwpage:replace-from-file="css/webworks.css" /> |
wwpage:content-from-lookup | <div wwpage:Import wwpage:content-from-lookup="catalog-css"></div> |
wwpage:replace-from-lookup | <wwpage:Import wwpage:replace-from-lookup="catalog-css" /> |
Logic Type | Example |
---|---|
AND (use space) | <hr wwpage:condition=”header-exists company-email-exists” /> |
OR (use “,”) | <hr wwpage:condition=”header-exists,footer-exists” /> |
NOT (use “!”) | <hr wwpage:condition=”!header-exists” /> |
AND with OR and NOT | <hr wwpage:condition=”header-exists company-email-exists,footer-exists !company-email-exists” /> |
Attribute Modifier | Example |
---|---|
relative-to-output | <script type="text/javascript" src="scripts/common.js" wwpage:attribute-src="relative-to-output"></script> |
copy-relative-to-output | <script type="text/javascript" src="scripts/common.js" wwpage:attribute-src="copy-relative-to-output"></script> |
relative-to-output-root | <script type="text/javascript" src="scripts/common.js" wwpage:attribute-src="relative-to-output-root"></script> |
copy-relative-to-output-root | <script type="text/javascript" src="scripts/common.js" wwpage:attribute-src="copy-relative-to-output-root"></script> |
absolute-to-output | <external-graphic content-height="scale-to-fit" width="1in" height="1in" src="url('{wwformat:Pages/images/Logo.png}')" wwpage:attribute-src="absolute-to-output" /> |
resolved-uri | <external-graphic src="url({wwformat:Pages/images/rms_doc_logo.png})" wwpage:attribute-src="resolved-uri" content-width="100px" content-height="100px" left="0pt" top="0pt" /> |
resolved-path | <external-graphic src="{wwformat:Pages/images/rms_doc_logo.png}" wwpage:attribute-src="resolved-path" content-width="100px" content-height="100px" left="0pt" top="0pt" /> |
<img src="url('{images/logo.png}')" wwpage:attribute-src="copy-relative-to-output" />.