Skip to main content
March 30, 2007
Answered

Dreamweaver 8 XML, XSLT

  • March 30, 2007
  • 2 replies
  • 310 views
I've attempted to try to place a external or internet rss feed on my php page. I opened a xslt page placed my title from the feed and link. Everything seems ok when I am on my php it shows my list of the rss feed that I got. However, what I do not understand is how to limit my rss feeds. For example, I went the the Jerusalem Post and took their rss feed and my list shows 11 headlines. But I want to limit it to say the top 3. So how do I do this.

I am new to the xml field and I am using Dreamweaver 8.

Thank you,
AdonaiEchad
This topic has been closed for replies.
Correct answer Newsgroup_User
AdonaiEchad wrote:
> what I do not understand is how to limit my rss feeds. For example,
I went the
> the Jerusalem Post and took their rss feed and my list shows 11 headlines. But
> I want to limit it to say the top 3. So how do I do this.

Select the xsl:for-each tab on your repeat region, and click the
lightning bolt in the Property inspector to open the XPath Expression
Builder. Expand the Build Filter area and click the plus button. Fill in
the following values:

Filter By: the name of the XML node that contains the headline
Where: position()
Operator: >=
Value: 3

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

2 replies

March 30, 2007
Thank you, that did the job.

Is there any tutorials on Adobe dealing with how to use Dreamweaver 8 on xml. What am I am basically getting at is, if I created a mySQL database that has articles and want to link a xml to it by making it a rss. I will be using PHP. I hope I am making sense.

Thank you,
AdonaiEchad
Newsgroup_UserCorrect answer
Inspiring
March 30, 2007
AdonaiEchad wrote:
> what I do not understand is how to limit my rss feeds. For example,
I went the
> the Jerusalem Post and took their rss feed and my list shows 11 headlines. But
> I want to limit it to say the top 3. So how do I do this.

Select the xsl:for-each tab on your repeat region, and click the
lightning bolt in the Property inspector to open the XPath Expression
Builder. Expand the Build Filter area and click the plus button. Fill in
the following values:

Filter By: the name of the XML node that contains the headline
Where: position()
Operator: >=
Value: 3

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/