848 |
|
|
849 |
// ~ (MDC) { } |
// ~ (MDC) { } |
850 |
} // _CommentDeclaration |
} // _CommentDeclaration |
851 |
_ |
|
852 |
rule _CommentDeclarationDTD ($doc) { |
rule _CommentDeclarationDTD { |
853 |
?lexmode 'CommentDeclaration'; |
?lexmode CommentDeclaration; |
854 |
|
|
855 |
~? (STRING) { |
~? (STRING) { |
856 |
// |
// |
3422 |
/* |
/* |
3423 |
Comment data |
Comment data |
3424 |
*/ |
*/ |
3425 |
$string := ['-']? [^'-']; |
?default-token STRING : value; |
|
STRING : value := $string+; |
|
3426 |
} // CommentDeclaration |
} // CommentDeclaration |
3427 |
|
|
3428 |
/* |
/* |
3873 |
|
|
3874 |
@XMLTests: |
@XMLTests: |
3875 |
@@XMLTest: |
@@XMLTest: |
3876 |
|
@@@QName: xp.char.xml10.test |
3877 |
|
@@@DEnt: |
3878 |
|
@@@@test:value: |
3879 |
|
<?xml version="1.0"?> |
3880 |
|
<p>$u0009$u000A$u000D$u0020$uD7FF$uE000$uFFFD$U00010000$U0010FFFF</p> |
3881 |
|
@@@test:domTree: |
3882 |
|
document { |
3883 |
|
xml-version: '1.0'; |
3884 |
|
element { |
3885 |
|
text-content: U+0009 U+000A U+000A U+0020 U+D7FF |
3886 |
|
U+E000 U+FFFD U+10000 U+10FFFF; |
3887 |
|
} |
3888 |
|
} |
3889 |
|
@@XMLTest: |
3890 |
|
@@@QName: xp.char.xml11.test |
3891 |
|
@@@DEnt: |
3892 |
|
@@@@test:value: |
3893 |
|
<?xml version="1.1"?> |
3894 |
|
<p>$u0009$u000A$u000D$u0020$uD7FF$uE000$uFFFD$U00010000$U0010FFFF</p> |
3895 |
|
@@@test:domTree: |
3896 |
|
document { |
3897 |
|
xml-version: '1.1'; |
3898 |
|
element { |
3899 |
|
text-content: U+0009 U+000A U+000A U+0020 U+D7FF |
3900 |
|
U+E000 U+FFFD U+10000 U+10FFFF; |
3901 |
|
} |
3902 |
|
} |
3903 |
|
@@XMLTest: |
3904 |
|
@@@QName: xp.char.xml10.c0.test |
3905 |
|
@@@DEnt: |
3906 |
|
@@@@test:value: |
3907 |
|
<?xml version="1.0"?> |
3908 |
|
<p>$u0000$u0001$u0002$u0003$u0004$u0005$u0006$u0007$u0008$u000B$ |
3909 |
|
$u000C$u000E$u000F$u0010$u0011$u0012$u0013$u0014$u0015$u0016$ |
3910 |
|
$u0017$u0018$u0019$u001A$u001B$u001C$u001D$u001E$u001F</p> |
3911 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 4); } /* U+0000 */ |
3912 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 5); } /* U+0001 */ |
3913 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 6); } /* U+0002 */ |
3914 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 7); } /* U+0003 */ |
3915 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 8); } /* U+0004 */ |
3916 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 9); } /* U+0005 */ |
3917 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 10); } /* U+0006 */ |
3918 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 11); } /* U+0007 */ |
3919 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 12); } /* U+0008 */ |
3920 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 13); } /* U+000B */ |
3921 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 14); } /* U+000C */ |
3922 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 15); } /* U+000E */ |
3923 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 16); } /* U+000F */ |
3924 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 17); } /* U+0010 */ |
3925 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 18); } /* U+0011 */ |
3926 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 19); } /* U+0012 */ |
3927 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 20); } /* U+0013 */ |
3928 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 21); } /* U+0014 */ |
3929 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 22); } /* U+0015 */ |
3930 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 23); } /* U+0016 */ |
3931 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 24); } /* U+0017 */ |
3932 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 25); } /* U+0018 */ |
3933 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 26); } /* U+0019 */ |
3934 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 27); } /* U+001A */ |
3935 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 28); } /* U+001B */ |
3936 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 29); } /* U+001C */ |
3937 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 30); } /* U+001D */ |
3938 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 31); } /* U+001E */ |
3939 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 32); } /* U+001F */ |
3940 |
|
@@XMLTest: |
3941 |
|
@@@QName: xp.char.xml11.c0.test |
3942 |
|
@@@DEnt: |
3943 |
|
@@@@test:value: |
3944 |
|
<?xml version="1.1"?> |
3945 |
|
<p>$u0000$u0001$u0002$u0003$u0004$u0005$u0006$u0007$u0008$u000B$ |
3946 |
|
$u000C$u000E$u000F$u0010$u0011$u0012$u0013$u0014$u0015$u0016$ |
3947 |
|
$u0017$u0018$u0019$u001A$u001B$u001C$u001D$u001E$u001F</p> |
3948 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 4); } /* U+0000 */ |
3949 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 5); } /* U+0001 */ |
3950 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 6); } /* U+0002 */ |
3951 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 7); } /* U+0003 */ |
3952 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 8); } /* U+0004 */ |
3953 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 9); } /* U+0005 */ |
3954 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 10); } /* U+0006 */ |
3955 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 11); } /* U+0007 */ |
3956 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 12); } /* U+0008 */ |
3957 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 13); } /* U+000B */ |
3958 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 14); } /* U+000C */ |
3959 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 15); } /* U+000E */ |
3960 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 16); } /* U+000F */ |
3961 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 17); } /* U+0010 */ |
3962 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 18); } /* U+0011 */ |
3963 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 19); } /* U+0012 */ |
3964 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 20); } /* U+0013 */ |
3965 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 21); } /* U+0014 */ |
3966 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 22); } /* U+0015 */ |
3967 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 23); } /* U+0016 */ |
3968 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 24); } /* U+0017 */ |
3969 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 25); } /* U+0018 */ |
3970 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 26); } /* U+0019 */ |
3971 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 27); } /* U+001A */ |
3972 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 28); } /* U+001B */ |
3973 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 29); } /* U+001C */ |
3974 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 30); } /* U+001D */ |
3975 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 31); } /* U+001E */ |
3976 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 32); } /* U+001F */ |
3977 |
|
@@XMLTest: |
3978 |
|
@@@QName: xp.char.xml10.c1.test |
3979 |
|
@@@DEnt: |
3980 |
|
@@@@test:value: |
3981 |
|
<?xml version="1.0"?> |
3982 |
|
<p>$u007F$u0080$u0081$u0082$u0083$u0084$u0086$u0087$u0088$ |
3983 |
|
$u0089$u008A$u008B$u008C$ |
3984 |
|
$u008D$u008E$u008F$u0090$u0091$u0092$u0093$u0094$u0095$u0096$ |
3985 |
|
$u0097$u0098$u0099$u009A$u009B$u009C$u009D$u009E$u009F$u0085</p> |
3986 |
|
@@@test:domTree: |
3987 |
|
document { |
3988 |
|
xml-version: '1.0'; |
3989 |
|
element { |
3990 |
|
text-content: U+007F U+0080 U+0081 U+0082 U+0083 U+0084 U+0086 |
3991 |
|
U+0087 U+0088 U+0089 U+008A U+008B U+008C U+008D |
3992 |
|
U+008E U+008F U+0090 U+0091 U+0092 U+0093 U+0094 |
3993 |
|
U+0095 U+0096 U+0097 U+0098 U+0099 U+009A U+009B |
3994 |
|
U+009C U+009D U+009E U+009F U+0085; |
3995 |
|
} |
3996 |
|
} |
3997 |
|
@@XMLTest: |
3998 |
|
@@@QName: xp.char.xml11.c1.test |
3999 |
|
@@@DEnt: |
4000 |
|
@@@@test:value: |
4001 |
|
<?xml version="1.1"?> |
4002 |
|
<p>$u007F$u0080$u0081$u0082$u0083$u0084$u0086$u0087$u0088$ |
4003 |
|
$u0089$u008A$u008B$u008C$ |
4004 |
|
$u008D$u008E$u008F$u0090$u0091$u0092$u0093$u0094$u0095$u0096$ |
4005 |
|
$u0097$u0098$u0099$u009A$u009B$u009C$u009D$u009E$u009F$u0085</p> |
4006 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 4); } /* U+007F */ |
4007 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 5); } /* U+0080 */ |
4008 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 6); } /* U+0081 */ |
4009 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 7); } /* U+0082 */ |
4010 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 8); } /* U+0083 */ |
4011 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 9); } /* U+0084 */ |
4012 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 10); } /* U+0086 */ |
4013 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 11); } /* U+0087 */ |
4014 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 12); } /* U+0088 */ |
4015 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 13); } /* U+0089 */ |
4016 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 14); } /* U+008A */ |
4017 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 15); } /* U+008B */ |
4018 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 16); } /* U+008C */ |
4019 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 17); } /* U+008D */ |
4020 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 18); } /* U+008E */ |
4021 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 19); } /* U+008F */ |
4022 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 20); } /* U+0090 */ |
4023 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 21); } /* U+0091 */ |
4024 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 22); } /* U+0092 */ |
4025 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 23); } /* U+0093 */ |
4026 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 24); } /* U+0094 */ |
4027 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 25); } /* U+0095 */ |
4028 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 26); } /* U+0096 */ |
4029 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 27); } /* U+0097 */ |
4030 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 28); } /* U+0098 */ |
4031 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 29); } /* U+0099 */ |
4032 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 30); } /* U+009A */ |
4033 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 31); } /* U+009B */ |
4034 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 32); } /* U+009C */ |
4035 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 33); } /* U+009D */ |
4036 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 34); } /* U+009E */ |
4037 |
|
@@@c:erred: <[[xp|wf-legal-literal-character]]> { (2, 35); } /* U+009F */ |
4038 |
|
|
4039 |
|
@@XMLTest: |
4040 |
@@@QName: xp.syntax.empty.test |
@@@QName: xp.syntax.empty.test |
4041 |
@@@DEnt: |
@@@DEnt: |
4042 |
@@@@test:value: \ |
@@@@test:value: \ |
4092 |
text-content: ''; |
text-content: ''; |
4093 |
} |
} |
4094 |
} |
} |
4095 |
|
@@XMLTest: |
4096 |
|
@@@QName: xp.root.s.1.test |
4097 |
|
@@@DEnt: |
4098 |
|
@@@@test:value: |
4099 |
|
<?xml version="1.0"?>$u0020$u000D$u000A$u0009 |
4100 |
|
<p></p> |
4101 |
|
@@@test:domTree: |
4102 |
|
document { |
4103 |
|
element { } |
4104 |
|
} |
4105 |
|
|
4106 |
|
@@XMLTest: |
4107 |
|
@@@QName: xp.Name.1.test |
4108 |
|
@@@DEnt: |
4109 |
|
@@@@test:value: <name/> |
4110 |
|
@@@test:domTree: |
4111 |
|
document { |
4112 |
|
element { |
4113 |
|
node-name: 'name'; |
4114 |
|
} |
4115 |
|
} |
4116 |
|
@@XMLTest: |
4117 |
|
@@@QName: xp.Name.2.test |
4118 |
|
@@@DEnt: |
4119 |
|
@@@@test:value: <name0/> |
4120 |
|
@@@test:domTree: |
4121 |
|
document { |
4122 |
|
element { |
4123 |
|
node-name: 'name0'; |
4124 |
|
} |
4125 |
|
} |
4126 |
|
@@enImplNote: |
4127 |
|
@@@ddid: xml11name |
4128 |
|
@@@@: |
4129 |
|
{TODO:: XML 1.1 Name tests required |
4130 |
|
} |
4131 |
|
|
4132 |
|
@@XMLTest: |
4133 |
|
@@@QName: xp.content.mse.1.test |
4134 |
|
@@@DEnt: |
4135 |
|
@@@@test:value: |
4136 |
|
<p>]]></p> |
4137 |
|
@@@c:erred: |
4138 |
|
<[[xp|wf-syntax-error]]> { (1, 4)..(1, 6); } |
4139 |
|
@@XMLTest: |
4140 |
|
@@@QName: xp.content.mse.2.test |
4141 |
|
@@@DEnt: |
4142 |
|
@@@@test:value: |
4143 |
|
<p>aaa]]>bbb</p> |
4144 |
|
@@@c:erred: |
4145 |
|
<[[xp|wf-syntax-error]]> { (1, 7)..(1, 9); } |
4146 |
|
|
4147 |
|
@@XMLTest: |
4148 |
|
@@@QName: xp.root.comment.1.test |
4149 |
|
@@@DEnt: |
4150 |
|
@@@@test:value: |
4151 |
|
<!--comment data--> |
4152 |
|
<p/> |
4153 |
|
@@@test:domTree: |
4154 |
|
document { |
4155 |
|
comment { |
4156 |
|
data: 'comment data'; |
4157 |
|
} |
4158 |
|
element { } |
4159 |
|
} |
4160 |
|
@@XMLTest: |
4161 |
|
@@@QName: xp.root.comment.2.test |
4162 |
|
@@@DEnt: |
4163 |
|
@@@@test:value: |
4164 |
|
<!----> |
4165 |
|
<p/> |
4166 |
|
@@@test:domTree: |
4167 |
|
document { |
4168 |
|
comment { |
4169 |
|
data: ''; |
4170 |
|
} |
4171 |
|
element { } |
4172 |
|
} |
4173 |
|
@@XMLTest: |
4174 |
|
@@@QName: xp.root.after.pi.comment.1.test |
4175 |
|
@@@DEnt: |
4176 |
|
@@@@test:value: |
4177 |
|
<?pi?> |
4178 |
|
<!--comment data--> |
4179 |
|
<p/> |
4180 |
|
@@@test:domTree: |
4181 |
|
document { |
4182 |
|
pi { } |
4183 |
|
comment { |
4184 |
|
data: 'comment data'; |
4185 |
|
} |
4186 |
|
element { } |
4187 |
|
} |
4188 |
|
@@XMLTest: |
4189 |
|
@@@QName: xp.root.after.pi.comment.2.test |
4190 |
|
@@@DEnt: |
4191 |
|
@@@@test:value: |
4192 |
|
<?pi?> |
4193 |
|
<!----> |
4194 |
|
<p/> |
4195 |
|
@@@test:domTree: |
4196 |
|
document { |
4197 |
|
pi { } |
4198 |
|
comment { |
4199 |
|
data: ''; |
4200 |
|
} |
4201 |
|
element { } |
4202 |
|
} |
4203 |
|
@@XMLTest: |
4204 |
|
@@@QName: xp.root.after.element.comment.1.test |
4205 |
|
@@@DEnt: |
4206 |
|
@@@@test:value: |
4207 |
|
<p/> |
4208 |
|
<!--comment data--> |
4209 |
|
@@@test:domTree: |
4210 |
|
document { |
4211 |
|
element { } |
4212 |
|
comment { |
4213 |
|
data: 'comment data'; |
4214 |
|
} |
4215 |
|
} |
4216 |
|
@@XMLTest: |
4217 |
|
@@@QName: xp.root.after.element.comment.2.test |
4218 |
|
@@@DEnt: |
4219 |
|
@@@@test:value: |
4220 |
|
<p/> |
4221 |
|
<!----> |
4222 |
|
@@@test:domTree: |
4223 |
|
document { |
4224 |
|
element { } |
4225 |
|
comment { |
4226 |
|
data: ''; |
4227 |
|
} |
4228 |
|
} |
4229 |
|
@@XMLTest: |
4230 |
|
@@@QName: xp.doctype.intsubset.comment.1.test |
4231 |
|
@@@DEnt: |
4232 |
|
@@@@test:value: |
4233 |
|
<!DOCTYPE a [ |
4234 |
|
<!--comment data--> |
4235 |
|
]> |
4236 |
|
<p/> |
4237 |
|
@@@test:domTree: |
4238 |
|
document { |
4239 |
|
document-type { } |
4240 |
|
element { } |
4241 |
|
} |
4242 |
|
@@XMLTest: |
4243 |
|
@@@QName: xp.doctype.intsubset.comment.2.test |
4244 |
|
@@@DEnt: |
4245 |
|
@@@@test:value: |
4246 |
|
<!DOCTYPE a [ |
4247 |
|
<!----> |
4248 |
|
]> |
4249 |
|
<p/> |
4250 |
|
@@@test:domTree: |
4251 |
|
document { |
4252 |
|
document-type { } |
4253 |
|
element { } |
4254 |
|
} |
4255 |
|
@@XMLTest: |
4256 |
|
@@@QName: xp.doctype.intsubset.comment.3.test |
4257 |
|
@@@DEnt: |
4258 |
|
@@@@test:value: |
4259 |
|
<!DOCTYPE a [ |
4260 |
|
<?pi?> |
4261 |
|
<!----> |
4262 |
|
]> |
4263 |
|
<p/> |
4264 |
|
@@@test:domTree: |
4265 |
|
document { |
4266 |
|
document-type { |
4267 |
|
pi { } |
4268 |
|
} |
4269 |
|
element { } |
4270 |
|
} |
4271 |
|
@@XMLTest: |
4272 |
|
@@@QName: xp.content.comment.1.test |
4273 |
|
@@@DEnt: |
4274 |
|
@@@@test:value: |
4275 |
|
<p><!--comment data--></p> |
4276 |
|
@@@test:domTree: |
4277 |
|
document { |
4278 |
|
element { |
4279 |
|
comment { |
4280 |
|
data: 'comment data'; |
4281 |
|
} |
4282 |
|
} |
4283 |
|
} |
4284 |
|
@@XMLTest: |
4285 |
|
@@@QName: xp.content.comment.2.test |
4286 |
|
@@@DEnt: |
4287 |
|
@@@@test:value: |
4288 |
|
<p><!----></p> |
4289 |
|
@@@test:domTree: |
4290 |
|
document { |
4291 |
|
element { |
4292 |
|
comment { |
4293 |
|
data: ''; |
4294 |
|
} |
4295 |
|
} |
4296 |
|
} |
4297 |
|
@@XMLTest: |
4298 |
|
@@@QName: xp.content.comment.3.test |
4299 |
|
@@@DEnt: |
4300 |
|
@@@@test:value: |
4301 |
|
<p>aaaaa<!---->bbbbb</p> |
4302 |
|
@@@test:domTree: |
4303 |
|
document { |
4304 |
|
element { |
4305 |
|
text { |
4306 |
|
data: 'aaaaa'; |
4307 |
|
} |
4308 |
|
comment { |
4309 |
|
data: ''; |
4310 |
|
} |
4311 |
|
text { |
4312 |
|
data: 'bbbbb'; |
4313 |
|
} |
4314 |
|
} |
4315 |
|
} |
4316 |
|
@@XMLTest: |
4317 |
|
@@@QName: xp.content.comment.--.1.test |
4318 |
|
@@@DEnt: |
4319 |
|
@@@@test:value: |
4320 |
|
<p><!--data--data--></p> |
4321 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (1, 12)..(1, 17); } |
4322 |
|
@@XMLTest: |
4323 |
|
@@@QName: xp.content.comment.---gt.test |
4324 |
|
@@@DEnt: |
4325 |
|
@@@@test:value: |
4326 |
|
<p><!--data---></p> |
4327 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (1, 12)..(1, 15); } |
4328 |
|
|
4329 |
@@XMLTest: |
@@XMLTest: |
4330 |
@@@QName: xp.xmldecl.version.1.0.test |
@@@QName: xp.xmldecl.version.1.0.test |
4941 |
<[[xp:wf-syntax-error]]> { (1, 3)..(1, 3); } |
<[[xp:wf-syntax-error]]> { (1, 3)..(1, 3); } |
4942 |
|
|
4943 |
@@XMLTest: |
@@XMLTest: |
4944 |
|
@@@QName: xp.cdatasection.empty.1.test |
4945 |
|
@@@DEnt: |
4946 |
|
@@@@test:value: |
4947 |
|
<p><![CDATA[]]></p> |
4948 |
|
@@@test:domTree: |
4949 |
|
document { |
4950 |
|
element { |
4951 |
|
cdata-section { |
4952 |
|
data: ''; |
4953 |
|
} |
4954 |
|
} |
4955 |
|
} |
4956 |
|
@@XMLTest: |
4957 |
|
@@@QName: xp.cdatasection.empty.2.test |
4958 |
|
@@@DEnt: |
4959 |
|
@@@@test:value: |
4960 |
|
<p>aa<![CDATA[]]>bb</p> |
4961 |
|
@@@test:domTree: |
4962 |
|
document { |
4963 |
|
element { |
4964 |
|
text { data: 'aa'; } |
4965 |
|
cdata-section { |
4966 |
|
data: ''; |
4967 |
|
} |
4968 |
|
text { data: 'bb'; } |
4969 |
|
} |
4970 |
|
} |
4971 |
|
@@XMLTest: |
4972 |
|
@@@QName: xp.cdatasection.1.test |
4973 |
|
@@@DEnt: |
4974 |
|
@@@@test:value: |
4975 |
|
<p><![CDATA[abcdefg]]></p> |
4976 |
|
@@@test:domTree: |
4977 |
|
document { |
4978 |
|
element { |
4979 |
|
cdata-section { |
4980 |
|
data: 'abcdefg'; |
4981 |
|
} |
4982 |
|
} |
4983 |
|
} |
4984 |
|
@@XMLTest: |
4985 |
|
@@@QName: xp.cdatasection.2.test |
4986 |
|
@@@DEnt: |
4987 |
|
@@@@test:value: |
4988 |
|
<p>aa<![CDATA[abcdefg]]>bb</p> |
4989 |
|
@@@test:domTree: |
4990 |
|
document { |
4991 |
|
element { |
4992 |
|
text { data: 'aa'; } |
4993 |
|
cdata-section { |
4994 |
|
data: 'abcdefg'; |
4995 |
|
} |
4996 |
|
text { data: 'bb'; } |
4997 |
|
} |
4998 |
|
} |
4999 |
|
@@XMLTest: |
5000 |
|
@@@QName: xp.cdatasection.ref.1.test |
5001 |
|
@@@DEnt: |
5002 |
|
@@@@test:value: |
5003 |
|
<p><![CDATA[a&2 %abc;&def;]]>b]]></p> |
5004 |
|
@@@test:domTree: |
5005 |
|
document { |
5006 |
|
element { |
5007 |
|
cdata-section { |
5008 |
|
data: 'a&2 %abc;&def;]]>b'; |
5009 |
|
} |
5010 |
|
} |
5011 |
|
} |
5012 |
|
@@XMLTest: |
5013 |
|
@@@QName: xp.cdatasection.in.general.entity.test |
5014 |
|
@@@DEnt: |
5015 |
|
@@@@test:value: |
5016 |
|
<!DOCTYPE p [ |
5017 |
|
<!ENTITY cdata "<![CDATA[text]]>"> |
5018 |
|
]> |
5019 |
|
<p>&cdata;</p> |
5020 |
|
@@@test:domTree: |
5021 |
|
document { |
5022 |
|
document-type { |
5023 |
|
general-entity { |
5024 |
|
node-name: 'cdata'; |
5025 |
|
cdata-section { |
5026 |
|
data: 'text'; |
5027 |
|
} |
5028 |
|
} |
5029 |
|
} |
5030 |
|
element { |
5031 |
|
general-entity-reference { |
5032 |
|
cdata-section { |
5033 |
|
data: 'text'; |
5034 |
|
} |
5035 |
|
} |
5036 |
|
} |
5037 |
|
} |
5038 |
|
@@XMLTest: |
5039 |
|
@@@QName: xp.cdatasection.no.mse.test |
5040 |
|
@@@DEnt: |
5041 |
|
@@@@test:value: |
5042 |
|
<p><![CDATA[text</p> |
5043 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (1, 21); } |
5044 |
|
@@XMLTest: |
5045 |
|
@@@QName: xp.cdatasection.nest.test |
5046 |
|
@@@DEnt: |
5047 |
|
@@@@test:value: |
5048 |
|
<p><![CDATA[text01<![CDATA[txt2]]>text3]]></p> |
5049 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (1, 40)..(1, 42); } |
5050 |
|
|
5051 |
|
@@XMLTest: |
5052 |
@@@QName: xp.doctype.empty.test |
@@@QName: xp.doctype.empty.test |
5053 |
@@@DEnt: |
@@@DEnt: |
5054 |
@@@@test:value: |
@@@@test:value: |
5069 |
text-content: ''; |
text-content: ''; |
5070 |
} |
} |
5071 |
} |
} |
5072 |
|
@@XMLTest: |
5073 |
|
@@@QName: xp.doctype.empty.after.document.element.test |
5074 |
|
@@@DEnt: |
5075 |
|
@@@@test:value: |
5076 |
|
<a></a> |
5077 |
|
<!DOCTYPE a> |
5078 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (2, 1)..(2, 12); } |
5079 |
|
@@XMLTest: |
5080 |
|
@@@QName: xp.doctype.empty.in.element.test |
5081 |
|
@@@DEnt: |
5082 |
|
@@@@test:value: |
5083 |
|
<a> |
5084 |
|
<!DOCTYPE a> |
5085 |
|
</a> |
5086 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (2, 1)..(2, 12); } |
5087 |
|
@@XMLTest: |
5088 |
|
@@@QName: xp.doctype.empty.dup.test |
5089 |
|
@@@DEnt: |
5090 |
|
@@@@test:value: |
5091 |
|
<!DOCTYPE a> |
5092 |
|
<!DOCTYPE a> |
5093 |
|
<a></a> |
5094 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (2, 1)..(2, 12); } |
5095 |
|
@@XMLTest: |
5096 |
|
@@@QName: xp.doctype.empty.in.intsubset.test |
5097 |
|
@@@DEnt: |
5098 |
|
@@@@test:value: |
5099 |
|
<!DOCTYPE a [ |
5100 |
|
<!DOCTYPE a> |
5101 |
|
]> |
5102 |
|
<a></a> |
5103 |
|
@@@c:erred: <[[xp|wf-syntax-error]]> { (2, 1)..(2, 12); } |
5104 |
|
|
5105 |
|
|
5106 |
@@XMLTest: |
@@XMLTest: |
5107 |
@@@QName: xp.doctype.intsubset.empty.test |
@@@QName: xp.doctype.intsubset.empty.test |
6127 |
if ($test_data->{dom_error}->{$err_type}) { |
if ($test_data->{dom_error}->{$err_type}) { |
6128 |
$test->assert_error_equals |
$test->assert_error_equals |
6129 |
(actual_value => $err, |
(actual_value => $err, |
6130 |
expected_hash => pop @{$test_data->{dom_error} |
expected_hash => shift @{$test_data->{dom_error} |
6131 |
->{$err_type}}); |
->{$err_type}}); |
6132 |
} else { # Uncatched error |
} else { # Uncatched error |
6133 |
warn $err; |
warn $err; |
6134 |
unless ($err->severity == <C::c|DOMError.SEVERITY_WARNING>) { |
unless ($err->severity == <C::c|DOMError.SEVERITY_WARNING>) { |
6236 |
my $__d = $token->{type} ne '#EOF' |
my $__d = $token->{type} ne '#EOF' |
6237 |
? $token->{location}->{char_d} |
? $token->{location}->{char_d} |
6238 |
: 0; |
: 0; |
6239 |
|
$__d -= $token->{location_d} if $token->{location_d}; |
6240 |
$result = { |
$result = { |
6241 |
utf32_offset => $token->{location}->{pos} - $__d, |
utf32_offset => $token->{location}->{pos} - $__d, |
6242 |
line_number => $token->{location}->{line}, |
line_number => $token->{location}->{line}, |