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

OutputStreamWriter problem.

Subject: OutputStreamWriter problem.
From: "Scott Carlson" <Scott.Carlson@xxxxxxxxxxxxxxx>
Date: Tue, 2 May 2000 10:37:47 -0500
outputstreamwriter
I'm trying to use xalan on a 2.6 Solaris box, with the Java 1.2.2 JRE
installed.
I have tried this on a similiarly configured Linux machine (afaik), with no
problems.

I've included simple examples.

Can anybody point me in the right direction.  Thanks

Scott


$ java org.apache.xalan.xslt.Process -IN in.xml -XSL convert.xsl -OUT out
========= Parsing convert.xsl ==========
Parse of convert.xsl took 962 milliseconds
========= Parsing 05012000014352.xml ==========
Parse of in.xml took 165 milliseconds
Exception in thread "main" java.lang.NullPointerException
        at sun.io.Converters.getConverterClass(Converters.java:83)
        at sun.io.Converters.newConverter(Converters.java:143)
        at
sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:71)
        at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:78)
        at
org.apache.xalan.xslt.StylesheetRoot.makeSAXSerializer(StylesheetRoot.java:5
59)
        at org.apache.xalan.xslt.StylesheetRoot.process(Compiled Code)
        at org.apache.xalan.xslt.Process.main(Compiled Code)
$


in.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<output>
<message type="info">
<time>05/01/2000 01:43:52</time>
<str>this is a string</str>
</message>
<message type="info">
<time>05/01/2000 01:50:38</time>
<str>This is a string also</str>
</message>
</output>

convert.xsl:
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="output">
<xsl:for-each select="message">
      <xsl:value-of select="str"/><xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.