added regression test for old bug #127877 Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Mon, 17 May 2004 03:07:55 +0000 (03:07 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Mon, 17 May 2004 03:07:55 +0000 (03:07 +0000)
* tests/general/bug-151*, tests/docs/bug-151.xml,
  tests/general/Makefile.am, tests/docs/Makefile.am: added
  regression test for old bug #127877
Daniel

ChangeLog
tests/docs/bug-152.xml [new file with mode: 0644]
tests/general/Makefile.am
tests/general/bug-152.out [new file with mode: 0644]
tests/general/bug-152.xsl [new file with mode: 0644]

index cef977f..3484f94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun May 16 23:08:05 CEST 2004 Daniel Veillard <daniel@veillard.com>
+
+       * tests/general/bug-151*, tests/docs/bug-151.xml,
+         tests/general/Makefile.am, tests/docs/Makefile.am: added
+         regression test for old bug #127877
+
 Sun May 16 20:48:35 CEST 2004 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/transform.c: fixing bug #135542 about the DOCTYPE name
diff --git a/tests/docs/bug-152.xml b/tests/docs/bug-152.xml
new file mode 100644 (file)
index 0000000..69d62f2
--- /dev/null
@@ -0,0 +1 @@
+<doc/>
index 73f9a9b..5200c8b 100644 (file)
@@ -159,6 +159,7 @@ EXTRA_DIST = \
     bug-149.out bug-149.xsl \
     bug-150.out bug-150.xsl \
     bug-151.out bug-151.xsl \
+    bug-152.out bug-152.xsl \
     character.out character.xsl \
     character2.out character2.xsl \
     itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-152.out b/tests/general/bug-152.out
new file mode 100644 (file)
index 0000000..7bdd337
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="US-ASCII"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
+    <style type="text/css" media="all">@import
+"pretty_xhtml.css";</style>
+  </head>
+  <body>
+    <h1>foo</h1>
+  </body>
+</html>
diff --git a/tests/general/bug-152.xsl b/tests/general/bug-152.xsl
new file mode 100644 (file)
index 0000000..513d0c3
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:transform
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0" xmlns="http://www.w3.org/1999/xhtml">
+
+  <xsl:output 
+    method="xml"
+    version="1.0"
+    indent="yes"
+    encoding="US-ASCII"
+    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
+    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+    />
+
+  <xsl:template match="/">
+    <html>
+      <head>
+        <style type="text/css" media="all">@import
+"pretty_xhtml.css";</style>        
+      </head>
+      <body>
+        <h1>foo</h1>
+      </body>
+    </html>
+  </xsl:template>
+
+</xsl:transform>
+
+
+