Hi,
I do have same basic problems when using xslt and xpath with
saxon8. Below are xml, xsl, and cmd for my minimal test-case.
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="docv2_2.xsl"?>
<doc>
Test für XSLT 2.0
</doc>
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
encoding="UTF-8"
omit-xml-declaration="yes" />
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head><title>Test für XSLT 2.0</title>
<link rel="stylesheet" href="Doku.css" type="text/css" />
</head><body>
<h1><xsl:value-of select="." /></h1>
<xsl:value-of select="current-date" /><br />
</body></html>
</xsl:template>
</xsl:stylesheet>
java -jar C:\Programme\Saxon\saxon8.jar C:\staudinger\xml\docv2_2.xml
docv2_2.xsl
Now my problems:
- it seems the output encoding="UTF-8" is not producing
a <meta charset=UTF-8" /> as it should, but I'm unable
to figure out why (despite I have seen it a few days ago)!
I can see also uuml; instead of ü in the output, which
might be connected to the above.
- the function current-date seems to return a null string.
- empty xhtml tags are transformed into invalid sequences
like <br></br>
- I specified CLASSPATH C:\Programme\Saxon\saxon8.jar
(nothing else) as a system environment variable (winnt sp6)
to no effect: when I omit the CLASSPATH the cmd above
still works, and when I try java -jar saxon8.jar ... I get the msg
"Unable to access jarfile saxon8.jar" and Exit code: 1
- I would like to get a hint how to specify a minimum CLASSPATH
for this configuration: JDK 1.5 plus Saxon 8B.
I've installed java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
I like Saxon very much especially for being able to take a look on the output.
Is there any way to see what Firefox or IE6 produce?
Regards, Manfred Staudinger, Vienna
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--