xsl-list
[Top] [All Lists]

Re: [xsl] xml fragment to string

2010-06-30 05:14:15
On 30/06/2010 11:04, Steven Hentschel wrote:
Are there are other better approaches? Is there a way of dealing with mixed
content?


there are more complete versions of that (handling namespaces etc) (eg google for verb.xsl will lead you to an old one of mine in DaveP#s faq for this list. The code you posted would do mixed content if you removed the select="*" on the apply template so you applied templates to all children, not just elements.

Or saxon (if you are using that and have a version with extension functions enabled) has a saxon:serialize function

david

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

--~------------------------------------------------------------------
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>