W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2003

DOUBT !!! Please Help !!

From: philip meyer <philip_meyer2001@yahoo.co.in>
Date: Thu, 11 Dec 2003 06:08:49 +0000 (GMT)
Message-ID: <20031211060849.48504.qmail@web8106.mail.in.yahoo.com>
To: www-xsl-fo@w3.org

Below is my xml 
<WEB>
    <SITE>
        <BODY>
            <LEFT><![CDATA[                            PA TAJ 2322                                                                       ]]></CENTRE>
        </BODY>
    </SITE>
    <SITE>
        <BODY>
            <LEFT><![CDATA[                            ACT KRIVE WROKCT                                                                  ]]></CENTRE>
        </BODY>
    </SITE>
    <SITE>
        <BODY>
            <LEFT><![CDATA[                            PHILLIPPIN            BC         12345                                                    ]]></CENTRE>
        </BODY>
    </SITE>
</WEB>
i want to remove the spaces which are before the element starting and after the element ended.
i used 
1)  <xsl:strip-space elements="*"/> ...i could not able to get the required output
2)  <xsl:template match="text()">
    <xsl:value-of select="normalize-space()"/>
    </xsl:template>
    not able to get the required output
 3) also used substring after space and storing it in variable and print substring before ....
 4) i used 
    <xsl:template match="text()">
    <xsl:value-of select="normalize-space(.)"/>
    </xsl:template>
 
 5) i also checked the white spaces which were between and after the element ...it is spaces only...no special characters
    are there...
 
 please help me...how to get the required output and also what is the problem here....i don't want to strip the spaces which were
 between the element content.....

 Expected Output :
PA TAJ 2322
ACT KRIVE WROKCT
PHILLIPPIN            BC         12345

 

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.
Received on Thursday, 11 December 2003 01:12:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT