Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all, I have a very newbie cuestion:
I can write into the value of a node by using this syntax:
<node><xsl:value-of select="@nodeName"/></node>
But what if I want to write an attribute? For example:
<node attribute="VALUE OF THE ATTRIBUTE">nodeContent</node>
Thanks in advance
Untested, but this might work
<node><xsl:attribute name="attribute"><xsl:value-of select="@nodeName"/></xsl:attribute></node>
Rich
Hi Manuel,
There's a nice little shortcut called an "Attribute Value Template":
<node attribute="{@nodeName}"></node>
/Chriztian
Thank you!
I will use the one with the shortcut
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Writting attributes in XML
Hi all, I have a very newbie cuestion:
I can write into the value of a node by using this syntax:
But what if I want to write an attribute? For example:
Thanks in advance
Untested, but this might work
Rich
Hi Manuel,
There's a nice little shortcut called an "Attribute Value Template":
/Chriztian
Thank you!
I will use the one with the shortcut
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.