Subject: Re: Read directory and its contents and put it to another file
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Tue, 7 Oct 2008 18:03:29 +0530
|
It seems this should work for this requirement,
<xsl:template match="span">
<xsl:variable name="idVal" select="@id" />
<xsl:variable name="temp" as="element()?">
<xsl:copy-of select="$inputFiles/*[contains(base-uri(.), $idVal)]" />
</xsl:variable>
<table>
<xsl:copy-of select="$temp/@id" />
<xsl:copy-of select="node()[not(self::tagnotwanted)]" />
</table>
</xsl:template>
This is not tested.
On Tue, Oct 7, 2008 at 5:56 PM, J. S. Rawat <jrawat@xxxxxxxxxxxxxx> wrote:
> Hi Mukul,
> I forget one issue, if you could suggest the syntax. The tables which i want
> to call have following structure
> <table id="a" a="" b="">
> <tagnotwanted/>
> ...
> </table>
>
> and don't want <tagnotwant> element and some attributes of table. Output
> should be
> <table id="a">
> ...
> </table>
--
Regards,
Mukul Gandhi
|