jammer1221
Programmer
Hi all,
I'm fairly new to XSL/T and I've been trying to get this problem to work. Here's the set up. I have a document full of MT elements. They contain a N attribute and a V attribute. The N's always have values but the V's sometimes don't. Is it possible to match all empty V attributes and if empty re-write the value for the N attribute?
I've been trying to do it like this:
But, to no avail. Is this sort of thing even possible? Where did I go wrong? Let me know if you need more information!
Thanks,
Matt
I'm fairly new to XSL/T and I've been trying to get this problem to work. Here's the set up. I have a document full of MT elements. They contain a N attribute and a V attribute. The N's always have values but the V's sometimes don't. Is it possible to match all empty V attributes and if empty re-write the value for the N attribute?
I've been trying to do it like this:
Code:
<xsl:template match="@V[. = '']">
<xsl:attribute name="N">some new format</xsl:attribute>
</xsl:template>
But, to no avail. Is this sort of thing even possible? Where did I go wrong? Let me know if you need more information!
Thanks,
Matt