Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xsl problem

Reply
Thread Tools

xsl problem

 
 
romain
Guest
Posts: n/a
 
      05-06-2004
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...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
tomcal/xsl - problems with xsl:include Klaus Friese Java 0 11-22-2004 10:17 AM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 1 09-13-2004 02:28 PM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 0 09-08-2004 02:11 PM
use xsl:element to output an "<xsl:template match=...> ? Ray Tayek XML 3 11-30-2003 10:14 AM



Advertisments