Subject: Re: [xsl] redirecting ouput to a different file? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 18 Aug 2011 20:18:13 -0400 |
I'm working in v2.0. I'm thinking that <xsl:result-document> might be the solution, but I haven't fully absorbed the implications or process. So here is the probelm. I have an input document that has a name like DMC-GAASIB0-01-32-00-00-00000-051A-B_000-00.xml. In that document is a bunch of tags that have the data that makeup this name:
<avee> <modelic>GAASIB0</modelic> <sdc>01</sdc> <chapnum>32</chapnum> <section>0</section> <subsect>0</subsect> <subject>00</subject> <discode>00</discode> <discodev>000</discodev> <incode>051</incode> <incodev>A</incodev> <itemloc>B</itemloc> </avee> ... The question here is, can I read file of one name and output all this result to a new file name based upon the values in the mapping file?
<xsl:template match="avee"> <xsl:result-document href="DMC-{modelic}-{sdc}-{chapnum}-.... ...blah... </xsl:result-document> </xsl:template>
I'm thinking that I have to write all the content to a variable as a nodeset (not create any output), then send that nodeset content via xsl:result-document to the new file name.
Am I going in the right direction or is there something else I should consider?
-- Contact us for world-wide XML consulting & instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] redirecting ouput to a differ, dvint | Thread | Re: [xsl] redirecting ouput to a di, Dan Vint |
Re: [xsl] stop the processing of de, David Carlisle | Date | Re: [xsl] stop the processing of de, Dan Vint |
Month |