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: Output HTML as Content of XML Elements


> There is an XML file  whch already contains HTML markup.
> I want the HTML markup to be passed undamaged through an XSL 
> transformation
> and to be output in the final HTML document:

Norm Walsh does this with his docbook stylesheets
(www.nwalsh.com)


any input markup which has the html namespace is simply
passed through to the output, less the namespace.

(I've just spent 5 mins trawling the code, and couldn't find it!)

Basically input =

<html:p>kkkkkk </html:p>
becomes
<p>kkkkk</p>

template match on html:*
  element name="local-name()"
    attribute copy-of
  /element
/template

HTH DaveP


 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]