This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: html to xml


Thorbjoern Ravn Andersen writes:
 > Could you introduce an XSLT step that said that all
 > text()-nodes with a h1..h6 tag as their immediate parent, should be
 > enclosed in <p>-tags?

no, because from

 <h1>Foo</h1>
 This is a <code>word</code> word

you'd get

 <h1>Foo</h1>
 <p>This is a </p><code>word</code> word


sebastian


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]