buon dì
ho delle info in un xml, attraverso un xsl devo prelevare queste info e produrre un html... e fino a quà ci siamo
devo creare un frame all'interno dell'html nel quale le info inserite scorrano dal basso verso l'alto (le funz javascript le ho già trovate) quello che non riesco a fare è produrre l'html contenente il javascript e i dati estratti dall'xml
l'html risultante verrà poi inserito nel frame:
<IFRAME marginWidth=0 marginHeight=0 src=" html risultante " frameBorder=0 width="100%" height=140></IFRAME>
ho provato:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<xsl:variable name="script"><xsl:value-of select="
<SCRIPT>
... codice javascript
</SCRIPT>"/>
</xsl:variable>
<html>
{$script}
<body onload=" esecuzione javascript " leftMargin=0 topMargin=0>
<xsl:for-each select="NewsML/NewsItem">
<xsl:variable name="descrizione"><xsl:value-of select="TESTO"/></xsl:variable>
<xsl:value-of select="TITOLO"/>:</p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
ho provato anche sostituendo il codice direttamente dopo il tag di apertura <html> senza usare la variabile.
Idde? soluzioni alternative? grazie
ciao




Rispondi quotando