xsl-list
[Top] [All Lists]

Re: How to Process when Row data could be either elements or attributes

2003-03-20 15:17:59
This template
<xsl:template match="*|@*">
  <td>
    <xsl:value-of select="normalize-space(text())"/>
  </td>
</xsl:template>

did not actually worked. So I had to split into two
templates:

<xsl:template match="*">
  <td>
    <xsl:value-of select="normalize-space(text())"/>
  </td>
</xsl:template>

and

<xsl:template match="@*">
  <td>
    <xsl:value-of select="normalize-space(text())"/>
  </td>
</xsl:template>

Sorry about the confusion. It's quite a complex
stylesheet I have attempted, having limited experience
with XSLT. I still have a long journey ahead.

Imrran

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>