xml declaration not written
"Ivan Longhi" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
hello, I have a xml file: --------------- <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="in.xsl"?> <eventi> <evento><id>29153</id><titolo>Invito a corte</titolo></evento> </eventi> --------------- the in.xsl contains: ----------------- <?xml version="1.0" encoding="iso-8859-1" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output version="1.0" method="xml" encoding="iso-8859-1" indent="yes" standalone="yes" /> <xsl:template match="/"> <milanomese> <test>test</test> <test>test</test> <xsl:copy-of select="eventi/evento"/> </milanomese> </xsl:template> </xsl:stylesheet> ----------------- very simple, no? if I open the file with a browser the xml file is trasformed ok, but the browser doesn't include the xml declaration (<?xml version="1.0" encoding="iso-8859-1" ?>) in the output. I can't understand why! as you can see I used the <xsl:output .... I think correctly..... any idea? hi, Ivan -------------------- http://www.retecivica.milano.it/