Re: [xsl] Need to render input document as string form of XML in output

Subject: Re: [xsl] Need to render input document as string form of XML in output
From: Chris Wolf <cwolf.algo@xxxxxxxxx>
Date: Tue, 11 Sep 2012 12:24:26 -0400
That looks pretty good, unfortunately, the company I work for is very
picky about licenses and they only accept certain Open Source
licenses.  At least Hermann's code has no such copyright on it
(Hermann, please correct me if I'm wrong), so I can just assert
"I found it on the Internet", but maybe the lawyers won't even go for
that, but in any case, they would probably have an issue with the
copyright-without-license even though re-distribution is granted.   I
will need to check with them in either case...

Also thanks for the tip regarding output method="text" vs.
method="html" - when I checked the online XSTL reference I looked to
see
if xsl:output took disable-output-escaping, and when I didn't see
that, I went ahead with the hacks, which I now reverted.

   -Chris

On Tue, Sep 11, 2012 at 11:47 AM, Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
wrote:
> Chris,
>
> Whenever this question comes up I refer to this piece of work:
>
> http://lenzconsulting.com/xml-to-string/
>
> Evan's cover page says it writes the markup in escaped form, but if you use
> method='text' it will come out unescaped. (In fact output escaping is
always
> disabled when serializing with the 'text' method so the same will apply to
> Hermann's code.)
>
> Cheers,
> Wendell
>
>
> On 9/11/2012 10:59 AM, Chris Wolf wrote:
>>
>> Hermann,
>>
>> Danke f|r die Hilfe einen anderen "IBMer"...
>>
>> That worked really well, except I need to email the result,
>> prgrammatically, and the email module I'm stuck with cannot deal with
>> mime/multipart, so it has to be plain text rather then HTML.   I just
>> needed to hack your code to add disable-out-escaping="yes"
>> in a few places.  Too bad xs:value-of doesn't take AVTs, so I could
>> have easily parameterized the behavior.
>>
>> Vielen Dank,
>
>
> --
> ======================================================================
> 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