Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: NOT equal checking for node?

From: Piper707@-------.---
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>
---------------------------------------------------------------------------------------------------------



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent