At 2003-07-14 11:26 +0100, David(_dot_)Pawson(_at_)rnib(_dot_)org(_dot_)uk
Given XML input of the form
<description>HereâEUR$(1s (Ba Google search for a famous phrase, <a
href="http://www.google.com/search?q=to+be+or+not+to+be">to be or not to
be</a>; give it a try and see what happens.
1. its utf-8 encoded.
2. The output is to be html.
I can't figure out the template for description
element (or the output method?)
that will provide me with an a element and an href attribute
as if were normally marked up content.
Isn't this the classical justification for disable-output-escaping?
copy-of - which I guessed would work (wrongly)
You don't want the *structure* of your input to be copied, though. And
your input HTML is flat next, not markup.
both put out escaped content...
You want the output escaping to be disabled.
My understanding is that disable-output-escaping= was created to
accommodate database blobs of HTML that might be serialized wrapped in XML
and emitted without the escaping of the content ... which looks like what
you are trying to do.
I hope this helps.
Upcoming hands-on courses: in-house corporate training available;
North America public: XSL-FO Aug 4,2003; XSLT/XPath Aug 12, 2003
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6 Definitive XSLT and XPath
ISBN 0-13-140374-5 Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-11-X Practical Formatting Using XSL-FO
Member of the XML Guild of Practitioners: http://XMLGuild.info
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list