[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: stripping leading and trailing newlines from xml
Aparna Konduri wrote: > Is there a way to just strip leading and trailing newlines from > xml using xsl or javascript? XSLT has somewhat unintuitive rules for how it handles whitespace and newlines. You did not provide an example of what you want to accomplish, so I guess you meant extraneous whitespace. An identity transform as discussed in the XSLT spec under "Copying" (xsl:copy), with the addition of <xsl:strip-space elements="*"/> <xsl:output method="xml" indent="no"/> is probably what you want. - Mike ____________________________________________________________________________ mike j. brown | xml/xslt: http://skew.org/xml/ denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|