Hello guys,
I am newbie and I am blocked in this issue about apply-templates...Could someone give me suggestion how to solve that
xml file
<root>
<Item1>
<Currency>USD</Currency>
<Information>Internet</Information>
</Iteml>
<Rooms>
<A Date="31.01.2005"> 100</A>
<A Date="31.03.2005">411</A>
<A Date="30.09.2005">452</A>
<A Date="31.12.2005">452</B>
<B Date="31.01.2005">462</B>
<B Date="31.03.2005"> 125</A>
<B Date="30.09.2005">350</B>
<B Date="31.12.2005">453</B>
</Rooms>
</root>
<xsl:template match="/">
<Test>
<A>
<xsl:apply-templates select="node()[not(descendant-or-self::Rooms)] | @*"/>
</A>
</Test>
</xsl:template>
<xsl:template match="node()[not(descendant-or-self::B)] | @*">
<xsl:apply-templates select="B"/>
</xsl:template>-->
<xsl:template match="Rooms">
Code
</xsl:template>
Ina
I am newbie and I am blocked in this issue about apply-templates...Could someone give me suggestion how to solve that
xml file
<root>
<Item1>
<Currency>USD</Currency>
<Information>Internet</Information>
</Iteml>
<Rooms>
<A Date="31.01.2005"> 100</A>
<A Date="31.03.2005">411</A>
<A Date="30.09.2005">452</A>
<A Date="31.12.2005">452</B>
<B Date="31.01.2005">462</B>
<B Date="31.03.2005"> 125</A>
<B Date="30.09.2005">350</B>
<B Date="31.12.2005">453</B>
</Rooms>
</root>
<xsl:template match="/">
<Test>
<A>
<xsl:apply-templates select="node()[not(descendant-or-self::Rooms)] | @*"/>
</A>
</Test>
</xsl:template>
<xsl:template match="node()[not(descendant-or-self::B)] | @*">
<xsl:apply-templates select="B"/>
</xsl:template>-->
<xsl:template match="Rooms">
Code
</xsl:template>
Ina