xsl-list
[Top] [All Lists]

Re: [xsl][xslt v1.0] How to parse the string as node-set?

2012-09-29 08:52:16
At 2012-09-29 09:31 -0400, Mak Praveen wrote:
I appreciate the help. Can someone please direct me to an example
solving this problem?

I don't think you'll get a better answer than Liam's.

Since you say you are obliged to use XSLT 1.0, it cannot be done in a single step without using vendor extensions ... which is just what Liam said. It is, however, straightforward to use XSLT 1.0 in two transformations: the first to extract the XML and the second to act on the extracted content as a fresh input file (not a tree).

If the XSLT 1.0 processor you are using is Saxon 6.5.5, then you could look into using something like the extension saxon:next-in-chain= in order to invoke a second transformation when the first is complete. But I've never used that myself so I'm not sure what would happen to the escaped text produced by the first transformation, if it would be treated as a text node or be parsed as an input tree.

I think you'll have to do the legwork.

I hope this helps provide a direction.

. . . . . . . . Ken


--
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/
G. Ken Holman                   mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal


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