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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to