Processing Instructions"
From Documentation
(Created page with '{{ZUMLReferencePageHeader}} Each XML processing instruction specifies the instruction how to process the XML document. It is called directives in ZK. For example, the following …') |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ZUMLReferencePageHeader}} | {{ZUMLReferencePageHeader}} | ||
− | Each XML processing instruction specifies | + | = Directive = |
+ | Each XML processing instruction specifies how to process the XML document. It is called '''directives''' in ZK. For example, the following directive specifies the page title and style. | ||
<source lang="xml"> | <source lang="xml"> | ||
Line 7: | Line 8: | ||
</source> | </source> | ||
− | Notice that there | + | Notice that there should be '''no''' whitespace between the question mark and the processing instruction's name (i.e., page in the above example). |
+ | |||
+ | You can also use EL in instructions like: | ||
+ | <source lang="xml"> | ||
+ | <?page automaticTimeout="true" title="${personalTitle}"?> | ||
+ | <?component name="loc-datebox" extends="datebox" locale="${somelocale}"?> | ||
+ | </source> | ||
+ | |||
{{ZUMLReferenceHeadingToc}} | {{ZUMLReferenceHeadingToc}} | ||
− | |||
{{ZUMLReferencePageFooter}} | {{ZUMLReferencePageFooter}} |
Latest revision as of 12:14, 17 May 2022
Directive
Each XML processing instruction specifies how to process the XML document. It is called directives in ZK. For example, the following directive specifies the page title and style.
<?page title="Grey background" style="background: grey"?>
Notice that there should be no whitespace between the question mark and the processing instruction's name (i.e., page in the above example).
You can also use EL in instructions like:
<?page automaticTimeout="true" title="${personalTitle}"?>
<?component name="loc-datebox" extends="datebox" locale="${somelocale}"?>