RE: [PHP4BETA] Can PHP do XML + XSL = HTML stuff ?
| From: | Lucas Wartenburger | Date: | Sat, 18 Mar 2000 15:04:28 +0000 |
| Subject: | RE: [PHP4BETA] Can PHP do XML + XSL = HTML stuff ? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12356@lists.php.net to get a copy of this message | ||
> >But it may be ugly document which is hard to manage,
> >because you mix
> >structure (your own "hi-energy" tags) with presentation
> >classical HTML
> >tags like <table>, <font>, ...
>
> Right, but for the end users that is irrelevant. Any
> browser may display
> XHTML and that's what matters. Users could not care less of
> separation of
> content from data, that's a programmers concern. The
> original poster already
> has his data separated in the database. Serving HTML/XHTML
> is just a
> matter of insering that data into HTML templates.
You cannot put any kind of data into the structure of a relational
database. (Actually, the thing I'm working on is about juridical
documents - their structure is not as straight as you need it to fit
it into fields and tables). But you _can_ do it in XML. That's why I
want to store it _in_ XML (as text-field). I've developed a specific
XML-format that represents the structure of these documents - this has
nothing to do with (X)HTML. And _if_ I want to show it to a web-client
(that's not the only purpose of the format), I transform it to XHTML
using XSLT.
[...]
> >> I can see you never tried any of that in practice or
> >> else you wouldn't be
> >> say what you are saying.
My XSL-Transformations are working, I just don't use PHP to call it.
Anyway, I don't have to justify anything, because I know what I'm
saying (and I know what is - and what is not - appropriate style of
writing on a list about people and projects I even don't know).
Bye
Lucas