W
wlaver
I am marshalling a java object to xml. I would like to include a
stylesheet declaration in my castor mapping xml file.
My mapping file looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="main-summary.xsl"?>
<mapping>
content ...
</mapping>
When I marshal the java object, the xml file is created, but the
<?xml-stylesheet line is dropped and no error is reported.
Does anyone know why this happens, or another way that I can output the
xml file with a stylesheet declared?
Thanks,
Mike
stylesheet declaration in my castor mapping xml file.
My mapping file looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="main-summary.xsl"?>
<mapping>
content ...
</mapping>
When I marshal the java object, the xml file is created, but the
<?xml-stylesheet line is dropped and no error is reported.
Does anyone know why this happens, or another way that I can output the
xml file with a stylesheet declared?
Thanks,
Mike