XML Development

Moderators: None (Apply to moderate this forum)
Number of threads: 252
Number of posts: 451

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
help on xslt needed. Posted by saideepak_m on 8 Jun 2009 at 4:39 AM
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
Report
Re: help on xslt needed. Posted by Lundin on 8 Jun 2009 at 4:43 AM
Moved from C/C++ board.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.