Hello,
I have read somewhere that it is possible to use XSL to grab only specific information to populate the <description> element for an RSS feed.
Consider an example where a query from a database is looking at something like this and then outputting as XML in RSS format:
My question is, how can XSL be utilized to select only those <p> elements with the "RSSDescription" class? Right now my other option is breaking the specific paragraphs out into a differnt database field and filtering on the query, but this seems counter-intuitive and certainly cumbersome on the content generation side.
Any thoughts?
Thanks, and Happy New Year!
RR
I have read somewhere that it is possible to use XSL to grab only specific information to populate the <description> element for an RSS feed.
Consider an example where a query from a database is looking at something like this and then outputting as XML in RSS format:
Code:
<p class="RSSDescription">Some paragraph suitable for RSS Description</p>
<p>The remaining paragraphs in an article, not to be in the feed description</p>
My question is, how can XSL be utilized to select only those <p> elements with the "RSSDescription" class? Right now my other option is breaking the specific paragraphs out into a differnt database field and filtering on the query, but this seems counter-intuitive and certainly cumbersome on the content generation side.
Any thoughts?
RR