Two Laptop Bag*
The moose likes XML and Related Technologies and the fly likes Instant Saxon (IE and text file) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Instant Saxon (IE and text file)" Watch "Instant Saxon (IE and text file)" New topic
Author

Instant Saxon (IE and text file)

Micheal Geadah
Greenhorn

Joined: Sep 01, 2003
Posts: 6
I am using oracle 8.1.7 database on windows2000 advanced server. I am using Instant saxon in order to transform XML documents into new XML documents. I am providing the Instant Saxon with the source XML document and XSL document. Its output in the IE6.0 is just fine like this:

But when i press view->source to see it in text file i get the following output:

Does the instant Saxon always do that??...Is there a way or maybe another processor in order to get the output in text file the same as IE6.0. Can i generate the file without the (encoding="utf-8") in the beginning of the file?
Thanks a lot...
EDIT: I put the XML into a CODE block in order to clean up the output a bit...
[ September 01, 2003: Message edited by: Lasse Koskela ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Oops. I just realized that the one-big-line-of-xml-elements was intentional, right (i.e. you were asking why Saxon produces the "ugly" output instead of nicely indented, human-readable output)?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Try adding indent="yes" to your <xslutput> element.
Micheal Geadah
Greenhorn

Joined: Sep 01, 2003
Posts: 6
Hi Lasse,
indent="yes" didn't work...
Is there another alternative???
Thanks...
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
That's strange. I tried a simple transformation with indent="yes" with a number of parsers (MSXSL, Xalan, Saxon, Instant Saxon, XT) and all of them put the output on different lines. There was however differences in line indentation (i.e. how many characters to pad with, if at all).
Are you possibly using an old version of Instant Saxon?
Micheal Geadah
Greenhorn

Joined: Sep 01, 2003
Posts: 6
It worked there was a problem with the header...
Do u happen to know how to insert a DATE from an xml file into a table using XSU?
Thanks a lot...
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
My answer would be "what is XSU"?
(I know it's Oracle's XML SQL Utility but only because I Googled for it...)
I would suggest asking the XSU question in our Oracle forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Instant Saxon (IE and text file)
 
Similar Threads
documentBuilderFactory parse problem
ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.2.2.GA/server/default/deploy/
HTTP status 404 error
servlets and xml
Need help regarding <p>