Subject: Re: [xsl] Generating "nested" Result Documents From Flat Source From: "Christopher R. Maden" <crism@xxxxxxxxx> Date: Mon, 04 Oct 2010 17:21:48 -0400 |
-----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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Generating "nested" Resul, Eliot Kimber | Thread | Re: [xsl] Generating "nested" Resul, David Carlisle |
Re: [xsl] Generating "nested" Resul, David Carlisle | Date | [no subject], Unknown |
Month |