Re: [xsl] Result still indented despite indent="no"

Subject: Re: [xsl] Result still indented despite indent="no"
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 21 Feb 2005 17:08:29 GMT
  But it shows a bug with xsl:preserve-space
  instruction. Do you agree that it is bug?

It's not a bug in xsl:preserve-space (or any part of the XSLT engine), no.
The bug is in the XML parser. But even there it's hard to say it's a
bug as the XML spec is famously fuzzy on any kind of conformance or
reporting requirements. Also XSLT does not require that the input is
made by an xml parser. In the case of msxsl the input is an MSXML DOM
object, whether that is made by parsing an XML file, or constructed via
dom calls or by parsing (for Michael) a GEDCOM parser that generates a
DOM, it doesn't matter to the XSLT engine. Given that input
xsl:preserve-space and xsl:strip-space work as specified to preserve or
remove white space nodes. But you can not preserve nodes that are not
there.


  You are saying IE 6's default setting for
  preservewhitespace property is "false".

yes

   Is it possible to make it true? 

No. Not from the xml-stylesheet PI, if you call msxml from within
javascript (or vbscript) within an html page, you can set it to
anything you like.


  It seems, its possible to change preserveWhiteSpace
  property with script only. 


exactly so, yes.



  I feel, this will cause problem to develop
  cross-browser applications..

yes.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread