Subject: Re: Some Questions (2nd try) From: "David Halsted" <halstedd@xxxxxxxxxx> Date: Sat, 11 Mar 2000 15:53:54 -0500 |
> Or use MS Word98/2000 > HTMLtoRTF.js > ---------------------------------------------------- > var word = new ActiveXObject("word.Application"); > var doc = word.Documents.Open("infile.html"); > word.Documents("infile.html").saveAs("outfile.rtf", 6); > doc.close(); > ---------------------------------------------------- > Then you only need one stylesheet ;-)) > This is great, but if you want more control over the format of the output, you might want to plunge into RTF itself (the payoff is pretty nice -- you can make headers, footers, do lots of stuff if you want). You'd do an XSL sheet to transform into RTF and write the file out as a .rtf or spit it into the browser with content-type text/rtf. IE 5, at least, recognizes this and loads a cute little Word plug-in by default (although I've only tried it on computers that are also loaded with Word. Can somebody confirm that this plug-in ships with IE 5? I think the browser just loads Microsoft's Word viewer, but I haven't looked into it very much). > > 2.- Imagine the ouput of an SQL query with a 'group by' sentence, > >and maybe, with total fileds for each group of rows. For each group, I > >don't want to repeat the fileds with the same values (the fields that > >define the group). Can XSL-T do something like that?: > > a) To control when some values changing and > > b) Do the totals of some fields, the totals for each group of > >rows. You might try Saxon. It has a group extension. > > Should be <xsl:variable> the solution in order to do something > >like that? > > > > 3.- Imagine I have some data, from the DB via JDBC, in some Java > >Classes, in my own object model (with this data stored in). And I want > >to serialize this data, or a subset of it, in an XML document. Can I use > > > >a SAX parser?, or have I to do it myself. I mean, Can I pass my object > >model to the SAX parser? There's a lot of information about building objects in Java from XML and some nice tutorials on Sun's site. You might also look at the code for John Cowan's DOM parser (http://www.ccil.org/~cowan/XML), to which Steve Tinney pointed me as I was trying to exactly what you describe. Dave Halsted > > Sorry if some are silly or very basic questions, I'm defining my > >carreer final project and I want to use the XML-JAVA-SQL technology in > >the best way. > > > > Thanks a lot, any inputs will be wellcome. > > > > Omar Lopez. > > > > > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Some Questions (2nd try), Chris Bayes | Thread | sort, count, number, group, quagly |
Re: xsl for formatting, Sebastian Rahtz | Date | Re: Netscape, violet wright |
Month |