Hi,
I'm a new user of Xalan and reasonably new to XML/XSLT.
I'm using the O'Reilly "XML in a nutshell", and trying to get the
basic transformations working.
One of the XSLT examples is similar to the following XML :
<?xml version="1.0"?>
<people>
<person born="1912" died="1954">
<name> <first_name>Alan</first_name> <last_name>Turing</last_name>
</name>
<profession>comp sci</profession>
<profession>math</profession>
</person>
<person born="1923" died="1988">
<name><first_name>Pat</first_name> <last_name>Top</last_name>
</name>
<profession>golf</profession>
<profession>carpenter</profession>
</person>
</people>
and the example ( page 138 example 8.2 )
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transforms" >
</xsl:stylesheet>
and running Xalan gives me :
$ Xalan people.xml t.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transforms"
version="1.0"/>
but the book tells me I should expect :
<?xml version="1.0" encoding="UTF-8"?>
Alan Turing
comp sci
math
Pat Top
golf
carpenter
I even tried using xalan-j but got the following error :
file:///home/yamed/tmp/xalan-j_2_5_D1/bin/../../translate.xsl; Line #2; Column
#82; XSLT Error (javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: stylesheet requires attribute:
version
What am I doing wrong ?
CPH