Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: XML2HTML

  • Subject: Re: XML2HTML
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Sat, 30 Apr 2005 11:38:45 +0100
  • Newsgroups: alt.html
  • References: <d4vilb$1osa$2@godfrey.mcc.ac.uk> <pan.2005.04.30.09.56.14.576853@tobyinkster.co.uk>
  • User-agent: KNode/0.7.2
Toby Inkster wrote:

> Roy Schestowitz wrote:
> 
>> I have been searching the net, but never managed to find a tool that can
>> convert, in some form or another, an XML file into HTML. I prefer to
>> avoid XSL and just have an XML file easily visualised.
> 
> What exactly do you want?
> 
> Given this:
> 
> <foo x="y">bar</foo>
> 
> Would you want it turned into this?
> 
> <pre>
> <b>&lt;foo <i>x="y"</i>&gt;</b>bar<b>&lt;/foo</b>
> </pre>
> 
> (Like syntax highlighting)
> 
> Or this:
> 
> <div class="foo">bar</div>
> 
> (Some sort of transformation.)

Given:

<foo attr='1'>
  <kong attr'99>
  </kong>
</foo>

I would like, for example, something like:

<ul>
  <li>foo 1
    <ul>
       <li>kong 99</li>
    </ul>
  </li>
</ul>


Or even just raw text like:

Foo 1
  Kong 99


-- 
Roy S. Schestowitz
http://Schestowitz.com

  • References:
    • XML2HTML
      • From: Roy Schestowitz <newsgroups@schestowitz.com>
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index