RE: [xsl] another whitespace questions (in XML this time)

Subject: RE: [xsl] another whitespace questions (in XML this time)
From: "Robert C. Lyons" <boblyons@xxxxxxxxxx>
Date: Mon, 30 Jul 2001 15:32:15 -0400
Hi Runni.

Try adding the following instruction to your

 <xsl:strip-space elements="*"/>

Hope this helps.


<sig name    = 'Bob Lyons'
     title   = 'XML Consultant'
     company = 'Unidex, Inc.'
     phone   = '+1-732-975-9877'
     email   = 'boblyons@xxxxxxxxxx'
     url     = ''
     product = 'XML Convert: transforms flat files to XML and vice versa' />

-----Original Message-----

so, after going through all of the whitespace emails from this weekend, and
going through the QA on the site, I can't seem to find anyone with the same
problem I'm having.
I'm using xsl to create a .txt file so I need to have maximum control over
white space. I put <xsl:output method="text" /> on the top of the xsl file,
and I'm wrapping every single text I have with <xsl:text>text</xsl:text>
elements. however, since my XML file is indented with tabs, those show up on
the some of the elements, and then they don't show up on others. xml file
(the short SHORT version):

  <venuePhoneOffice>office phone3</venuePhoneOffice>
  <venuePhonePublic>public phone3</venuePhonePublic>
  <eventDate value="event1">event3</eventDate>
  <eventDate value="event2">event3</eventDate>

the venueInfo stuff works beautifully, and DOES NOT indent. the event stuf
does. nothing i do in the xsl file seems to matter to the results - they are
both written in essentially the same way..

I'm using xalan java parser.
any suggestions?


 XSL-List info and archive:

Current Thread