Subject: Re: AW: [xsl] Instant Saxon From: "michel geadah" <m_ace_g@xxxxxxxxxxx> Date: Mon, 01 Sep 2003 13:11:14 +0000 |
From: Markus Abt <abt@xxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: AW: [xsl] Instant Saxon Date: Mon, 1 Sep 2003 13:53:51 +0200
Hi Michel,
this is not saxon specific. The way saxon does that is correct, as it does not introduce whitespace nodes that are not allowed.
If additional whitespace nodes are ok for you, you may try: <xsl:output method="xml" indent="yes"/> in the beginning of your stylesheet. It will not look exactly like I.E.'s treeview, but may be ok for you.
For a different encoding, use the encoding attribute of <xsl:output>, for example: <xsl:output method="xml" indent="yes" encoding="iso-8859-1"/>
If you instead want utf-8 encoding but no encoding declaration in the result, then let me ask, why?
Regards, Markus __________________________ Markus Abt Comet Computer GmbH http://www.comet.de
---------- Von: michel geadah Gesendet: Montag, 1. September 2003 09:44 An: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Betreff: [xsl] Instant Saxon
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:
<?xml version="1.0" encoding="utf-8" ?> <WRATE_INDICATORS> <mappings> <RIND_CURR_CODE_1>119</RIND_CURR_CODE_1> <RIND_CURR_CODE_2>131</RIND_CURR_CODE_2> <RIND_INDICATOR>1</RIND_INDICATOR> </mappings> <mappings> <RIND_CURR_CODE_1>119</RIND_CURR_CODE_1> <RIND_CURR_CODE_2>136</RIND_CURR_CODE_2> <RIND_INDICATOR>1</RIND_INDICATOR> </mappings> </WRATE_INDICATORS>
But when i press view->source to see it in text file i get the following output:
<?xml version="1.0" encoding="utf-8"?><WRATE_INDICATORS><mappings><RIND_CURR_CODE_1>119</RIND_CURR_CODE_1><RIND_CURR_CODE_2>131</RIND_CURR_CODE_2><RIND_INDICATOR>1</RIND_INDICATOR></mappings><mappings><RIND_CURR_CODE_1>119</RIND_CURR_CODE_1><RIND_CURR_CODE_2>136</RIND_CURR_CODE_2><RIND_INDICATOR>1</RIND_INDICATOR></mappings></WRATE_INDICATORS>
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...
_________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] Instant Saxon, Markus Abt | Thread | Re: AW: [xsl] Instant Saxon, David Carlisle |
RE: [xsl] DATE FORMAT, Andrew Welch | Date | Re: AW: [xsl] Instant Saxon, David Carlisle |
Month |