On Wed, 4 Aug 2004 15:59:10 -0700, milkwaybridge <[EMAIL PROTECTED]> wrote:

I want to make a page which can diplay a file's content, this file can be whatever format, like java, txt or etc.
but if I generate them with a file or html generator, all the format is gone. the file becomes a huge string.
Is there any kind of generator, reader or action can do this?
Thank you for your information!!!

You could create a stylesheet which converts this big string into an XML file, e.g. break the string into lines using '\n' as separator. The result could look like this:

<html>
  line1<br/>
  line2<br/>
  ...
</html>

or any other format you prefer.

Have a look at the xslt-functions translate(), substring(), substring-
before() and substring-after(). I think the first one is sufficient
for your needs.

HTH,
Gerald
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to