G
gregmcmullinjr
I am spending alot of time on this group, lets see if we can figure
this one out:
I'm trying to determine if a node has any attributes at all. I would
like to do a shallow copy (<xsl:copy>) if it does not, and a deep copy
(<xsl:copy-of>) if it does.
I've tried something like this:
<xsl:template match="//content/*>
<xsl:choose>
<xsl:when test="exists(@*)">
...
</xsl:when>
...
</xsl:choose>
</xsl:template>
but that doesn't seem to work... Any ideas?
this one out:
I'm trying to determine if a node has any attributes at all. I would
like to do a shallow copy (<xsl:copy>) if it does not, and a deep copy
(<xsl:copy-of>) if it does.
I've tried something like this:
<xsl:template match="//content/*>
<xsl:choose>
<xsl:when test="exists(@*)">
...
</xsl:when>
...
</xsl:choose>
</xsl:template>
but that doesn't seem to work... Any ideas?