Kaiserovi <[EMAIL PROTECTED]> writes:
> 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?
Well, I think we're being a bit confused about the issue. I understand
the problem with the end-tag and know how to bypass is. The confusion
from my point of view is that sablotron outputs (using HTML output
mode), <foo> - that is invalid in HTML so shouldn't it output
either <foo> or <foo>? This is when using CDATA or <xsl:text>.
--
[ Below is a random fortune, which is unrelated to the above message. ]
I don't deserve this award, but I have arthritis and I don't deserve that
either.
-- Jack Benny