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... I’m unable to place a value in a property and generate the following output :
<order id="Value">
:
<order>
My xsl looks as follow:
<order id = "ID??"> <!--<xsl:value-of select="Message/../../ID"/>-->
</order>
What is the syntax for placing a value here, I tried everything. What am I doing wrong?
Hi Nano
You can do it like this
<order id="{Message/../../ID}"><!-- rest of your XML content goes here--></order>
Or like this
<order><xsl:attribute name="id"><xsl:value-of select="Message/../../ID" /></xsl:attribute><!-- rest of your XML content goes here--></order>
Hope this helps.
/Jan
Thank you Jan!!
That’s exactly what I needed and it works.
Glad I was able to help you out :-) Don't hesitate if there is other stuff you have doubt about. We're a very friendly bunch in here who just loves to help each other out.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Insert a value to a property
Hi... I’m unable to place a value in a property and generate the following output :
<order id="Value">
:
<order>
My xsl looks as follow:
<order id = "ID??"> <!--<xsl:value-of select="Message/../../ID"/>-->
:
</order>
What is the syntax for placing a value here, I tried everything. What am I doing wrong?
Hi Nano
You can do it like this
<order id="{Message/../../ID}">
<!-- rest of your XML content goes here-->
</order>
Or like this
<order>
<xsl:attribute name="id">
<xsl:value-of select="Message/../../ID" />
</xsl:attribute>
<!-- rest of your XML content goes here-->
</order>
Hope this helps.
/Jan
Thank you Jan!!
That’s exactly what I needed and it works.
Hi Nano
Glad I was able to help you out :-) Don't hesitate if there is other stuff you have doubt about. We're a very friendly bunch in here who just loves to help each other out.
/Jan
is working on a reply...