[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Need to Split/Un-Nest elements

Subject: Re: Need to Split/Un-Nest elements
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 17 Jun 2008 13:30:20 +0100
Re:  Need to Split/Un-Nest elements
2008/6/17 Mandar Jagtap <mandar.jagtap@xxxxxxxxx>:
> Hi Andrew,
>
> I am not sure if you got chance to take a look my last post in the
> thread so describing the same again as below:
>
> Thanks for the response and stylesheet too...It's working well with me
> but with one limitation. In the input xml, I can't be sure about that
> how many nested block level elements would be there inside <page> i.e.
> descendants of <page> can be many nested <block> elements and also they
> can be <list>, <table> etc.  I tried using <xsl:template match="*"
> mode='copy'> instead of <xsl:template match="inline" mode="copy"> in the
> stylesheet but in that case it doesn't copy parent elements of original
> <inline> or <block> from original <page> element to newly generated
> (replicated) <page>. i.e. as per example below, it doesn't copy the 3
> nested <block> elements in the replicated <page> element. Could you
> please suggest on this?


Ahh ok in which case this goes from a hard problem to a really hard problem :0)

It should be possible to do it in 2 passes, and if you re-form and
then re-post the question you might be lucky and someone might do it
for you.

Alternatively someone might do it for a fee - are you able to offer
the work out?


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.