Subject: Re: [xsl] another whitespace questions (in XML this time) From: "Runni Vermel" <runni@xxxxxxxxxxxxxx> Date: Mon, 30 Jul 2001 13:27:09 -0700 |
hmm, I don't have any whitespace only nodes, so that one's out. I (already) rewrote most of the xsl file to work with the <xsl:strip-space elements="*"/>, so the can't (and don't really want to ;) retrieve the code... this is a good solution though.. thanks, Runni ----- Original Message ----- From: "Gareth Sylvester-Bradley" <gareth.sbradley@xxxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, July 30, 2001 12:59 PM Subject: RE: [xsl] another whitespace questions (in XML this time) > by a process of elimination then... I should think it almost must be a > problem with selecting and copying white-space only nodes when you process > the <event> but not when you process the <venueInfo> nodes. I suspect a > wayward match="*" somewhere. as usual, allowing the list to eyeball a > cut-down version of the xslt that still causes the problem will help (and > might mean you spot it first :-) > > :G > > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Runni Vermel > Sent: 30 July 2001 20:06 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] another whitespace questions (in XML this time) > > > 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 > > > > > ************************************************************************* > The information contained in this message or any of its > attachments may be privileged and confidential and intended > for the exclusive use of the addressee. If you are not the > addressee any disclosure, reproduction, distribution or other > dissemination or use of this communication is strictly prohibited > ************************************************************************** > > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] another whitespace questi, Gareth Sylvester-Bra | Thread | Re: [xsl] another whitespace questi, David Carlisle |
[xsl] Format conversion between PDF, Ho | Date | [xsl] : Escaping '&' in an HTML lin, Aparna Joshi |
Month |