Hi,
I downloaded the latest version of the Xalan developer release.
I do have JDK1.3 as my runtime environment.
i am trying to compile a simple program at samples directory and getting
following error.
The error indicates that something wrong with the namespace declaration
in xsl file. But i am using xml and xsl file bundled with this download
and the namespace declaration seem to be perfect.
for ur kind review,
D:\xsl>cd samples
D:\xsl\samples>cd simpletransform
D:\xsl\samples\SimpleTransform>javac SimpleTransform.java
D:\xsl\samples\SimpleTransform>java SimpleTransform
Exception in thread "main"
javax.xml.transform.TransformerConfigurationException: Namespace not
supported by SAXParser
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transfo
rmerFactoryImpl.java:764)
at SimpleTransform.main(SimpleTransform.java:90)
---------
javax.xml.transform.TransformerConfigurationException: Namespace not
supported by SAXParser
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transform
erFactoryImpl.java:939)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transfo
rmerFactoryImpl.java:747)
at SimpleTransform.main(SimpleTransform.java:90)
---------
javax.xml.transform.TransformerException: Namespace not supported by
SAXParser
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transform
erFactoryImpl.java:935)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transfo
rmerFactoryImpl.java:747)
at SimpleTransform.main(SimpleTransform.java:90)
The following are the lines from the xsl file.
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes"/>
The following are the lines from the xml file
<?xml version="1.0" encoding="UTF-8"?>
<Class>
<Order Name="TINAMIFORMES">
<Family Name="TINAMIDAE">
<Species Scientific_Name="Tinamus major"> Great
Tinamou.</Species>
<Species Scientific_Name="Nothocercus">Highland
Tinamou.</Species>
<Species Scientific_Name="Crypturellus soui">Little
Tinamou.</Species>
<Species Scientific_Name="Crypturellus cinnamomeus">Thicket
Tinamou.</Species>
<Species Scientific_Name="Crypturellus
boucardi">Slaty-breasted Tinamou.</Species>
<Species Scientific_Name="Crypturellus kerriae">Choco
Tinamou.</Species>
</Family>
</Order>
Regards,
mahendran