It's a good idea aCCuReRaS. I might do a version with individual templates later.
An even better aproach for the Internet though would be to move the xslt-transformations (javascript) to the server side. That way you would would'nt need hundreds of xml files and the page would still only load as much data as it displays. And also you could make it work on Netscape and other browsers by just modifying the stylesheets. It would not be so much work because most of the code can be reused (at least on IIS).
Anyways I will not make any updates for at least 2 weeks.
first of all I love this template! modified it a bit to my personal taste and it looks fabulous! The only thing really wanted to change was the inablity of using linebreaks in description.
Sometimes I have added a boxset to my catalog as being 1 item and I would like to be able to make a list what is on what CD. Somewhat like this:
Description:
All Season episodes of Blackadder
Season 1 (3 CD's)
The Foretelling, Born to be King
The archbishop
The queen of Spain's beard
The Witchsmeller Pursuivant
The Black Seal
I'm no XML wizard but looking at transform.xml got me a bit further. I added a similar template as commas_to_br and it looks like this:
Very similar to the commas_to_br template. And better yet, it works. My only problem is that though this works just fine. Descriptions for all other movies are not displayed at all! Anyone have any idea why?[/quote]
An even better aproach for the Internet though would be to move the xslt-transformations (javascript) to the server side. That way you would would'nt need hundreds of xml files and the page would still only load as much data as it displays. And also you could make it work on Netscape and other browsers by just modifying the stylesheets. It would not be so much work because most of the code can be reused (at least on IIS).
That is go to the template with the parameter src as select="substring-after($src, '<br>')" = a substring of src after the first <br>.
Since you have an if statement in the beginning (checkin if src contains <br>) you probably want an else statement also so that descriptions that don't contains <br> will be displayed as well. To do this in xsl you have to change it to:
I get your point. I love Opera. But in Version 6.05 there is no way. This version doesn't support xml. But Opera 7.0 should be support XML. I've tested the Opera 7.0 beta. But it doesn't function. Maybe it works with the final. I hope so.
Hmm, time. I've got an idea: I can answer the questions about your template, then you don't have to look in this forum and you have more time for programming. Okay one disadvantage is, that because of my answers, in one month you are the most hated person all over the net. But that is no problem for me How do you feel about this nice idea?
Hi ant...unfortunately that does not work (bug??).
"Line breaks will be automatically converted to:"
is what you meant right? I can change this to <br /> but if I click ok and go back into preferences it's set back to <br>.
I tried it works great but I have couple of movies in Russian
for some reason your template does not support Russian at all.
Do you have any idea what needs to be done to enable this support ?
I tried it works great but I have couple of movies in Russian
for some reason your template does not support Russian at all.
Do you have any idea what needs to be done to enable this support ?
thank you
Jev
An easy work-around. Open your XML template that you use to export the DB to movies.xml -- at the top change the encoding to this