diff options
Diffstat (limited to 'test/XPath/docs')
-rw-r--r-- | test/XPath/docs/chapters | 28 | ||||
-rw-r--r-- | test/XPath/docs/id | 28 | ||||
-rw-r--r-- | test/XPath/docs/simple | 12 | ||||
-rw-r--r-- | test/XPath/docs/str | 9 | ||||
-rw-r--r-- | test/XPath/docs/usr1 | 12 | ||||
-rw-r--r-- | test/XPath/docs/vid | 43 |
6 files changed, 132 insertions, 0 deletions
diff --git a/test/XPath/docs/chapters b/test/XPath/docs/chapters new file mode 100644 index 0000000..c48f65e --- /dev/null +++ b/test/XPath/docs/chapters @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<EXAMPLE prop1="gnome is great" prop2="& linux too"> + <head> + <title>Welcome to Gnome</title> + </head> + <chapter id="chapter1"> + <title>The Linux adventure</title> + <p>bla bla bla ...</p> + <image href="linus.gif"/> + <p>...</p> + </chapter> + <chapter id="chapter2"> + <title>Chapter 2</title> + <p>this is chapter 2 ...</p> + </chapter> + <chapter id="chapter3"> + <title>Chapter 3</title> + <p>this is chapter 3 ...</p> + </chapter> + <chapter id="chapter4"> + <title>Chapter 4</title> + <p>this is chapter 4 ...</p> + </chapter> + <chapter id="chapter5"> + <title>Chapter 5</title> + <p>this is chapter 5 ...</p> + </chapter> +</EXAMPLE> diff --git a/test/XPath/docs/id b/test/XPath/docs/id new file mode 100644 index 0000000..4b6659f --- /dev/null +++ b/test/XPath/docs/id @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<EXAMPLE id="root" prop1="gnome is great" prop2="& linux too"> + <head id="head"> + <title>Welcome to Gnome</title> + </head> + <chapter id="chapter1"> + <title>The Linux adventure</title> + <p>bla bla bla ...</p> + <image href="linus.gif"/> + <p>...</p> + </chapter> + <chapter id="chapter2"> + <title>Chapter 2</title> + <p>this is chapter 2 ...</p> + </chapter> + <chapter id="chapter3"> + <title>Chapter 3</title> + <p>this is chapter 3 ...</p> + </chapter> + <chapter id="chapter4"> + <title>Chapter 4</title> + <p>this is chapter 4 ...</p> + </chapter> + <chapter id="chapter5"> + <title>Chapter 5</title> + <p>this is chapter 5 ...</p> + </chapter> +</EXAMPLE> diff --git a/test/XPath/docs/simple b/test/XPath/docs/simple new file mode 100644 index 0000000..ca665a2 --- /dev/null +++ b/test/XPath/docs/simple @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<EXAMPLE prop1="gnome is great" prop2="& linux too"> + <head> + <title>Welcome to Gnome</title> + </head> + <chapter> + <title>The Linux adventure</title> + <p>bla bla bla ...</p> + <image href="linus.gif"/> + <p>...</p> + </chapter> +</EXAMPLE> diff --git a/test/XPath/docs/str b/test/XPath/docs/str new file mode 100644 index 0000000..547e54d --- /dev/null +++ b/test/XPath/docs/str @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<chapter> + <p>a simple test</p> + <p>multiple tests</p> + <p>a diff<em>i</em>cult one</p> + <p><p>a span</p>n<p>ing one</p></p> + <p><p>and an unbal</p><empty/>anced test</p> + <p>for empty string <seq>123</seq></p> +</chapter> diff --git a/test/XPath/docs/usr1 b/test/XPath/docs/usr1 new file mode 100644 index 0000000..44c7529 --- /dev/null +++ b/test/XPath/docs/usr1 @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<BODY> +<DECLARACION importador="123456789" fecha="08/09/2000" +monto_factura="100.09"> +<ITEM monto="50.12" divisa="DOL"> +<SUFIJO codigo="NL34" valor="negro"/> +<SUFIJO codigo="AS34" valor="grande"/> +</ITEM> +</DECLARACION> +<FIRMA>N</FIRMA> +</BODY> + diff --git a/test/XPath/docs/vid b/test/XPath/docs/vid new file mode 100644 index 0000000..cdb7437 --- /dev/null +++ b/test/XPath/docs/vid @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<!DOCTYPE iddemo [ +<!ELEMENT iddemo (head?, (chapter)*)> +<!ATTLIST iddemo id ID #IMPLIED> +<!ELEMENT head (title?, (p)*)> +<!ATTLIST head id ID #IMPLIED> +<!ELEMENT chapter (title?, (p | image)*)> +<!ATTLIST chapter id ID #IMPLIED> +<!ELEMENT image EMPTY> +<!ATTLIST image href CDATA #IMPLIED> +<!ELEMENT title (#PCDATA)> +<!ELEMENT p (#PCDATA)> +]> + +<iddemo> + <head> + <title>Welcome to Gnome</title> + </head> + <chapter id="chapter1"> + <title>The Linux adventure</title> + <p>bla bla bla ...</p> + <image href="linus.gif"/> + <p>...</p> + <p>third p</p> + <p>fourth p</p> + </chapter> + <chapter id="chapter2"> + <title>Chapter 2</title> + <p>this is chapter 2 ...</p> + </chapter> + <chapter id="chapter3"> + <title>Chapter 3</title> + <p>this is chapter 3 ...</p> + </chapter> + <chapter id="chapter4"> + <title>Chapter 4</title> + <p>this is chapter 4 ...</p> + </chapter> + <chapter id="chapter5"> + <title>Chapter 5</title> + <p>this is chapter 5 ...</p> + </chapter> +</iddemo> |