ho creato i lseguente file xml :
il file dello stylesheet è come segue :codice:<?xml version="1.0"?> <?xml-stylesheet href="Articoli.xslt" type="text/xsl"?> <Articoli> <ARTICOLO> <TITOLO>Titolo 1</TITOLO> <AUTORE>xyz</AUTORE> <Link>./Atricoli/1.html</Link> </ARTICOLO> </Articoli>
mi sembra corretto ma Firefox mi dice :codice:<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <HTML> <body> <H2>ARTICOLI</H2> <xsl:FOR-EACH select="Articoli"> <xsl:FOR-EACH select="ARTICOLO"> <xsl:value-of select="TITOLO"> </xsl:value-of> </xsl:FOR-EACH> </xsl:FOR-EACH> </body> </HTML> </xsl:template> </xsl:stylesheet>
rrore nel caricamento del foglio di stile: Il foglio di stile XSLT non ha un mimetype XML:
perché?

Rispondi quotando