Find and display xml-data by the name of the xml-document
I succesfully got XSLT to find xml-data from the ID that is in the querystring. That's great!
But... can the same thing be done if it is the name of the xml-document that is in querystring? I have tried different random solutions, but nothing have worked yet. Can you help me? I'm convinst that you can!
A little tweek for the issue: When the document is found, the data has to be displayed in an easy way...
Find and display xml-data by the name of the xml-document
I succesfully got XSLT to find xml-data from the ID that is in the querystring. That's great!
But... can the same thing be done if it is the name of the xml-document that is in querystring? I have tried different random solutions, but nothing have worked yet. Can you help me? I'm convinst that you can!
A little tweek for the issue: When the document is found, the data has to be displayed in an easy way...
Thank you!
Some one who has an idea for looping through the XML-nodes until it hits the specific nodes name?
This selects all nodes in the content tree which has the node name YOURNODENAME.
Be aware: If you have non unique nodenames you will get more than one node
hth, Thomas
Thanks, but I can't make it work...
Here is some code:
<xsl:choose>
<xsl:when test="string(umbraco.library:RequestQueryString('name')) != ''">
<xsl:value-of select="$node/omrdenavn" />
xsl:when>
<xsl:otherwise>
<h2>
Error in querystring
h2>
xsl:otherwise>
xsl:choose>
Are there error messages?
A help would be that you output the selected xml via
So you can see what the xpath statement returned
hth, Thomas
I don't really get anything... no errors, no nothing.
Hallo again. The problem is now solved thanks to Chriztian. http://our.umbraco.org/forum/developers/xslt/11180-Shouldn't-this-be-working
The problem is open again...our.umbraco.org/.../11180-Shouldn't-this-be-working
No, sorry.. everything is i order
is working on a reply...