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

Re: Generating "nested" Result Documents From Flat Sou

Subject: Re: Generating "nested" Result Documents From Flat Source
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Mon, 04 Oct 2010 17:21:48 -0400
Re:  Generating "nested" Result Documents From Flat Sou
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/04/2010 04:53 PM, Eliot Kimber wrote:
> I have a transform that converts Word docs into sets of result
> documents. My general technique is to pre-process the Word into a
> sequence of elements annotated with the effective result level,
> defining the result hierarchy the elements should generate.
>
> Given this I can then use for-each-group group-starting-with to
> translate the flat list into the appropriate hierarchy via
> essentially recursive descent (that is, each level applies
> processing for the next level down to the current group in the
> for-each).
>
> However, I'm running into a problem when I have the case where a
> group at level 1 and a group at level 2 both need to generate result
> documents.

Does level 2 always start a new document?  Or only sometimes?

In any case, I think the problem is with your putting the result doc
into a variable, and trying to start a new variable inside its scope.  I
think you will either need to do this all within one pass within your
transformation, or use two separate transformations.

~Chris
- --
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
bI like being free, and that makes me an idiot, I suppose.b
  b Stan Rogers, bThe Idiotb
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyqRWcACgkQGfhmdwB3wxmECwCfR9kbW95foe+csgYYoU1MPJkU
KXIAoJaG4fPyXRZolr4XjzERq0h6CUgK
=hrta
-----END PGP SIGNATURE-----

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.