Subject: Re: [xsl] Result still indented despite indent="no" From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 21 Feb 2005 12:28:21 GMT |
> I agree, which prompted my post asking if anyone knew how to trigger this > in the browser environment. simplest (which is what I do) is to give in to overwhelming force and stick xml:space="preserve" on the top level element of your source file. Then styling with a stylesheet refenced via the xml-styleshet Pi more or less works as expected. Plan b is to use xml-stylesheet PI to reference a styleseet that generates a small html file that uses javascript to reload the xml source after setting preserveWhiteSpace. This also works but I gave up with this in the end as it just seems wrong/expensive (you download and parse the file the first time only to throw it away) and also at the time the script interface on mozilla was under development /constant change so getting it work cross browser was a pain, although I gather that latter problem is no longer there. 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Result still indented des, G. Ken Holman | Thread | RE: [xsl] Result still indented des, Mukul Gandhi |
RE: [xsl] Result still indented des, G. Ken Holman | Date | RE: [xsl] Result still indented des, Mukul Gandhi |
Month |