David:
in XSLT, markup should only be created using the devices that are meant
for this purpose, i.e. <xsl:element> and literal element creation. That
is, if your text output contains the character < then this character has
to be escaped (by the processor) so that it does not look like it's
starting a tag.
With >, there's no danger of confusion, and indeed the XSLT spec does
not require one to escape it.
Your original question was on outputting non-HTML tags (using html
method) without the end-tag. I believe Sablot is correct here, only
omitting the end tag for one of the 13 or so empty elements in HTML 4.0.
This belief is based on my interpretation of the cryptic sentence in
section 16.2 of the XSLT spec which ends with the word "span" (the only
occurence of "span" in the document). Can anyone figure out what the
sentence really means?
Tom Kaiser
David Hedbor wrote:
>
> Petr Cimprich <[EMAIL PROTECTED]> writes:
>
> > David Hedbor wrote:
> >
> > > Is it then a bug that < is quoted as < and > isn't quoted at all?
> >
> > I don't think so. The only characters which MUST be quoted are < and &. > can't
> > be interpreted as a start of markup. The following string is still well formed:
> >
> > <xml-tag><non-xml-tag></xml-tag>
>
> In the HTML concept, that's not true. Since the output is HTML,
> shouldn't the end tag be quoted as well?
>
> --
> [ Below is a random fortune, which is unrelated to the above message. ]
> The moon is made of green cheese.
> -- John Heywood