Subject: Re: [xsl] XSL pattern needed for begin/end elements From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 07 Jul 2004 13:01:43 -0400 |
I'm looking for an XSL pattern to solve the problem of going from XML that has separate begin and end elements to one that does not.
Please, please note that I do not control either the source or target XML formats. If I did, this would be much easier.
Source XML snip:
<doc> <hyperlink_begin id=3D"111" end=3D"222"> <locator_url protocol=3D"http" host_name=3D"www.sf.net"/> </hyperlink_begin> <text_run>Click</text_run> <text_run emphasis=3D"bold">here.</text_run> <hyperlink_end id=3D"222" begin=3D"111"/> </doc>
Target XML example:
<cod> <HyperLink xlink:href=3D"http://www.sf.net"> Click <b>here.</b> </HyperLink> </cod>
In my case I can assume that associated begin and end hyperlink tags will occur as siblings -- though generally this is not the case and in fact, this is the reason the begin and end tags are unique elements.
Cheers, Wendell
====================================================================== 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL pattern needed for be, Vasu Chakkera | Thread | Re: [xsl] XSL pattern needed for be, Mike Trotman |
Re: [xsl] XSL pattern needed for be, Vasu Chakkera | Date | Re: [xsl] XSL pattern needed for be, M. David Peterson |
Month |