954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

XSLT Loop - I'm Stuck!!

Hi everyone!

First post here.

I've been programming for years but this xslt confuses the heck out of me.

Can someone please tell me how to get this piece of code to work? It's a fragment reading in an rss feed and I'm trying to get it to only show 5 news items. The test for the 'news' works ok but I can't get the loop to work. I get this error

MM_XSLTransform error:
"e:\Domains\wiiuser.co.uk\wwwroot\rssfrag.xsl" is not a valid XSL document.
XSLT compile error at file:///e:/Domains/wiiuser.co.uk/wwwroot/rssfrag.xsl(51,5). See InnerException for details.

The code is:



Wii News Provided by Officialnintendomagazine.co.uk








[THIS IS THE ERROR LINE 51]

Any help would be appreciated.

Many thanks

madigital
Newbie Poster
5 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

I don't know what you intend to do with the but what I understand from the tutorial it is used to pass parameters to a template. So you should call a template before that, or insert a template between the tags.

miepmuts
Newbie Poster
14 posts since Aug 2008
Reputation Points: 21
Solved Threads: 2
 
I don't know what you intend to do with the but what I understand from the tutorial it is used to pass parameters to a template. So you should call a template before that, or insert a template between the tags.

I think for this you have to include


and one

............ do what ever you need .........

cheers,
Mahesh :)

mlohokare
Newbie Poster
22 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

It is unclear what you are trying to achieve with the code you presented. Frankly, the code is all over the place.

Can you provide a sample of the RSS feed containing at least 5 items that you want to parse and we can then probably help you.

fpmurphy
Junior Poster
147 posts since Oct 2008
Reputation Points: 22
Solved Threads: 11
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You