Re: Newbie, HTML calling XSLT
- From: dingbat@xxxxxxxxxxxxxx
- Date: 22 Aug 2005 03:55:41 -0700
Peter Flynn wrote:
> Clive wrote:
>
> > For an exercise, I would like to write a simple HTML page that calls
> > XSLT and passes it parameters.
>
> You can't do this with [original] HTML -- your page must be XHTML (or any
> other flavour of XML) because XSLT 1.0 only processes XML. The original
> HTML is written in SGML, not XML, and that won't work with XSLT.
That's a misleading statement. You can't "work with XSLT" from within
HTML because you need scripting (HTML isn't a programming language),
not because it's not XML (and so would need XHTML). If you have
JavaScript and some XML scripting tools, then you can use XSLT from
_within_ HTML perfectly well.
You can't process HTML as _input_ to XSLT because it's not XML -- but
that's a totally different question.
You can make HTML from XSLT easily, because this was an obvious
use-case for XSLT and so there's an option to support it (look at
<xsl:output ... /> )
As for the "scripting" case, then this works very well (and with HTML),
but you need to have a "modern" browser. It may work for intranets or
local demonstrations, but you should be careful putting such a thing
onto the public web and expecting it to work for everyone.
.
- Follow-Ups:
- Re: Newbie, HTML calling XSLT
- From: Peter Flynn
- Re: Newbie, HTML calling XSLT
- References:
- Newbie, HTML calling XSLT
- From: Clive
- Re: Newbie, HTML calling XSLT
- From: Peter Flynn
- Newbie, HTML calling XSLT
- Prev by Date: Re: keyref constraint as part of type - impossible?
- Next by Date: Re: keyref constraint as part of type - impossible?
- Previous by thread: Re: Newbie, HTML calling XSLT
- Next by thread: Re: Newbie, HTML calling XSLT
- Index(es):
Relevant Pages
|