[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Mark,
Consider splitting your process into separate phases, each processing the results of the last, and/or amending the data with apparatus like "maps" representing the abstracted structure. Even when not strictly necessary, this can be an excellent way of helping to manage the complexity of a task like this, as it isolates and foregrounds some of the design decisions.
In XSLT 2.0 this can all be done within a single transformation, although for development you may want to split out into more than one, making it easier to see what's going on.
At 06:57 AM 5/19/2009, you wrote:
Re: [xsl] Building complex, hierarchical html datasets
Subject: Re: [xsl] Building complex, hierarchical html datasets From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 19 May 2009 11:01:05 -0400 |
Mark,
Consider splitting your process into separate phases, each processing the results of the last, and/or amending the data with apparatus like "maps" representing the abstracted structure. Even when not strictly necessary, this can be an excellent way of helping to manage the complexity of a task like this, as it isolates and foregrounds some of the design decisions.
In XSLT 2.0 this can all be done within a single transformation, although for development you may want to split out into more than one, making it easier to see what's going on.
Cheers, Wendell
At 06:57 AM 5/19/2009, you wrote:
Having read your comments, I think maybe I need to try and focus on exactly where I split the data ie. at which generalised level, say <xsl:template match="*/*/group | */*/law | */*/exp-level-1 | */*/exp-level-2" priority="2"> rather than just relying on a general template match for "law" or "group".
It might also simplify things for me if I try to use variables/keys for storing some details rather than repeating complex patterns. I'll have to think about that one.
I think at least you have given me some confidence that my approach is not totally wrong and that basically I may just need to put in more donkey work to pinpoint what data I need to pull out and when. As my boss likes to tell me, "That's why they call it work" ;-))
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Building complex, hierarc, Mark | Thread | [xsl] Selectively convert Attribute, The Web Maestro |
[xsl] Re: Problems merging two xml , sp | Date | Re: [xsl] Selectively convert Attri, The Web Maestro |
Month |