[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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-----
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|