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

Problem with API

Subject: Problem with API
From: "Michael Welter" <mike@xxxxxxxxxxxxxx>
Date: Thu, 18 Apr 2002 12:19:42 -0600
michael welter
I have an xsl stylesheet that works perfect when run from the command line
(org.apache.xalan.xslt.Process...)  However, I can't get it to work when
using the Java API.

Using the API, control is passed to the top-level template (<xsl:template
match="/">) where the <xsl:message>'s are printed.  This top-level template
contains <xsl:apply-templates select="Trades"/>, but control never gets to
the <xsl:template match="Trades"> template.  The incoming XML is simply
"<Trades/>".

When I change to <xsl:apply-templates/>, control is passed from the top
level to the  <xsl:template match="*"> template.

I'm reasonably certain that everything else is working correctly.  When I
call newTransformerHandler() with no parameters, the incoming XML is echo'd
back out (<Trades/>).  When I call newTransformerHandler( new
treamSource( "foo.xsl" ) ), I have the problem.

I'm using Xalan on Win2000.  I just installed j2sdk1.4.0 and removed Xalan
from the classpath, but the problem persists.

Has anyone had a similar experience?

Thanks for your help,
Mike


 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.