Hi All,
Happy New Year.
I am working with XSLT 1.0.
As I can capture with a XSL in several XML files ranging from documents
according to their locations within the file, for example:
Capturing all the documents from the code: 456, until the code: 012
******************
My XML1 File:
<?xml version="1.0" encoding="iso-8859-1"?>
<spoolpd>
<pd use="x">
<a>
<cab>
<cod>789</cod>
<name>Luis</name>
</cab>
</a>
</pd>
<pd use="x">
<a>
<cab>
<cod>456</cod>
<name>Juan</name>
</cab>
</a>
</pd>
<pd use="y">
<a>
<cab>
<cod>123</cod>
<name>Jose</name>
</cab>
</a>
</pd>
<pd use="z">
<a>
<cab>
<cod>012</cod>
<name>Maria</name>
</cab>
</a>
</pd>
</spoolpd>
******************
My XML2 File:
<?xml version="1.0" encoding="iso-8859-1"?>
<spoolpd>
<pd use="a">
<a>
<cab>
<cod>012</cod>
<name>James</name>
</cab>
</a>
</pd>
<pd use="b">
<a>
<cab>
<cod>123</cod>
<name>Antonio</name>
</cab>
</a>
</pd>
<pd use="c">
<a>
<cab>
<cod>456</cod>
<name>Mary</name>
</cab>
</a>
</pd>
<pd use="d">
<a>
<cab>
<cod>789</cod>
<name>Julieth</name>
</cab>
</a>
</pd>
</spoolpd>
******************
My output desired:
<?xml version="1.0" encoding="iso-8859-1"?>
<spoolpd>
<pd use="x"> ==> capturing the first xml file (XML1)
<a>
<cab>
<cod>456</cod>
<name>Juan</name>
</cab>
</a>
</pd>
<pd use="y"> ==> capturing the first xml file (XML1)
<a>
<cab>
<cod>123</cod>
<name>Jose</name>
</cab>
</a>
</pd>
<pd use="z"> ==> capturing the first xml file (XML1)
<a>
<cab>
<cod>012</cod>
<name>Maria</name>
</cab>
</a>
</pd>
<pd use="c"> ==> capturing the second xml file (XML2)
<a>
<cab>
<cod>456</cod>
<name>Mary</name>
</cab>
</a>
</pd>
<pd use="d"> ==> capturing the second xml file (XML2)
<a>
<cab>
<cod>789</cod>
<name>Julieth</name>
</cab>
</a>
</pd>
</spoolpd>
thank you very much for the help.
Luis Fdo.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--