How to access an exact XML node and not the value of it in an XSL stylesheet?
-
Ok, So in my XML file I have an image node: <img alt="Green arrow" src="green-arrow-up-icone-5011-48.png"/> Now I want to display this in my webpage using XSL: If I use <xsl:value-of select = "//img"/> (there is only one image), I don't get anything because the "value of" img is nothing as it has no nodes in it. How do I make XSL just take that node as it is and just display it on the webpage?
-
Answer:
Use xsl:copy-of instead of xsl:value-of.
Seo Sanghyeon at Quora Visit the source
Related Q & A:
- How to modify a schema.xml of an existing list?Best solution by SharePoint
- How to parse single xml node in windows phone?Best solution by Stack Overflow
- How to access nested array value?Best solution by stackoverflow.com
- How to access the value of a field of the current node in Drupal?Best solution by drupal.org
- How to know the exact price for digital cam with digital zoom 5x(32) for branded products?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.