xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas B. Passin" <tpas...@mitretek.org>
Subject Re: <br> and </br> tags
Date Mon, 11 Jun 2001 14:19:24 GMT
Here's what's happening.  "<br>" by itself is not allowed in xml - it's not
"well-formed".  So no xml document may contain it.  You have to have either
"<br/>" or "<br></br>". The recommendation you cite is talking about html
documents that may be created, but it does not apply to the xml.  No xml
parser will accept <br> by itself - that would be a serious bug.

Now, when you use an xslt stylesheet to create and html document by
transforming an xml document, by default the output is in xml.  So you get
<br></br> or <br/> in the transformed output.

You can override the default as was pointed out earlier in this thread by
inserting the

<xsl:output method='html'/>

instruction in your stylesheet.  Then the processor will translate <br/>
into <br>.  But the input document still has to be well-formed xml, so
"<br>" is still not allowed there.

Has this addressed your issue?

Tom P

[Britta Schüle]

BUT, no matter what we try, the parser always seems to insert a <br /> when
it finds a <br> in the xsl.

In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message