Subject: Re: [xsl] transforming flat structure with xsl 2.0 grouping From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 19 May 2013 18:27:51 -0400 |
I have an extremely flat structure exported from Framemaker (not structured). The elements are created from style names and the structure is completely flat. Just about everything is a sibling of everything else.
I am transforming this flat structure to a proprietary content model (DTD). The entire project consists of a lot of group. Most of which I have a handle on. However there is aspect I could use some help with.
I have an XML input structure that something like this:
<XML> <Warning> </Warning> <Graphic> <IMAGE href="icon-30.gif"/> </Graphic> <WarnHazText>Cleaning solvent </WarnHazText> <WarnHazText>Wear eye</WarnHazText> <ProcStep>All weldel.</ProcStep> <Warning> </Warning> <Graphic> <IMAGE href="icon-30.gif"/> </Graphic> <WarnHazText>Cleaning solvent </WarnHazText> <WarnHazText>Wear eye</WarnHazText> <HazText>CARC </HazText> <HazText>ALWAYS follow /HazText> <Note></Note> <HazText>When using a torch</HazText> <ProcStep>All weldel.</ProcStep> </XML>
Or it could look like this:
<XML> <ProcStep>All weldel.</ProcStep> <Warning> </Warning> <Graphic> <IMAGE href="icon-30.gif"/> </Graphic> <WarnHazText>Cleaning solvent </WarnHazText> <WarnHazText>Wear eye</WarnHazText> <HazText>CARC </HazText> <HazText>ALWAYS follow /HazText> <ProcStep>All weldel.</ProcStep> </XML>
-- Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] transforming flat structure w, Charlie 0 | Thread | RE: [xsl] transforming flat structu, Charlie 0 |
[xsl] transforming flat structure w, Charlie 0 | Date | [xsl] SASS and RWD, Lincoln Mitchell |
Month |