634 |
## NOTE: Don't create DTD default attributes by |
## NOTE: Don't create DTD default attributes by |
635 |
## |createElementNS| method. |
## |createElementNS| method. |
636 |
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
637 |
|
(<Q::cfg|xml-id> => $self->{parser_cfg} |
638 |
|
-><M::c|DOMConfiguration.getParameter> |
639 |
|
(<Q::cfg|xml-id>)); |
640 |
|
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
641 |
('error-handler' => sub { |
('error-handler' => sub { |
642 |
my (undef, $err) = @_; |
my (undef, $err) = @_; |
643 |
return ($err-><AG::c|DOMError.severity> != |
return ($err-><AG::c|DOMError.severity> != |
690 |
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
691 |
(<Q::cfg|dtd-default-attributes> => null); |
(<Q::cfg|dtd-default-attributes> => null); |
692 |
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
693 |
|
(<Q::cfg|xml-id> => null); |
694 |
|
$self->{doc_cfg}-><M::c|DOMConfiguration.setParameter> |
695 |
('error-handler' => null); |
('error-handler' => null); |
696 |
$r-><AS::Document.strictErrorChecking> (true); |
$r-><AS::Document.strictErrorChecking> (true); |
697 |
}__; |
}__; |
14894 |
} |
} |
14895 |
} |
} |
14896 |
|
|
14897 |
|
@@XMLTest: |
14898 |
|
@@@QName: xp.xmlid.attr.test |
14899 |
|
@@@DEnt: |
14900 |
|
@@@@test:value: |
14901 |
|
<p xml:id="idv"/> |
14902 |
|
@@@test:domTree: |
14903 |
|
document { |
14904 |
|
element { |
14905 |
|
attribute { |
14906 |
|
node-name: 'xml:id'; |
14907 |
|
value: 'idv'; |
14908 |
|
schema-type-info: TypeInfo ('http://www.w3.org/TR/REC-xml', |
14909 |
|
'ID'); |
14910 |
|
specified: true; |
14911 |
|
} |
14912 |
|
} |
14913 |
|
} |
14914 |
|
@@XMLTest: |
14915 |
|
@@@QName: xp.xmlid.attr.norm.test |
14916 |
|
@@@DEnt: |
14917 |
|
@@@@test:value: |
14918 |
|
<p xml:id=" $u000Aidv "/> |
14919 |
|
@@@test:domTree: |
14920 |
|
document { |
14921 |
|
element { |
14922 |
|
attribute { |
14923 |
|
node-name: 'xml:id'; |
14924 |
|
value: 'idv'; |
14925 |
|
schema-type-info: TypeInfo ('http://www.w3.org/TR/REC-xml', |
14926 |
|
'ID'); |
14927 |
|
specified: true; |
14928 |
|
} |
14929 |
|
} |
14930 |
|
} |
14931 |
|
@@XMLTest: |
14932 |
|
@@@QName: xp.xmlid.attrdef.test |
14933 |
|
@@@DEnt: |
14934 |
|
@@@@test:value: |
14935 |
|
<!DOCTYPE p [ |
14936 |
|
<!ATTLIST p xml:id ID #IMPLIED> |
14937 |
|
]> |
14938 |
|
<p/> |
14939 |
|
@@@test:domTree: |
14940 |
|
document { |
14941 |
|
document-type { |
14942 |
|
element-type-definition { |
14943 |
|
node-name: 'p'; |
14944 |
|
attribute-definition { |
14945 |
|
node-name: 'xml:id'; |
14946 |
|
declared-type: const (ID_ATTR); |
14947 |
|
default-type: const (IMPLIED_DEFAULT); |
14948 |
|
} |
14949 |
|
} |
14950 |
|
} |
14951 |
|
element { } |
14952 |
|
} |
14953 |
|
@@XMLTest: |
14954 |
|
@@@QName: xp.xmlid.attrdef.defaultattr.test |
14955 |
|
@@@DEnt: |
14956 |
|
@@@@test:value: |
14957 |
|
<!DOCTYPE p [ |
14958 |
|
<!ATTLIST p xml:id ID "idv"><!-- invalid --> |
14959 |
|
]> |
14960 |
|
<p/> |
14961 |
|
@@@test:domTree: |
14962 |
|
document { |
14963 |
|
document-type { |
14964 |
|
element-type-definition { |
14965 |
|
node-name: 'p'; |
14966 |
|
attribute-definition { |
14967 |
|
node-name: 'xml:id'; |
14968 |
|
declared-type: const (ID_ATTR); |
14969 |
|
default-type: const (EXPLICIT_DEFAULT); |
14970 |
|
node-value: 'idv'; |
14971 |
|
} |
14972 |
|
} |
14973 |
|
} |
14974 |
|
element { |
14975 |
|
attribute { |
14976 |
|
node-name: 'xml:id'; |
14977 |
|
schema-type-info: TypeInfo ('http://www.w3.org/TR/REC-xml', |
14978 |
|
'ID'); |
14979 |
|
value: 'idv'; |
14980 |
|
specified: false; |
14981 |
|
} |
14982 |
|
} |
14983 |
|
} |
14984 |
|
|
14985 |
@@PerlDef: |
@@PerlDef: |
14986 |
my $impl = $Message::DOM::ImplementationRegistry->get_implementation ({ |
my $impl = $Message::DOM::ImplementationRegistry->get_implementation ({ |
14987 |
'Core' => '3.0', |
'Core' => '3.0', |
16126 |
@@For: ManakaiDOM|DOM3 |
@@For: ManakaiDOM|DOM3 |
16127 |
|
|
16128 |
CParamApp: |
CParamApp: |
16129 |
|
@QName: xml-id |
16130 |
|
@c:domConfigurationParameter: cfg|xml-id |
16131 |
|
@c:targetType: xp|ManakaiXMLParser |
16132 |
|
|
16133 |
|
CParamApp: |
16134 |
@QName: error-handler |
@QName: error-handler |
16135 |
@c:domConfigurationParameter: c|error-handler |
@c:domConfigurationParameter: c|error-handler |
16136 |
@c:targetType: xp|ManakaiXMLParser |
@c:targetType: xp|ManakaiXMLParser |