Funny, I just got that same error for the first time not 5 minutes ago. You just need to add the attribute first - so move the text between the attribute and the anchor.
Hi All , I am getting the same error, my xslt is given below , i found the error on id which is bold in below xslt . I tried to put <xsl:if test="id != ''"> before this but it always return false and not control not enter in if condtion.please help.
I want to post solution of my query. i set a condition postion()=1, which bring two rows at once for my dropdown control.if i set postion()=2 , it gave the same error.
Hi , my other xslt also give error (Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.) on bold syntax given below, it looks like given below
Help adding » to XSLT
Hi
Using Umbraco 4.5.2
I'm trying to style the output of this XSLT
Now whenever I try and use:
<xsl:text>»</xsl:text> or »
I get the following error:
Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
Stumped!
Looking around on the forums there aren't too many similar cases. Hope one of you experts pulls the rabbit outta the hat for me!
Thanks,
Owen
Funny, I just got that same error for the first time not 5 minutes ago. You just need to add the attribute first - so move the text between the attribute and the anchor.
Thank you Jeff!
Owen
Hi All , I am getting the same error, my xslt is given below , i found the error on id which is bold in below xslt . I tried to put <xsl:if test="id != ''"> before this but it always return false and not control not enter in if condtion.please help.
<xsl:for-each select="PayoutTimePeriod">
<xsl:attribute name="id">
<xsl:value-of select="compare:returnName(@id,@jointApp,@feature)"/>
</xsl:attribute>
<xsl:attribute name="name">
<xsl:value-of select="compare:returnName(@id,@jointApp,@feature)"/>
</xsl:attribute>
</xsl:for-each>
error is - Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
I want to post solution of my query. i set a condition postion()=1, which bring two rows at once for my dropdown control.if i set postion()=2 , it gave the same error.
<xsl:for-each select="PayoutTimePeriod">
<xsl:if test="position() = 1">
<xsl:attribute name="id">
<xsl:value-of select="compare:returnName(@id,@jointApp,@feature)"/>
</xsl:attribute>
<xsl:attribute name="name">
<xsl:value-of select="compare:returnName(@id,@jointApp,@feature)"/>
</xsl:attribute>
</xsl:if>
</xsl:for-each>
Hi , my other xslt also give error (Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.) on bold syntax given below, it looks like given below
<xsl:for-each select="Features/ProductName">
<xsl:variable name="FileName">
<xsl:value-of select="@fileName"/>
</xsl:variable>
<td align="center">
<xsl:choose>
<xsl:when test="@fileName!=''">
<xsl:element name="a">
<xsl:attribute name="onclick">OpenCarrierOutline('<xsl:value-of select="$ServerName"/>','<xsl:value-of select="$FileName"/>');</xsl:attribute>
<xsl:attribute name="href">#</xsl:attribute>
<xsl:value-of select="."/>
</xsl:element>
</xsl:when>
</td>
</xsl:for-each>
please help
Thanks
kapil Gupta
INDIA
is working on a reply...