RE: [xsl] Escaping nodeset content

Subject: RE: [xsl] Escaping nodeset content
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 09 Mar 2006 13:15:12 -0500
At 12:47 PM 3/9/2006, Mike wrote:
Call out to an extension function that serializes the node-set as lexical
XML, and pass the lexical XML back as a string.

Saxon has such a function built-in: see saxon:serialize().

You can write your own serializer in XSLT if you must, but it's not much
fun.

Oh, it's not so bad. Several of us have done it! :->


Check out http://xmlportfolio.com/xml-to-string/ (from Evan Lenz, back in '01).

(Using the extension function, if you have it, will be faster and easier. But this, you can hack.)

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Current Thread