xsl problem...

R

romain

with this script my browser tels me: "select" atribute is needed and
displays nothing

<xsl:for-each select="compositeur">
<SCRIPT LANGUAGE="JavaScript1.2">
compo = "<xsl:value-of"/>";
document.write('<a href="'+rechercheArtiste(compo)+'"
target="_blank">');
document.write(compo);
document.write('</a>, ');
</SCRIPT>
</xsl:for-each>

with this other script, my browser displays correctly the file exept
the "compositeur" field

<xsl:for-each select="compositeur">
<SCRIPT LANGUAGE="JavaScript1.2">
compo = "<xsl:value-of select="compositeur"/>";
document.write('<a href="'+rechercheArtiste(compo)+'"
target="_blank">');
document.write(compo);
document.write('</a>, ');
</SCRIPT>
</xsl:for-each>

the first script was working on another file with a dtd but is not
working with my new files witch are using an xsd doc definition. I
don't know if it's linked...what do you think about it?

by the way, do you know a tutorial witch can be helpfull for xsl in
general and more practical than the W3 recomandations...
 
M

Martin Honnen

romain said:
with this script my browser tels me: "select" atribute is needed and
displays nothing

<xsl:for-each select="compositeur">
<SCRIPT LANGUAGE="JavaScript1.2">
compo = "<xsl:value-of"/>";
document.write('<a href="'+rechercheArtiste(compo)+'"
target="_blank">');
document.write(compo);
document.write('</a>, ');
</SCRIPT>
</xsl:for-each>

with this other script, my browser displays correctly the file exept
the "compositeur" field

<xsl:for-each select="compositeur">
<SCRIPT LANGUAGE="JavaScript1.2">
compo = "<xsl:value-of select="compositeur"/>";

Maybe you want
compo = said:
document.write('<a href="'+rechercheArtiste(compo)+'"
target="_blank">');
document.write(compo);
document.write('</a>, ');
</SCRIPT>
</xsl:for-each>

the first script was working on another file with a dtd but is not
working with my new files witch are using an xsd doc definition. I
don't know if it's linked...what do you think about it?

by the way, do you know a tutorial witch can be helpfull for xsl in
general and more practical than the W3 recomandations...

Have a look at www.w3schools.com, they have a lot of tutorials, should
have one on XPath and one on XSLT.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top