Hi all,
I am a novice in xslt. I have a clean up requirement wherein i wud have to remove the <break type="paragraph"> tags if they are more than 3 and replace them with 2 tags <break type="paragraph"> .
The xml used here is in following format.
<textObjects>
<textObject><!--textObject id=101-->
<tag>Story</tag>
<objectMore>
<dataId>355376</dataId>
<index>0</index>
<value>
<dateTime>2009-05-30T09:31:26</dateTime>
<integer>100</integer>
</value>
</objectMore>
<text>
<inlineTag name="Story">
<inlineTag name="K4Xml">
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
<inlineTag name="Headline">
<break type="paragraph"/> Headline goes here<break type="paragraph"/>
</inlineTag>
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
<inlineTag name="Body">
<break type="paragraph"/> Body goes here<break type="paragraph"/>
</inlineTag>
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
<inlineTag name="Deck">
<break type="paragraph"/> Deck goes here<break type="paragraph"/>
</inlineTag>
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
<inlineTag name="Blurb1">
<break type="paragraph"/> Blurb goes here<break type="paragraph"/>
</inlineTag>
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
<inlineTag name="Strap">
<break type="paragraph"/> strap goes here<break type="paragraph"/>
</inlineTag>
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
<inlineTag name="Keywords">
<break type="paragraph"/> Keywords goes here<break type="paragraph"/>
</inlineTag>
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
<inlineTag name="VideoUrl">
<break type="paragraph"/> Video url goes here<break type="paragraph"/>
</inlineTag>
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
<inlineTag name="AuthorName">
<break type="paragraph"/> Author Name goes here<break type="paragraph"/>
</inlineTag>
<break type="paragraph"/>
<break type="paragraph"/>
<break type="paragraph"/>
</inlineTag>
</inlineTag>
</text>
</textObject>
</textObjects>
awaiting your response.
regards
SaiDeepak M