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

Re: [saxon - Help] SystemID always empty String

Subject: Re: [saxon - Help] SystemID always empty String
From: Johannes Neubauer <johannes.neubauer@xxxxxxxxxxxxxxxxx>
Date: Mon, 18 Feb 2008 13:28:50 +0100
Re:  [saxon - Help] SystemID always empty String
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Kay schrieb:
| You need to
| ensure that setSystemId() has been called on the Source representing the
| stylesheet file.

That saved the day ;). Thanks! To Florent Georges, too! It was my fault.
I had a transformation pipe like this:

[code]
InputSource isource = new InputSource(href); //<-- the system id
Source source = new SAXSource(anXMLReader, isource);
ByteArrayOutputStream out = new ByteArrayOutputStream();
Result result = new StreamResult(out);
Transformer transform = firstTemplates.newTransformer();
transform.transform(source, result);
source = new StreamSource(new ByteArrayInputStream(out.toByteArray()));
//<-- Here I forgot source.setSystemID()
Templates secondTemplates = saxFactory.newTemplates(source); //<-- here
// the errors occured and of course I had no system id.
// ...
[/code]

By the way: Is that the "preferable" way of piping a transformation
(Using ByteArryOut- and -InputStreams)?

wfg,
Jonny.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHuXoCGaEJacf6i/cRAk65AJ0bTGWdG66CXgX8Bzk1xv9hskNROwCeODyc
zNkw/TmiFIcc96+WsVba5Lc=
=oJ03
-----END PGP SIGNATURE-----

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.