#?SuikaWikiConfig/2.0 Plugin: @Name: XML @Description: @@@: XML support @@lang:en @License: %%GPL%% @Author: @@Name: @@@@: Wakaba @@@lang:ja @@@script:Latn @@Mail[list]: w@suika.fam.cx @Date.RCS: $Date: 2004/02/08 08:49:48 $ FormattingRule: @Category[list]: view @Name: xml-declaration @Description: @@@: XML declaration @@lang: en @Parameter: @@Name: downgrade-html @@Type: boolean @@Default: "0" @@Description: @@@@: HTML downgrade mode. PIs are not outputed if User-Agent does not support PIs (eg. Classic Mozilla). @@lang: en @Formatting: __ATTRTEXT:%downgrade_html__; if ($p->{downgrade_html}) { return if $o->{wiki}->{var}->{client}->{downgrade}->{html_no_pi}; } my $xml = $p->{-parent}->append_new_node (type => '#pi', local_name => 'xml'); $xml->set_attribute (version => '1.0'); ViewFragment: @Name: ht--pre-element-content @Order: -10000 @Description: @@@: XML declaration @@lang: en @Formatting: %xml-declaration (downgrade-html); \