[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: whitespace

Subject: Re: whitespace
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Wed, 29 May 2002 18:23:29 -0400
expected whitespace xsl
This example worked as expected - the whitespace was retained in front of
the "Mike" - on Win2000, using XML Cooktop (using the msxml3 processor).

Tom P

[ <normbishop1@xxxxxxxxxxxx>]
 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" />
      </xsl:template>
</xsl:stylesheet>

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

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



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


Current Thread
  • whitespace
    • normbishop1 - Tue, 28 May 2002 23:00:05 -0400 (EDT)
      • Mike Brown - Wed, 29 May 2002 00:07:56 -0400 (EDT)
      • <Possible follow-ups>
      • normbishop1 - Wed, 29 May 2002 17:31:44 -0400 (EDT)
        • Thomas B. Passin - Wed, 29 May 2002 18:33:46 -0400 (EDT) <=
        • J.Pietschmann - Wed, 29 May 2002 18:59:29 -0400 (EDT)
      • normbishop1 - Thu, 30 May 2002 13:34:28 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.