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

Re: Where are xsl:messages sent in JAXP?

Subject: Re: Where are xsl:messages sent in JAXP?
From: Kenneth Stephen <marvin.the.cynical.robot@xxxxxxxxx>
Date: Thu, 23 Sep 2004 08:41:30 -0500
jaxp exceptions
On Wed, 22 Sep 2004 11:19:35 -0700 (PDT), Charlie Consumer
<faceless1976@xxxxxxxxx> wrote:
> Hi,
> 
> Sorry if this is not the forum to ask these questions.
>  Please point me in the right direction if there is a
> better place to ask this.
> 
> I would like to use the xsl:message feature to send
> progress information back to a Swing UI while my XSL
> is performing a transformation.  I was wondering if I
> could hook my client code into the XSL Transform
> object to receive messages sent from the XSL using
> xsl:message?
> 
> I think I know the answer to this one, but is there a
> way to hook the Transform API so I can ask for user's
> input while transforming their document?  For example,
> if I find some erroneous data it would be nice if I
> could prompt the user and ask if it's ok if repair his
> document.  A simple boolean returned from the user
> back to the XSL script would suffice.  I might be able
> to do it with a document() call.  Use a URIResolver to
> hook the document() function, and return an XML
> document like <true/> or <false/> back to the
> stylesheet.  Sounds kinda hacky, but it could work.

Hi,

    The behaviour of xsl:message is implementation defined. Under
Xalan, it goes to stdout I believe. However, under Xalan, one can also
implement the interface javax.xml.transform.ErrorListener and use that
to capture the exception event and then do as you please.

Regards,
Kenneth

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.