Skip to content

Commit

Permalink
Adding extra test files, just in case ... Daniel
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Veillard committed Oct 10, 2006
1 parent a37a6ad commit 166e1a9
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 0 deletions.
8 changes: 8 additions & 0 deletions result/ent12
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE root [
<!ENTITY foo "abc">
<!ENTITY bar "def">
]>
<root attribute="&foo;">
<element>&bar;</element>
</root>
10 changes: 10 additions & 0 deletions result/ent12.rde
@@ -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 changes: 10 additions & 0 deletions result/ent12.rdr
@@ -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 changes: 21 additions & 0 deletions result/ent12.sax
@@ -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 changes: 21 additions & 0 deletions result/ent12.sax2
@@ -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 changes: 8 additions & 0 deletions result/noent/ent12
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE root [
<!ENTITY foo "abc">
<!ENTITY bar "def">
]>
<root attribute="abc">
<element>def</element>
</root>
8 changes: 8 additions & 0 deletions test/ent12
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE root [
<!ENTITY foo 'abc'>
<!ENTITY bar 'def'>
]>
<root attribute="&foo;">
<element>&bar;</element>
</root>

0 comments on commit 166e1a9

Please sign in to comment.