1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

Adding extra test files, just in case ... Daniel

This commit is contained in:
Daniel Veillard 2006-10-10 20:12:24 +00:00
parent a37a6ad91a
commit 166e1a9b59
7 changed files with 86 additions and 0 deletions

8
result/ent12 Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE root [
<!ENTITY foo "abc">
<!ENTITY bar "def">
]>
<root attribute="&foo;">
<element>&bar;</element>
</root>

10
result/ent12.rde Normal file
View File

@ -0,0 +1,10 @@
0 10 root 0 0
0 1 root 0 0
1 14 #text 0 1
1 1 element 0 0
2 3 #text 0 1 def
1 15 element 0 0
1 14 #text 0 1
0 15 root 0 0

10
result/ent12.rdr Normal file
View File

@ -0,0 +1,10 @@
0 10 root 0 0
0 1 root 0 0
1 14 #text 0 1
1 1 element 0 0
2 5 bar 0 0
1 15 element 0 0
1 14 #text 0 1
0 15 root 0 0

21
result/ent12.sax Normal file
View File

@ -0,0 +1,21 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(root, , )
SAX.entityDecl(foo, 1, (null), (null), abc)
SAX.getEntity(foo)
SAX.entityDecl(bar, 1, (null), (null), def)
SAX.getEntity(bar)
SAX.externalSubset(root, , )
SAX.getEntity(foo)
SAX.startElement(root, attribute='&foo;')
SAX.characters(
, 4)
SAX.startElement(element)
SAX.getEntity(bar)
SAX.characters(def, 3)
SAX.reference(bar)
SAX.endElement(element)
SAX.characters(
, 1)
SAX.endElement(root)
SAX.endDocument()

21
result/ent12.sax2 Normal file
View File

@ -0,0 +1,21 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(root, , )
SAX.entityDecl(foo, 1, (null), (null), abc)
SAX.getEntity(foo)
SAX.entityDecl(bar, 1, (null), (null), def)
SAX.getEntity(bar)
SAX.externalSubset(root, , )
SAX.getEntity(foo)
SAX.startElementNs(root, NULL, NULL, 0, 1, 0, attribute='&foo...', 5)
SAX.characters(
, 4)
SAX.startElementNs(element, NULL, NULL, 0, 0, 0)
SAX.getEntity(bar)
SAX.characters(def, 3)
SAX.reference(bar)
SAX.endElementNs(element, NULL, NULL)
SAX.characters(
, 1)
SAX.endElementNs(root, NULL, NULL)
SAX.endDocument()

8
result/noent/ent12 Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE root [
<!ENTITY foo "abc">
<!ENTITY bar "def">
]>
<root attribute="abc">
<element>def</element>
</root>

8
test/ent12 Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE root [
<!ENTITY foo 'abc'>
<!ENTITY bar 'def'>
]>
<root attribute="&foo;">
<element>&bar;</element>
</root>