xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vishwajit Pantvaidya" <pantvai...@hotmail.com>
Subject RE: Newline problems
Date Thu, 01 May 2003 21:50:46 GMT
Yes, I did, but that did not work. The reason I feel is that, from my 
understanding of xsl:strip-space, it eliminates the standalone white space 
from the document tree. But here the whitespace is actually embedded in the 
value of an element, which is why I believe it did not work in my case.


- Vishwajit.

>From: "Singh, Anoop" <anoop.singh@hp.com>
>To: "Vishwajit Pantvaidya" <pantvaidya@hotmail.com>
>Subject: RE: Newline problems
>Date: Thu, 1 May 2003 12:54:27 -0700
>Have u used this one...
><xsl:strip-space elements="*"/>
>-----Original Message-----
>From: Vishwajit Pantvaidya [mailto:pantvaidya@hotmail.com]
>Sent: Thursday, May 01, 2003 11:04 AM
>To: xsl-list@lists.mulberrytech.com; xalan-j-users@xml.apache.org
>Subject: Newline problems
>I am using xalan for xml to xml transformation. Input xml string has
>some DOS carriage return and/or line feeds introduced by the source
>application. The source xml string that I was trying to transform is
>(exactly as is, including newlines)
>i.e. the newline was probably getting included in the value of the
>"attr". Would such newlines yield the empty output xml I was getting?
>Xsl-strip space did not help. Finally, I had to write java code to strip
>newlines from the source xml and then I started getting output xml
>Our xsl is like
><?xml version = "1.0" encoding = "UTF-8"?>
><xsl:transform xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
>version = "1.0">
><xsl:template match = "ABC">
><xsl:text disable-output-escaping="yes">&lt;!DOCTYPE
><xsl:template mode = "Attribs" match = "ctrInfo">
>	      <xsl:element name="ADDR">
>		<xsl:value-of
>	      </xsl:element>
>Please help...
>- Vishwajit.
>STOP MORE SPAM with the new MSN 8 and get 2 months FREE*

Tired of spam? Get advanced junk mail protection with MSN 8. 

View raw message