× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: HTML to XML, vice versa
  • From: "David Morris" <dmorris@xxxxxxxxxxxxx>
  • Date: Wed, 07 Mar 2001 09:03:38 -0700

Tony,

As you have pointed out XHTML is the successor to HTML. One advantage 
that you have with data defined using XML is that it can be transformed to 
another format.  This means that you do not have to do this coding yourself, 
but can have someone else do the work.  For example you can code your 
decorator in java to support a specific translation of an HTML <DT> to an 
XHTML <dt> or an XML <car>.  This support in many cases would be 
implemented as part of a parser that adds this final decoration. You can 
use a several other methods that are defined as part of XML to perform 
this transformation. 

There are three main ways to do this, you could use XSLT, which is fairly 
widely supported and tested.  XSL, which is less widely supported but more 
capable, or you could use a parser and java? to write your own.  In almost all 
cases it is best to do this transformation on the server because even though 
these technologies are supported in the most recent versions of the popular 
browsers, the browser support is inconsistent and in some cases still buggy.

David Morris

>>> tony.goodwin@dact.demon.co.uk 03/07/01 02:24AM >>>
I think you should perhaps be thinking about xhtml.

xhtml 1.0 is the successor to HTML 4.0 and is meant to be a XML compliant
grammar of HTML.
As yet no browser supports it, but check out www.w3c.org If you are
designing a method of creating XML from HTML, you may well want to make
xhtml the output of such transformations.
If so, you can use any standard xml parser and the DTDs provided by the W3
forum for xhtml to validate, translate.

Also font and other such tags should always be placed in a stylesheet.


BTW there is a utility XML tidy which can change HTML to XHTML(it can also
place font etc into a document level style) - again see above site

Tony



+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.