From: annirack(_at_)shaw(_dot_)ca [mailto:annirack(_at_)shaw(_dot_)ca]
Sent: Wednesday, January 07, 2004 10:21 AM
Subject: Re: [xsl] self closing elements with attributes
You're exactly right. I am using html as my output. I want
closed tags because I'm trying to be compliant to the
emerging standards by using xhtml. I notice now that I
forgot my xmlns which might have something to do with the problem.
In XSLT 1.0, the only way to generate XHTML is to use the XML output method.
That will correctly generate close tags for all elements. Keep in mind,
though, that most processors will minimize empty elements when serializing
XML output (i.e., <br/> instead of <br></br>). That isn't a problem for
most XHTML elements, but it can be an issue if you create a textarea box
with no text--it will be serialized as <textarea . . . />, which will cause
IE (at least) to choke--it doesn't parse the tag correctly, so all of the
XHTML following the textarea box appears as text in the box instead of being
rendered by the browser.
XSLT 2.0 will offer XHTML as a native output method.
hth,
b.
| brian martinez
brian(_dot_)martinez(_at_)cendant(_dot_)com |
| lead gui programmer 303.357.3548 |
| cheap tickets, part of trip network fax 303.357.3380 |
| 6560 greenwood plaza blvd., suite 400 englewood, co 80111 |
| cendant travel distribution services http://www.cheaptickets.com/ |
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list