Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to format XML Output
Message
From
13/12/2001 03:58:29
 
 
To
13/12/2001 03:31:00
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00593639
Message ID:
00593742
Views:
45
Mark,

of course XSL transformation it the most fancy solution... however, you need to study it, because it´s not very straightforward.

I think that you could generate plain HTML far easier (just to begin, of course)... I don´t like the FFC you told about... I´m used to use Rick Strahl´s ShowCursor() method. It´s really simple, easy to use, and reusable. You can find it at his site: www.west-wind.com. Look for it on the white-papers session (it´s one about ASP and VFP...)

You can also write your own routine to create HTML very easy using TEXTMERGE... something like:
USE yourtable
set textmerge to memvar lcOutPut noshow

text
  && open your HTML´s tags (html, body, table)
endtext
scan
     text
        tr
           td<< Field1 >>td/td<< Field2 >>/td
        /tr
     endtext
endscan

text
   && close your HTML tags
endtext

set textmerge to
set textmerge off
or something like that (html tags here are simplified, because UT doesn´t accept some tags...)

and even better: you can look for Rick´s VFPScript´s stuff, and you can create templates, something like an ASP page, but with VFP code, instead of VBScript or JScript.
Claudio Lassala
Previous
Reply
Map
View

Click here to load this message in the networking platform