xsl-list
[Top] [All Lists]

RE: [xsl] Escaping nodeset content

2006-03-09 11:31:54
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(_at_)mulberrytech(_dot_)com
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
======================================================================


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>