[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Saxon + xalan - error

Subject: Saxon + xalan - error
From: Angeshwar Deepak <angeshwar@xxxxxxxxx>
Date: Mon, 14 Jun 2004 05:47:34 -0700 (PDT)
saxon xalan
Hi,

I have the xhtml and xsl files as follow


a.xhtml

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title> XHTML sample </title>
 </head>
 <body>
 <p name="who">Anand</p>
 <p name="job">Web Developer</p>
 <p name="area">California</p>

 </body>
 </html>

a.xsl

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xhtml="http://www.w3.org/1999/xhtml">

    <xsl:output method="text"/>

   <xsl:template match="xhtml:title">

        <xsl:text>title: </xsl:text>
        <xsl:value-of select="."/>
        <xsl:text>&#10;</xsl:text>
    </xsl:template>

    <xsl:template match="p">
        <xsl:text>paragraph "</xsl:text>
        <xsl:value-of select="@name"/>
        <xsl:text>": </xsl:text>
        <xsl:value-of select="."/>
        <xsl:text>&#10;</xsl:text>
    </xsl:template>
</xsl:stylesheet>

When I run with saxon.exe I get the following error.

D:\june13>saxon a.xhtml a.xsl  > output.html
Transform failed:  =UTF-8 [Could not load class:
sun.io.ByteToChar=UTF-8]

i tried with 

D:\june13>java com.icl.saxon.StyleSheet a.xhtml a.xsl 
> output.html
Transform failed:  Connection timed out: connect

I had previously tried to run the same piece of 
coding with xalan and I got a strage error there also 
an error.

D:\june13>java org.apache.xalan.xslt.Process -IN
a.xhtml -XSL a.xsl -OUT a.html

file:///D:/june13/a.xhtml; Line #2; Column #-1; XSLT
Error (javax.xml.transform.TransformerException):
External entity n
ot found:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd".

However the code works fine with msxsl.exe. But I
cannot use a microsoft product in 
my project, so I have to stick to xalan or saxon, but
in either of the case I am struck up!!!

I checked the classpath of jar files and they are also
fine.
Where could I be wrong. Some one please help.

I am using j2sdk1.4.2_04.

bye,
with regards,
Deepak.



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.