Problem: When i use < img src="" /> tag in XSLT i face problem while transforming, normally i get Blank page or some unkown error.
Answer:
Normally when you use <img> tag, there may be various reason. Like When image tag is written you must use / at the end <img src="" />
Also when you want to use some value select into the tag you get white space. Normally you might be doing something like this.
<img src="<xsl:value-of select="node1/node2" />" />
Actually what you have to write is <img src="{node1/node2}" />
Just remove all that select and just curly braces at start and end. There may be certain times that you may have to write <img src="{node1/@node2}" /> i.e. I mean you have to use @
at the last note.
Using value-of select is not allowed in any tag. the above given procedure is the solution to it.
If you still face the problem you reply to same post. I would edit the post and more solutions.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment