[Lagoon-user] xml declaration omitting
Status: Inactive
Brought to you by:
mikaelstaldal
From: Ondra K. <kn...@we...> - 2005-02-21 17:26:53
|
I try to generate some xhtml files using xsl transformation from xml source. I have sitemap entries like <file target="/index.php" source="/content/web/site-index.xml"> <format doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" omit-xml-declaration="yes" html="strict" indent="yes" encoding="UTF-8" type="xhtml"> <transform stylesheet="/xslt/site-xhtml.xsl" type="xslt"> <source/> </transform> </format> </file> Generally, I would like either to generate xhtml file without xml declaration or (not in example above) include some other file _before_ xml declaration in document. Result should looks like <?php some_code_here ?> <?xml ... or xml declaration can be generated by php or other code inserted by this method. I tried to use omit-xml-declaration attribute as seen in example above and many other possible configurations for couple of hours, but had no luck. May you provide me with some hint how to do that? And second question - is posible to use some file, formated diferent than sitemap syntax, as sitemap? For example with attached stylesheet, which can transform original form to something expected by lagoon. -- Best regards Ondra Knezour ---------------------------- http://www.weboutsourcing.cz |