Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: NOT equal checking for node? >Thread Next - Re: NOT equal checking for node? Re: NOT equal checking for node?To: NULL Date: 12/2/2005 12:52:00 AM Thanks. much better. The <xsl:template match="*"> seems to fit my
needs.
I have run into another problem,
1) how do I call the * template?
I'm need to convert all tags (other than those with special handling)
of the form
<A>1234<A>
to
<TAG>
<NAME>A</NAME>
<VALUE>1234</VALUE>
</TAG>
<xsl:template match="INPUT">
<NEW>
<A><xsl:value-of select="A"/></A>
<B><xsl:value-of select="B"/></B>
<xsl:apply-templates select="* />
<xsl:apply-templates select="SPECIAL" />
</NEW>
</xsl:template>
-----------------------------------------------------------------------------------
I must have the special handling tag after the * handling.
2) The * template is included below. Is it correct to say node() to get
the node name?
-----------------------------------------------------------------------------------
<xsl:template match="*">
<xsl:variable name="tag_value">
<xsl:value-of select="."/>
</xsl:variable>
<FEATURE>
<MNEMONIC><xsl:value-of select='node()'/></MNEMONIC>
<VALUE><xsl:value-of select="$tag_value"/></VALUE>
</FEATURE>
</xsl:template>
---------------------------------------------------------------------------------------------------------
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
