[xml] xmlIndentTreeOutput



Hi, All!

I have a question about xmlIndentTreeOutput global parameter:
why do we need it in LibXML? It seems that the behavior is always
controlled by functions "format" parameter:

   if((format) && (xmlIndentTreeOutput)) {
       ...
   }

so in all cases you probably want to have xmlIndentTreeOutput = 1.
However, the default value for xmlIndentTreeOutput is 0 and I spent
a couple hours trying to understand why indent="yes" in <xsl:output />
does not work :)
I have two suggestions:
   1) remove xmlIndentTreeOutput completely (probably bad idea now
   because it breaks api)
   2) set default value to 1


Aleksey





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]