Ciao a tutti!
Ho provato riprodurre lastessa cosa che si trova nell tutorial di html.it , che si trova nel tutorial
Il codice dell xsl
codice:<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:output method="html" indent="yes" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" /> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Prova pagina</title> <style type="text/css">.divProva{ height:100px; background:#FF0000; border:1px solid #0000FF;}</style> </head> <body> <div class="divProva">div xsl, stile page</div> <xsl:value-of select="page" /> </body> </html> </xsl:template> </xsl:stylesheet>
il codice dell xml
Il mio problema e che l'unico dive che viene "formattato" e quello che si trova nella pagina xsl.codice:<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet type="text/xsl" href="prova.xsl"?> <page> <div style="background:#0066FF; height:60px;">div xml, stile hard cod</div> <div class="divProva">div xml, stile page</div> </page>
Motivi? E se volessi includere anche javascript, o foglio di stile aggiuntivo...??
Grazie mille in anticipo

Rispondi quotando