You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by "Sathasivam, Elayaraja" <el...@capgemini.com> on 2008/09/02 11:46:10 UTC

FW: xalan -i 1 : No difference in the output...: what's the useof the command xalan -i 1 ?

_________________________________________________________________
-----Original Message-----
From: Alberto Massari [mailto:amassari@datadirect.com] 
Sent: Tuesday, September 02, 2008 3:11 PM
To: c-users@xerces.apache.org
Subject: Re: xalan -i 1 : No difference in the output...: what's the
useof the command xalan -i 1 ?

This is the mailing list for Xerces: you need to post your question to 
the Xalan mailing list, xalan-c-users@xml.apache.org

Alberto


Sathasivam, Elayaraja wrote:
> XSLT: Version 1.0
>
> Processor: Xalan-C_1_8_0-windows_2000-msvc_60
> /xerces-c_2_5_0-windows_nt-msvc_60  
>
> Platform: Windows XP
>
>  
>
>  
>
> Command: xalan -i 1 -o Output.xml input.xml file.xsl
>
>  
>
> I am unable to find the difference by using the above command with -i
or
> without -i
>
>  
>
> Could any one explain.
>
>  
>
>  
>
> $ xalan ?
>
>             Xalan version 1.8.0.
>
>             Xerces version 2.5.0.
>
>             Usage: Xalan [options] source stylesheet
>
>             Options:
>
>               -a                    Use xml-stylesheet PI, not the
> 'stylesheet' argument
>
>               -e encoding           Force the specified encoding for
the
> output.
>
>               -i integer            Indent the specified amount.
>
>               -m                    Omit the META tag in HTML output.
>
>               -o filename           Write output to the specified
file.
>
>               -p name expression    Sets a stylesheet parameter.
>
>               -t                    Display timing information.
>
>               -u                    Disable escaping of URLs in HTML
> output.
>
>               -?                    Display this message.
>
>               -v                    Validates source documents.
>
>               -                     A dash as the 'source' argument
> reads from stdin.
>
>                                                 ('-' cannot be used
for
> both arguments.)
>
>  
>
>  
>
>  
>
>  
>
> Regards,
>
> Raja 
>
>  







This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this message.


Re: FW: xalan -i 1 : No difference in the output...: what's the useof the command xalan -i 1 ?

Posted by David Bertoni <db...@apache.org>.
Sathasivam, Elayaraja wrote:
> _________________________________________________________________
> -----Original Message-----
> From: Alberto Massari [mailto:amassari@datadirect.com] 
> Sent: Tuesday, September 02, 2008 3:11 PM
> To: c-users@xerces.apache.org
> Subject: Re: xalan -i 1 : No difference in the output...: what's the
> useof the command xalan -i 1 ?
> 
> This is the mailing list for Xerces: you need to post your question to 
> the Xalan mailing list, xalan-c-users@xml.apache.org
> 
> Alberto
> 
> 
> Sathasivam, Elayaraja wrote:
>> XSLT: Version 1.0
>>
>> Processor: Xalan-C_1_8_0-windows_2000-msvc_60
>> /xerces-c_2_5_0-windows_nt-msvc_60  
>>
>> Platform: Windows XP
>>
>> Command: xalan -i 1 -o Output.xml input.xml file.xsl
>>
>> I am unable to find the difference by using the above command with -i
> or
>> without -i
>>
>> Could any one explain.
The -i option is ignored for XML output unless you have an xsl:output 
instruction with the indent attribute specified:

<xsl:output method="xml" indent="yes" />

The XSLT recommendation explicitly states that indentation is disabled 
by default for XML output:

http://www.w3.org/TR/xslt#section-XML-Output-Method

"If the indent attribute has the value yes, then the xml output method 
may output whitespace in addition to the whitespace in the result tree 
(possibly based on whitespace stripped from either the source document 
or the stylesheet) in order to indent the result nicely; if the indent 
attribute has the value no, it should not output any additional 
whitespace. The default value is no. The xml output method should use an 
algorithm to output additional whitespace that ensures that the result 
if whitespace were to be stripped from the output using the process 
described in [3.4 Whitespace Stripping] with the set of 
whitespace-preserving elements consisting of just xsl:text would be the 
same when additional whitespace is output as when additional whitespace 
is not output."

Dave
>>
>>  
>>
>>  
>>
>> $ xalan ?
>>
>>             Xalan version 1.8.0.
>>
>>             Xerces version 2.5.0.
>>
>>             Usage: Xalan [options] source stylesheet
>>
>>             Options:
>>
>>               -a                    Use xml-stylesheet PI, not the
>> 'stylesheet' argument
>>
>>               -e encoding           Force the specified encoding for
> the
>> output.
>>
>>               -i integer            Indent the specified amount.
>>
>>               -m                    Omit the META tag in HTML output.
>>
>>               -o filename           Write output to the specified
> file.
>>               -p name expression    Sets a stylesheet parameter.
>>
>>               -t                    Display timing information.
>>
>>               -u                    Disable escaping of URLs in HTML
>> output.
>>
>>               -?                    Display this message.
>>
>>               -v                    Validates source documents.
>>
>>               -                     A dash as the 'source' argument
>> reads from stdin.
>>
>>                                                 ('-' cannot be used
> for
>> both arguments.)
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>> Regards,
>>
>> Raja 
>>
>>  
> 
> 
> 
> 
> 
> 
> 
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is 
> intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to 
> read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message 
> in error, please notify the sender immediately and delete all copies of this message.
>