Hi All
I am working on XSLT
I have a XML as follows
?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>
Update
</title>
<link>
myurl
</link>
<description>
</description>
<language>
en-us
</language>
<item>
<title>
title of item1
</title>
<link>
link of item1
</link>
<description>
description of item 1
</description>
</item>
<item>
......
..........
.......
</item>
now I am wiriting xsl
I have to write seperate mode for the value in title tag (Update) and if it is delete , another mode.
Can some one help me how to make decision ,
something like
<xsl:apply-templates select="/rss/channel/item" mode = "update"/>
and
<xsl:template match="/rss/channel/item" mode="save" >
here can I have to write some thing like , I need help in writing following decision making condition
<xsl: if test = "rss/channel/title = "update">
processing here
Also I have to write something like
<xsl:template match="/rss/channel/item" mode="delete" >
<xsl: if test = "rss/channel/title = "delete">
processing here
Thanks
Java guy
I am working on XSLT
I have a XML as follows
?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>
Update
</title>
<link>
myurl
</link>
<description>
</description>
<language>
en-us
</language>
<item>
<title>
title of item1
</title>
<link>
link of item1
</link>
<description>
description of item 1
</description>
</item>
<item>
......
..........
.......
</item>
now I am wiriting xsl
I have to write seperate mode for the value in title tag (Update) and if it is delete , another mode.
Can some one help me how to make decision ,
something like
<xsl:apply-templates select="/rss/channel/item" mode = "update"/>
and
<xsl:template match="/rss/channel/item" mode="save" >
here can I have to write some thing like , I need help in writing following decision making condition
<xsl: if test = "rss/channel/title = "update">
processing here
Also I have to write something like
<xsl:template match="/rss/channel/item" mode="delete" >
<xsl: if test = "rss/channel/title = "delete">
processing here
Thanks
Java guy
Comment