Click here to Skip to main content
13,144,824 members (33,990 online)
Rate this:
Please Sign up or sign in to vote.
See more:
        <?fm condstart Omittednotes?>
            Unwanted messages
        <?fm condstart Omittednotes?>
        thanks for helping me.   

My code 1:

<xsl:for-each select="Para">
    <xsl:value-of select=".">

Received output:Hi unwanted messages thanks for helping me

My code 2:

<xsl:for each select="Para">
    <xsl:value-of select="text()">
</xsl:for each select>

Received output: Hi

Expected output: Hi thanks for helping me.
Posted 14-Jun-12 1:01am
Updated 14-Jun-12 1:37am
krumia 14-Jun-12 7:38am
What is the question here?
Sandeep Mewara 14-Jun-12 8:04am
And what are you here to ask?
rahulaaditya 15-Jun-12 2:43am
I would like to omit the contents available in my xml file using xslt. Text content in my sample xml file <?fm condstart Omittednotes?>Unwanted messages<?fm condstart Omittednotes?> need to be omitted. I tried with two different options as mentioned in code1 & code2 but was not successful. I mentioned the outputs I received and also the output to be received.

Am i clear in explaining what i need?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hi all, since the omitted note portion is not the childnode it will be displayed for sure. Therefore I do not want to trouble you all, thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 16 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100