Click here to Skip to main content
11,933,213 members (63,533 online)
Rate this:
Please Sign up or sign in to vote.
See more: XML XSLT
        <?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 2:01am
Edited 14-Jun-12 2: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 Unwanted messages 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 | Mobile
Web04 | 2.8.151126.1 | Last Updated 16 Jun 2012
Copyright © CodeProject, 1999-2015
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