XML

More XML and XSL again. I want to put the last 10 posts in some of the forums on the main pages - things like last 10 posts about books and movies. And just the post title as a link. I modified the base XSL we use for the announcements to display the titles as links. Not hard - it is the same behaviour they do now.

While doing this, a problem with the TARGET attribute appeard from no where, that was not there before. They were going to TOP as they always have, but were opening a new window. So they got changed to _Self and this was fixed. Strange. Well as they say, open something to change A and B will break even though you never touched it, and nothing you changed about A effects B inany way. But damn if B still will just magically be broke.

So now I need to learn how to limit the display in an XSL of the XML it reads to just the first 10 responses.

And how to get a tighter format of a single line feed / carrige return. Just does not seem to work. So I have gone back to the working and working fine news and announcements XSL and started to clean it up and strip out the code. See if I can get it a bit simplier and still work as expected, and in the process help with my 2 problems above.

Popularity: 1%

Leave a Reply

You must be logged in to post a comment.