Re: [xslt] Structural difference between html and xml output?



Robert Koberg writes:
> Does it work if you do:
> 
> > >   <xsl:template match="bla">
> > >     <p /> <!-- empty paragraph WITH EXTRA SPACE BEFORE CLOSE -->
> > >     <b>foo</b>
> > >     <xsl:apply-templates/>
> 
> 
Actually that's the a similar test as the difference between
<p/> and <p></p>. 
The results are the same, and that's good.
All three notations are equivalent for a p-element not having any
content. And therefor they *must* be treated equivalently...

grettings
	Morus
-- 
Th. Morus WALTER · Manager Content & Data Development
xipolis.net GmbH & Co. KG
Schellingstraße 35 · 80799 München
www.xipolis-base.de · www.mr-check.de · www.xipolis.net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]