Name

XHTML — enable XHTML-conformant HTML output

SYNOPSIS

No | Yes

DESCRIPTION

If the directive is enabled, Interchange produces more XHTML-compliant HTML output. This just includes the insertion of "/" in standalone tag endings, since argument name lowercasing and argument option quoting (the other two "things" that make XHTML XHTML) have been already adopted practices for all HTML output.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive,
Catalog directive

EXAMPLES

Example: Enabling XHTML

XHTML Yes

NOTES

Interchange is gradually adopting XHTML-compliant HTML code. Therefore, some things might still not be XHTML-ready even after users enable XHTML.

Making HTML output XHTML-compliant is extremely easy (basically, you only need to lowercase argument names, quote argument options, and include $Vend::Xtrailer before the ending ">" for standalone tags. That said, XHTML-compliance patches are gladly accepted to speed up the effort.

AVAILABILITY

XHTML is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 520

['XHTML',       'yesno',          'No'],

Source: lib/Vend/Config.pm
Line 715

['XHTML',       'yesno',          $Global::XHTML],

Source: lib/Vend/Config.pm
Line 5434 (context shows lines 5434-5446)

sub parse_yesno {
my($var, $value) = @_;
$_ = $value;
if (m/^y/i || m/^t/i || m/^1/ || m/^on/i) {
  return 1;
}
elsif (m/^n/i || m/^f/i || m/^0/ || m/^of/i) {
  return 0;
}
else {
  config_error("Use 'yes' or 'no' for the $var directive\n");
}
}

AUTHORS

Interchange Development Group

SEE ALSO

MV_DHTML_BROWSER(7ic), MV_HTML4_COMPLIANT(7ic)

DocBook! Interchange!