It worked!!!
Thanks again Pietschmann. I really appreciate your help.
--- "J.Pietschmann" <[EMAIL PROTECTED]> wrote:
> Anil wrote:
> > <xsl:value-of select="normalize-space($City)"/>
> > <xsl:if test="$State!=''">
> > ,�<xsl:value-of select="$State"/>
> > </xsl:if>
> ...
> > My expected output is City, State Zip-ZipExt
> >
> > But i am getting City{space}, State Zip{Space}-ZipExt
>
> The XSLT processor strips whitespace-only nodes from the
> stylesheet. Thie means any text nodes with any non-whitespace
> character is left as is, including *all* whitespace. Even
> whitespace at the end or beginning is *not* stripped. There
> is *no* whitespace normalization for these nodes.
> A non-breaking space is not a whitespace. THerefore you get
> the linefeed after the xsl:if opening tags as well as the
> spaces used for indentation into the output.
>
> Either try to omit the whitespace you dont want:
> <xsl:if test="$State!=''">,�<xsl:value-of select="$State"/>
> or enclose significant text in xsl:text:
> <xsl:if test="$State!=''">
> <xsl:text>,�</xsl:text>
> <xsl:value-of select="$State"/>
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]