Subject: RE: How to eliminate whitespace using MS XSLT? From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx> Date: Tue, 25 Apr 2000 14:17:42 -0700 |
MSXML can generate partial XML files, so you can create a text file by simply not including any result elements in your stylesheet. Of course, this won't work where well-formed output is required, such as transformNodeToObject(newdocument). The only problem is then preventing <>& from being escaped, which you can do with <xsl:eval no-entities="true">'<>&'</xsl:eval> in the stylesheet of <xsl:eval no-entities="true">this.text</xsl:eval> to pass through the source. These are the equivalent of disable-output-escaping in XSLT. One of our customers generated a simple markup language for text formatting that can be easily generated by XSL and post-processed to generate the final file. This may be easier if you are doing more sophisticated text manipulations such as line breaking. In short, it is difficult but possible to generate text from MSXML. - Jonathan Marsh Microsoft > -----Original Message----- > From: David Steiner [mailto:davids@xxxxxxxxxxxxxxx] > Sent: Tuesday, April 25, 2000 12:24 PM > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: Q: How to eliminate whitespace using MS XSLT? > > > I'm pretty new at this, but this is what I've gathered. > Apparently, Microsoft > uses a working draft of XSLT, "http://www.w3.org/TR/WD-xsl", > which does not > contain the same elements as the recommendation > "http://www.w3.org/1999/XSL/Transform". If I'm missing > something, let me know. > > I need to create files that aren't XML or HTML. They're text > files. I have > used "http://www.w3.org/1999/XSL/Transform" and the > xsl:output element along > with xalan to accomplish this (ie., <xsl:output method="text" > />). However, > the output element doesn't seem to exist in MS XSLT (the WD). > Again, please let me know if I'm missing something. > > If I am not missing something, what's the easiest way to > accomplish this in > MS XSLT? > > Thanks, > David Steiner > Lexis-Nexis > David.J.Steiner@xxxxxxxxxxxxxxx > > > 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 -> |
---|---|---|
Characters for French Translation, scott . wright | Thread | RE: How to eliminate whitespace usi, Jeff Hamilton |
Re: Bolded Text in an <fo:block>, Nikolai Grigoriev | Date | xsl:number questions, Andrew Kimball |
Month |