Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XSL to FRX and FRX to XSL
Message
De
08/01/2002 12:44:41
 
 
À
08/01/2002 12:38:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00601574
Message ID:
00602067
Vues:
25
Converting VFP data to XML is easy, whether you use CursorToXML or use a DOM object. I'm not talking about your report logic, anyway. :-)

John asked why anyone would want to convert to XSL and that's what I was addressing. We could debate this point all day long (which I have neither the desire or time to do), but the bottom line is that it all depends on the specific situation...

>>The data can be easily converted to XML but the missing piece is how to get the report definitions into XSL.
>
>If you're implying that you can just do CursorToXML() to get data into XML I'd have to advise against that. First of all, alot of my report logic is to put every thing that will show on the report into a cursor. Thats a highly denormalized cursor, and for most reports, typically has header, detail, and subdetail information in one two dimensional object. Try to convert that into XML and write an XSLT for it and you'll be in head ache city, and anyone you try and peddle your format to will just laugh at you.
>
>Instead, you'll probably want to create real irregularly shaped XML formats based on your data, which, for 150 reports woudl be alot of work. At that point, using an FRX to generate the XSLT for that document would be next to impossible. So, all around, its not a simple task to achieve the benifits of XML/XSLT without recoding.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform