[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Generating "nested" Result Documents From Flat Sou
On 04/10/2010 21:53, 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. Hard to say at this level of generality but possibly you just need to modify your grouping logic. Given your flat sequence of headings and paras the _sectioning_ logic is for-each-group group-starting-with="heading1" for-each-group group-starting-with="heading2" /for-each-group /for-each-group however if you insert xsl:result-document in that flow you'll get the error that you showed. However your description is essentially that documents contain the initial fragments of level 1 or 2 sections, so that is something more like for-each-group group-starting-with="heading1|heading2" ... /for-each-group Now it;s a lot safer to wrap the ... in an xsl:document perhaps..... David
|
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
|