xsl-list
[Top] [All Lists]

Re: [xsl] processing of xml embedded in string

2008-03-31 06:15:37


you need to parse the string as xml, your processor may have an
extension to do this, eg   
<xsl:apply-templates select="saxon:parse(.)"/>
otherwise you'll need to write it outto a file (probably using
disable-output-escaping="yes") and then (on a different transformation)
input the file via an xml parser in the usual way.

If you are feeling brave, and the embedded xml is relatively simple you
could try parsing it directly using xslt, for example try google for
htmlparse.xsl which despite its name can parse XML. But if you have
access to a real xml parser via an extension element I'd use that.



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>