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

Re: another whitespace questions (in XML this time)

Subject: Re: another whitespace questions (in XML this time)
From: "Runni Vermel" <runni@xxxxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 12:49:07 -0700
xml cut whitespace
beautiful, it worked. I did have to a bunch of
<xsl:text>
</xsl:text>
(for the line breaks), but it does work. hmm, I did try this tag before,
specifying EACH element I wanted to cut the white space out, but not the *
thingie :)
thanks bob.

----- Original Message -----
From: "Robert C. Lyons" <boblyons@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, July 30, 2001 12:32 PM
Subject: RE:  another whitespace questions (in XML this time)


> Hi Runni.
>
> Try adding the following instruction to your
> stylesheet:
>
>  <xsl:strip-space elements="*"/>
>
> Hope this helps.
>
> Bob
>
> <sig name    = 'Bob Lyons'
>      title   = 'XML Consultant'
>      company = 'Unidex, Inc.'
>      phone   = '+1-732-975-9877'
>      email   = 'boblyons@xxxxxxxxxx'
>      url     = 'http://www.unidex.com/'
>      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):
>
> <notification>
>  <event>
>   <date>07/26/2001</date>
>   <venueId>1234</venueId>
>   <venueName>VenueName1</venueName>
>   <eventTitle>title1</eventTitle>
>   <price>1</price>
>   <startTime>7:45p</startTime>
>   <artist>fgdfg</artist>
>   <genre>GenreComing1</genre>
>   <description>desc1</description>
>  </event>
>  <venueInfo>
>   <venueId>venueid3</venueId>
>   <venueName>venueName</venueName>
>   <venueAddress>address3</venueAddress>
>   <venueCity>city3</venueCity>
>   <venueState>state3</venueState>
>   <venueZip>zip3</venueZip>
>   <venuePhoneOffice>office phone3</venuePhoneOffice>
>   <venuePhonePublic>public phone3</venuePhonePublic>
>   <eventDate value="event1">event3</eventDate>
>   <eventDate value="event2">event3</eventDate>
>  </venueInfo>
> </notification>
>
> 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?
>
> Runni
>
>
>  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

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.