I have an xml document using xinclude to access several other xml files.
<chapter xml:id="chapter1">
<title>Chapter in Main Doc</title>
<section xml:id="section">
<title>Section in Main Doc 1</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/car.jpg"/>
</imageobject>
</mediaobject>
</section>
<xi:include href="../some-doc/section1.xml"/>
<xi:include href="../some-doc/section2.xml"/>
These other section1 and section2 xml files use different images in different sources. I need to copy all the images into one output directory. First, I plan to use XSLT to parse the entire XML document and create a list of copied images. How can I generate this list of xml image files using XSLT? Your ideas are really appreciated.
Thanks in advance..!!
Added:
XSLT 1.0. html, , , "chapter1, section...". imagedata node.
<xsl:template match="@*|node()"> <xsl:template match="*">, xincluded xml . node, . , .
xml- - . , java.