Hi Girish,
If you do get this problem solved, could you do me a favor and post the solution, if you can. I was entertaining some similar requirement last year for one of my projects.

Thanks in advance
Ganesh

On Thu, Feb 18, 2010 at 9:56 AM, girish hilage <girish_hilage@yahoo.com> wrote:
Hi,

   Using XML serialization I have created an XML file which I want to see through a browser using a stylesheet.
   So I want to put a statement :
   <?xml-stylesheet type="text/xsl" href="XSLTFile.xsl"?>

   in between below 2 statements :
   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
   <!DOCTYPE boost_serialization>

   like this :
   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
   <?xml-stylesheet type="text/xsl" href="XSLTFile.xsl"?>
   <!DOCTYPE boost_serialization>
   <boost_serialization signature="serialization::archive" version="5">

   But the code for a init() function inside file boost/archive/impl/basic_xml_oarchive.ipp is as follows :

   basic_xml_oarchive<Archive>::init(){
       // xml header
       this->This()->put("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>\n");
       this->This()->put("<!DOCTYPE boost_serialization>\n");
       // xml document wrapper - outer root
       this->This()->put("<boost_serialization");
       write_attribute("signature", BOOST_ARCHIVE_SIGNATURE());
       write_attribute("version", BOOST_ARCHIVE_VERSION());
       this->This()->put(">\n");
   }

   File XSLTFile.xml contain stylesheet info.
   * So, how is it possible to put a stylesheet related statement just after the 1st statement?
   * Another query is, how to change the the tag name "boost_serialization" to something else?

Regards,
Girish


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users



--
Ganeshram Iyer
Open Source and CAD: http://ossandcad.blogspot.com
ganeshramiyer@yahoo.com