Vote count:
0
I'm making a simple rss feed reader via visual studio. I´m using a gridview that loads the title and description elements from each item from the feed(I'm still starting this so I will load the other elements later). To get the information I want from the xml file I'm using the following transformation:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://ift.tt/tCZ8VR"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="properties">
<listamunicipios>
<xsl:for-each select="property">
<city>
<xsl:attribute name="cidadeteste">
<xsl:value-of select="@city"/>
</xsl:attribute>
</city>
</xsl:for-each>
</listamunicipios>
</xsl:template>
</xsl:stylesheet>
It is getting the information I want but there is a little problem with the description: it also copies the img part within the description.
Example: Obra do ex-ministro da Economia promete explicar "que interesses e lóbis teve de enfrentar" durante a sua passagem pelo executivo. http://ift.tt/1sJt75y" height="1" width="1"
How can i filter this part of the description out?
asked 1 min ago
xsl transformation: filter text from a rss description element
Aucun commentaire:
Enregistrer un commentaire