keith: thanks, this is good and I like it. I am just a bit confused about how to get the latest CVS version. I am using 0.9.3.9, which does not seem to support this call at all.
can you please clarify how to get the version you are talking about? also, if that is not official yet, when will that be official? thanks steve -----Original Message----- From: Keith Visco [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:34 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] XSLT qu: how can Castor generate an xml-stylesheet PI in the beginning of marshalling an object? If you use the latest CVS version you can do the following: myMarshaller.addProcessingInstruction("xml-stylesheet", "href='my.xsl' type='text/xsl'"); Or you can use the solution that Arnaud proposed earlier. Thanks, --Keith Stephen Tsun wrote: > > hi: > > Say I have a java object I would like to marshal. I marshal it fine, > and the xml file contains > > <?xml version="1.0"?> > the rest of the serialized object... > > I problem I have is that I would like to submit this xml file to a browser > with > an xsl file with this processing instruction (PI): > > <?xml-stylesheet href="my.xsl" type="text/xsl" ?> > > I tried the following 2 approaches: > a) marshal object, add PI, then none of the xml gets transformed at all > b) add PI, marshal object, then IE handles it OK, but Netscape 6 > does not because it insists that the first line must be <?xml> > > This is no good, so I have to do an XSLT on the server side. > > What I really want is a client side XSLT IF I can get Castor to produce > > <?xml version="1.0"?> > <?xml-stylesheet href="my.xsl" type="text/xsl" ?> > the rest of the serialized object... > > Can someone tell me how to do this? > > thanks > Stephen Tsun > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
