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

RE: Saxon + xalan - error

Subject: RE: Saxon + xalan - error
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 14 Jun 2004 14:01:35 +0100
sun.io.bytetochar
I can't reproduce this failure, with either Saxon 6.5.3 or Instant Saxon
6.5.3.

The message

Transform failed:  Connection timed out: connect

simply means that the W3 site is being unresponsive. Try again when it's
less busy, or make a local copy of the XHTML DTD and use that instead.

I suggest you switch to the full Saxon product (which uses the Sun JVM)
rather than continuing with Instant Saxon which uses the (now very ancient)
Microsoft Java VM.

Michael Kay 

> -----Original Message-----
> From: Angeshwar Deepak [mailto:angeshwar@xxxxxxxxx] 
> Sent: 14 June 2004 12:48
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Saxon + xalan - error
> 
> 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/ 
> 
> --+------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 


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.