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

RE: xalan-j2 D7: StreamSource cannot be kept?

Subject: RE: xalan-j2 D7: StreamSource cannot be kept?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 10 Aug 2001 12:08:55 +0100
saxsource bytes consumed
>
> "Michael Kay" <mhkay@xxxxxxxxxxxx> wrote:
> > The JAXP 1.1 spec is rather remiss in that it doesn't say
> which kinds of
> > Source object are consumed by supplying them to a
> transformation. But I
> > think it's reasonable to assume that a StreamSource or
> SAXSource can only
> be
> > used once.
>
> Hmm... you really ought to be able to use a Source as many
> times as you wish (even if the JAXP 1.1 spec is not specific about it).

What I really meant was that in supplying a StreamSource as the input to a
transformation, you expect the state of the underlying InputStream to
change. Are you suggesting that the processor should mark() the current
position of the underlying InputStream at the time it is supplied, and
reset() that position on completion? What if markSupported() for the
InputStream is false?

Even then, there seem to be other things in the contract that have been left
unspecified, for example I think the processor can reasonably expect that
no-one else will be reading bytes off the InputStream at the same time...

Mike Kay




 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.