[xsl] whitespace

Subject: [xsl] whitespace
From: normbishop1@xxxxxxxxxxxx
Date: Wed, 29 May 2002 17:21:20 -0400
 I am attaching the simplest version of the xsl and xml files.

<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >

    <xsl:output method="text" version="1.0" indent="yes" />

     <xsl:template match ="/address" xml:space="preserve">
         <xsl:value-of select="firstname" />  

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type='text/xsl' href='test.xsl'?>
<address id="1234">
        <firstname>      Mike</firstname>    

Thanks in advance!

Mike Brown wrote:

normbishop1@xxxxxxxxxxxx wrote:
I've been struggling with yet another problem :(.  Why does this white space get truncated when transformation takes place?  I do have xml:space="preserve" in the xsl file.   The xml line looks like this: 
<firstname>   Mike</firstname>  
Under no circumstances should the spaces before the "Mike" disappear, but I'm
not even clear on whether that's what you've got in the source or if that's
what you're seeing in the output. Explain what XSLT processor you are using
and reduce the problem to a simple, reproducible test case if you can.

   - Mike

Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread