users@jaxb.java.net

Re: Inserting an XSL stylesheet reference using JAXB

From: Bhakti Mehta <Bhakti.Mehta_at_Sun.COM>
Date: Thu, 22 May 2003 10:08:50 -0700

Hi,
There is an example xml-stylesheet in the jwsdp 1.1/jaxb-1.0/examples
folder. That demonstates how to use a custom XMLFilter to insert the
<?xml-stylesheet...?> PI.
Hope that helps.

Regards,
Bhakti


Chris Bucchere wrote:

>Hi,
>
>I'm using JAXB to collect information from a news source and marshall it to XML. I'd like to insert an XSL stylesheet reference (e.g. <?xml:stylesheet type="text/xsl" href="headlines.xsl"?>) at the top of every XML file that I create. Is there a way to do this through a property or method in the JAXB-generated code or do I have to modify the generated code in order to get it to insert this line?
>
>Thanks,
>
>Chris Bucchere
>Bucchere Development Group
>chris_at_bucchere.com
>http://www.bucchere.com
>
>