Hi, I have a question, and I had some time thinking of whre to post it, cause it is a mix of XML, XSLT and Javascript... but I decided in the end to post it here in hopes of finding the answer...
I made a file in XML, then made an XSLT for it..the structur of the XMl is based on a story form...like this
<stories>
<story1>
<chapter1>
<chaptername></chaptername>
<para></para>
<para></para>
...
...
</chapter1>
<chapter2>
<chaptername></chaptername>
<para></para>
<para></para>
...
...
</chapter2>
</story1>
<story2>
...
...
</story2>
...
...
</stories>
The XSLT job is primarirly to brake a line every <para></para>, show the Chaptersname and have 3 "bottons" in the end of every chapter. The buttons are as a navigation tool, so that it will load chapter2, 3 and so on... and it loads only one story, I make a new XSLT for every story...
I load it to an HTML file using Javascript, and a code to combine the XML file with the XSLT file for the story I want. but the problem is the following :
The 3 "buttons" are acutally links, and the are intended to be, To Top, Next story and Prev Story. So the thing that I don't know what to do is, when I have that the XSLT file loads all the chapters for a story, I want that Javacsript only shows one of them, and make so the Next and Prev link I made to show the next or prev chapter of where the user is...what code should I use and how?
thnx, if there was anything hard to understand or I misspelled as usuall
just ask 
thnx
DrkSide
I made a file in XML, then made an XSLT for it..the structur of the XMl is based on a story form...like this
<stories>
<story1>
<chapter1>
<chaptername></chaptername>
<para></para>
<para></para>
...
...
</chapter1>
<chapter2>
<chaptername></chaptername>
<para></para>
<para></para>
...
...
</chapter2>
</story1>
<story2>
...
...
</story2>
...
...
</stories>
The XSLT job is primarirly to brake a line every <para></para>, show the Chaptersname and have 3 "bottons" in the end of every chapter. The buttons are as a navigation tool, so that it will load chapter2, 3 and so on... and it loads only one story, I make a new XSLT for every story...
I load it to an HTML file using Javascript, and a code to combine the XML file with the XSLT file for the story I want. but the problem is the following :
The 3 "buttons" are acutally links, and the are intended to be, To Top, Next story and Prev Story. So the thing that I don't know what to do is, when I have that the XSLT file loads all the chapters for a story, I want that Javacsript only shows one of them, and make so the Next and Prev link I made to show the next or prev chapter of where the user is...what code should I use and how?
thnx, if there was anything hard to understand or I misspelled as usuall
thnx
DrkSide