Re: [xsl] Correct way to handle nested tags

Subject: Re: [xsl] Correct way to handle nested tags
From: "Rafael R. Sevilla" <sevillar@xxxxxxxxxxxxxxxxx>
Date: Thu, 14 Jun 2001 11:52:02 +0800 (PHT)
On Wed, 13 Jun 2001, Athanasios Gaitatzes wrote:

> How would I generate the html:
> "some text <img src="img1.gif"> more text <img src="img2.gif"> some more
> text <img src="img3.gif"> end of text"

Note that that that is not *valid* XML.  Those tags are not nested;
actually they are <img src="img1.gif"></img>.  XSLT only supports
generating valid XML by definition.  if say

<xsl:output method="html"/>

it *might* (for some XSLT processors anyway, Saxon in my experience works
this way), produce HTML 4.0 (not XHTML), which may or may not conform to
the XML spec.

Rafael R. Sevilla <sevillar@xxxxxxxxxxxxxxxxx>   +63(2)   8177746 ext. 8311
Programmer, InterdotNet Philippines              +63(917) 4458925

Version: 3.12
GAT d- s:- a- C++++ UL+++ P+++ L+++ E++ W++ N+ o K- w---
O- M-- V- PS+ PE Y+ PGP++ t+ 5 X+ R tv+ b+++ DI++ D+
G e++ h! r++ y+

 XSL-List info and archive:

Current Thread