xsl-list
[Top] [All Lists]

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

2008-10-07 08:33:54
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(_at_)aptaracorp(_dot_)com> 
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

--~------------------------------------------------------------------
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>
--~--