Hi
I am working on a page that shows my story, stored in an XML page, and I have put a JavaScript code in the XSLT that shows only the selected chapter of my story from the XML page. But I get an error and it is somewhere about the " " thing...
here is how the code should be...
<xsl:for-each select="stories/darkside/ep[@number='1']">
...
and here is the JavaScript code to produce that code:
<script>var chapter=1</script>
<script>
document.write("<xsl:for-each select='stories/darkside/ep[@number='"+chapter+"']'>")
...
</script>
I get an error in this place:
[@number='"+chapter+"']
----------^
can you help me pin point the problem, what have I done wrong?
Thnx for your help
want more info about the problem just ask and I will do anything you want
THNX !!!
I am working on a page that shows my story, stored in an XML page, and I have put a JavaScript code in the XSLT that shows only the selected chapter of my story from the XML page. But I get an error and it is somewhere about the " " thing...
here is how the code should be...
<xsl:for-each select="stories/darkside/ep[@number='1']">
...
and here is the JavaScript code to produce that code:
<script>var chapter=1</script>
<script>
document.write("<xsl:for-each select='stories/darkside/ep[@number='"+chapter+"']'>")
...
</script>
I get an error in this place:
[@number='"+chapter+"']
----------^
can you help me pin point the problem, what have I done wrong?
Thnx for your help
want more info about the problem just ask and I will do anything you want
THNX !!!