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

HELP NEEDED !!! IN XSL AND XSL FO

From: philip meyer <philip_meyer2001@yahoo.co.in>
Date: Wed, 10 Dec 2003 12:26:33 +0000 (GMT)
Message-ID: <20031210122633.10049.qmail@web8101.in.yahoo.com>
To: www-xsl-fo@w3.org
Hi,
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 ....

 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 Wednesday, 10 December 2003 09:54:26 GMT

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