423 |
my $ID = $Info->{ID}; |
my $ID = $Info->{ID}; |
424 |
my $ns = $src->get_attribute ('Namespace'); |
my $ns = $src->get_attribute ('Namespace'); |
425 |
my $s = <<EOH; |
my $s = <<EOH; |
426 |
|
<!ENTITY % sgml.tag.minimizable "IGNORE"> |
427 |
|
|
428 |
<!ENTITY % NS.prefixed "@{[$ns->get_attribute_value ('UsePrefix')==1? |
<!ENTITY % NS.prefixed "@{[$ns->get_attribute_value ('UsePrefix')==1? |
429 |
q(INCLUDE):q(IGNORE)]}"> |
q(INCLUDE):q(IGNORE)]}"> |
430 |
|
|
774 |
default => qq($short_name); |
default => qq($short_name); |
775 |
$s .= "\n"; |
$s .= "\n"; |
776 |
$s .= xml_parameter_ENTITY qq($mname.element), value => 'INCLUDE'; |
$s .= xml_parameter_ENTITY qq($mname.element), value => 'INCLUDE'; |
777 |
|
my $cm = convert_content_model ($src, $Info, default => 'EMPTY'); |
778 |
$s .= xml_condition_section (qq($mname.element) => |
$s .= xml_condition_section (qq($mname.element) => |
779 |
xml_parameter_ENTITY |
xml_parameter_ENTITY (qq($name.content), value => $cm) |
|
(qq($name.content), |
|
|
value => convert_content_model ($src, $Info, default => 'EMPTY')) |
|
780 |
. xml_parameter_ENTITY (qq($name.qname), value => $short_name) |
. xml_parameter_ENTITY (qq($name.qname), value => $short_name) |
781 |
. qq(<!ELEMENT %$name.qname; %$name.content;>\n)); |
. xml_parameter_ENTITY (qq($name.tagmin.start), value => q<->) |
782 |
|
. xml_parameter_ENTITY (qq($name.tagmin.end), value => $cm eq 'EMPTY' ? q<o> : q<->) |
783 |
|
. xml_condition_section (qq(sgml.tag.minimizable) => |
784 |
|
xml_parameter_ENTITY (qq($name.tagmin), |
785 |
|
value => qq"%$name.tagmin.start; %$name.tagmin.end;")) |
786 |
|
. xml_parameter_ENTITY (qq($name.tagmin), value => q"") |
787 |
|
. qq(<!ELEMENT %$name.qname; %$name.tagmin; %$name.content;>\n)); |
788 |
$s .= "\n"; |
$s .= "\n"; |
789 |
$s .= attlist_def (scalar $src->get_attribute ('Attribute', make_new_node => 1), $Info, $mname); |
$s .= attlist_def (scalar $src->get_attribute ('Attribute', make_new_node => 1), $Info, $mname); |
790 |
$s; |
$s; |