Re: [xsl] Read directory and its contents and put it to another file

Subject: Re: [xsl] Read directory and its contents and put it to another file
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Tue, 7 Oct 2008 13:10:36 +0200 (CEST)
"J. S. Rawat" wrote:

  Hi,

> Content of 1.tbl
> <table>
> ...
> </table>

> Input
> <p>xxx <span id="t1"/> yyy </p>

> Output
> <p>xxx <table>...</table> yyy</p>

  The following should give you the idea, I let you the details:

    <xsl:template match="span[@id]">
       <xsl:copy-of select="doc(concat(@id, '.tbl'))"/>
    </xsl:template>

  Depending on the overall problem, you could be interested by the
Modified Identity Transform pattern.

  Regards,

--drkm

Current Thread