1 |
#?SuikaWikiConfig/2.0 |
2 |
|
3 |
Plugin: |
4 |
@Name: XML |
5 |
@Description: |
6 |
@@@: XML support |
7 |
@@lang:en |
8 |
@License: %%GPL%% |
9 |
@Author: |
10 |
@@Name: |
11 |
@@@@: Wakaba |
12 |
@@@lang:ja |
13 |
@@@script:Latn |
14 |
@@Mail[list]: w@suika.fam.cx |
15 |
@Date.RCS: |
16 |
$Date: 2004/02/08 08:49:48 $ |
17 |
|
18 |
FormattingRule: |
19 |
@Category[list]: view |
20 |
@Name: xml-declaration |
21 |
@Description: |
22 |
@@@: XML declaration |
23 |
@@lang: en |
24 |
@Parameter: |
25 |
@@Name: downgrade-html |
26 |
@@Type: boolean |
27 |
@@Default: "0" |
28 |
@@Description: |
29 |
@@@@: |
30 |
HTML downgrade mode. PIs are not outputed if User-Agent does not |
31 |
support PIs (eg. Classic Mozilla). |
32 |
@@lang: en |
33 |
@Formatting: |
34 |
__ATTRTEXT:%downgrade_html__; |
35 |
if ($p->{downgrade_html}) { |
36 |
return if $o->{wiki}->{var}->{client}->{downgrade}->{html_no_pi}; |
37 |
} |
38 |
my $xml = $p->{-parent}->append_new_node |
39 |
(type => '#pi', |
40 |
local_name => 'xml'); |
41 |
$xml->set_attribute (version => '1.0'); |
42 |
|
43 |
ViewFragment: |
44 |
@Name: ht--pre-element-content |
45 |
@Order: -10000 |
46 |
@Description: |
47 |
@@@: XML declaration |
48 |
@@lang: en |
49 |
@Formatting: |
50 |
%xml-declaration (downgrade-html); |
51 |
\ |