root-attributes"

From Documentation
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ZKZUMLReferencePageHeader}}
+
{{ZUMLReferencePageHeader}}
 +
 
 +
'''Syntax:'''
 +
<?root-attributes ''any-name1''="''any-value2''" ''any-name2''="''any-value2''"?>
  
<source lang="xml" >
 
<?root-attributes any-name1="any-value2" any-name2="any-value2"?>
 
</source>
 
 
 
It specifies the additional attributes for the root element of the generated output, which depends on the device types.
 
It specifies the additional attributes for the root element of the generated output, which depends on the device types.
  
Currently, only Ajax devices support this feature and the root element is the <tt>html</tt> tag. In other words, the attributes specified in the <tt>root-attribute</tt> directives will become the attributes of the <tt>html</tt> element of the generated output. For example,
+
Currently, only Ajax devices support this feature and the root element is the <code>html</code> tag. In other words, the attributes specified in the <code>root-attribute</code> directives will become the attributes of the <code>html</code> element of the generated output. For example,
  
 
<source lang="xml" >
 
<source lang="xml" >
Line 20: Line 19:
 
</source>
 
</source>
  
Note: <tt>xmlns="[http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml]"</tt> is always generated.
+
Note: <code>xmlns="[http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml]"</code> is always generated.
  
 
Note: If the value is specified with an EL expression and it is evaluated to null, the corresponding attribute won't be generated.
 
Note: If the value is specified with an EL expression and it is evaluated to null, the corresponding attribute won't be generated.
  
== any-name="any-value" ==
+
= ''any-name''="''any-value''" =
 
Any numbers of names and values are allowed. The value could contain EL expressions.
 
Any numbers of names and values are allowed. The value could contain EL expressions.
  
==Version History==
+
=Version History=
  
 
{| border='1px' | width="100%"
 
{| border='1px' | width="100%"
Line 37: Line 36:
 
|}
 
|}
  
{{ZKZUMLReferencePageFooter}}
+
{{ZUMLReferencePageFooter}}

Latest revision as of 02:12, 18 May 2022

Syntax:

<?root-attributes any-name1="any-value2" any-name2="any-value2"?>

It specifies the additional attributes for the root element of the generated output, which depends on the device types.

Currently, only Ajax devices support this feature and the root element is the html tag. In other words, the attributes specified in the root-attribute directives will become the attributes of the html element of the generated output. For example,

 <?root-attributes xmlns:v="urn:schemas-microsoft-com:vml"?>

will cause the HTML output to be generated with the following snippet

 <html xmlns="[http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml]"
 xmlns:v="urn:schemas-microsoft-com:vml">

Note: xmlns="http://www.w3.org/1999/xhtml" is always generated.

Note: If the value is specified with an EL expression and it is evaluated to null, the corresponding attribute won't be generated.

any-name="any-value"

Any numbers of names and values are allowed. The value could contain EL expressions.

Version History

Version Date Content
     



Last Update : 2022/05/18

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.