[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL-FO list with sublist
Lucas,
Well, it's true that if you never use anything but xsl:for-each and xsl:value-of, you will soon hit a wall. In general, an experienced XSLT designer uses templates, which are designed precisely to afford the necessary flexibility, in preference to for-each and value-of. Your structure is, however, very regular. Think of it like this: for each goal, generate blocks for any content then, make a list for each question in the goal, make an item inside, generate blocks for any content you want here then, if any metrics are present, make a list inside, for each metric, make an item inside it, generate blocks for any content you want here You could do this entirely with for-each and value-of. If you know for a fact that no question appears without metric children, you could even skip the conditional "if any metrics are present". (The conditional is present to avoid creating empty lists in case there is nothing to make an item in your sublist.) Does this help? (We could use templates instead of for-each for better code, but that wouldn't address the particular question you are asking.) Cheers, Wendell At 03:20 PM 12/12/2007, you wrote: Hi,successiva?"> <metricintervento" ChartLink=""> </metric> </question> </goal> </gqmroot> ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
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
|