Code:
apt-get install libxml2-utils
Hint: your document is not valid XML:
Code:
toni@mario:~/work/pub/tst$ xmllint --noout foo.xml
foo.xml:2: parser warning : xmlParsePITarget: invalid name prefix 'xml'
<?xml:stylesheet type="text/xsl" href="LogFile.xsl"?>
^
toni@mario:~/work/pub/tst$ xmllint --noout fixed/foo.xml
toni@mario:~/work/pub/tst$ xmllint --noout --relaxng xslt.rng foo.xsl
foo.xsl:2: element stylesheet: Relax-NG validity error : Element stylesheet failed to validate attributes
foo.xsl fails to validate
toni@mario:~/work/pub/tst$ xmllint --noout --relaxng xslt.rng fixed/foo.xsl
fixed/foo.xsl validates
toni@mario:~/work/pub/tst$ diff -ub foo.xml fixed/foo.xml
--- foo.xml 2004-12-07 14:06:36.000000000 +0200
+++ fixed/foo.xml 2004-12-07 14:15:40.000000000 +0200
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<?xml:stylesheet type="text/xsl" href="foo.xsl"?>
+<?xml-stylesheet type="text/xsl" href="foo.xsl"?>
<LogFile>
<Log Date="Datecheck">
<TestCase Result ="Passed"><Column1>1</Column1><Column2>2</Column2><Column3>3</Column3></TestCase>
toni@mario:~/work/pub/tst$ diff -ub foo.xsl fixed/foo.xsl
--- foo.xsl 2004-12-07 14:07:06.000000000 +0200
+++ fixed/foo.xsl 2004-12-07 14:02:15.000000000 +0200
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<HTML>
<HEAD>
toni@mario:~/work/pub/tst$