xsl-list
[Top] [All Lists]

Re: [xsl] Generating "nested" Result Documents From Flat Source

2010-10-04 16:22:08
-----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/ >
“I like being free, and that makes me an idiot, I suppose.”
  — Stan Rogers, “The Idiot”
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-----

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>