How i can insert image in xsl file?
thanks!
Printable View
How i can insert image in xsl file?
thanks!
Not sure just what you mean.... do want the img to be a part of the XSL, or is the SRC to be pulled from the transformed XML?
Also, what type of format are using xsl to transform an xml document into. Another XML, SVG, HTML?
???????????????????
thank you!
i find this yet.
difference from html in xsl is need close tag <img src="1.gif"></img>
Or, you can immediately close the tag, since it doesn't need to contain any child elements.
For example: <img src="1.gif" />
It's the same way as in XHTML
Note, I have added an extra space before the forward slash, since if you want to use the results (after being parsed op the server) within a non-XML browser, like NS4, it will recognize the tag. I don't think there will be any problem with tags with attributes, but tags aren't recognized when there are no attributes. (Like <br/>)
Thank you very math!!
:)
Note that's a XHTML question though, not XSL.
xsl is used to turn xml into xhtml, so yes, it is an xsl question in a sense.
XSL is used to transform one XML document to another. That other might be (and usually is) XHTML, but that's not a necessity. You could as well transform to SVG or any other XML-based language. img is an XHTML tag, not an XSL tag.
I know that, hence why my first reply was asking what formt he was looking for.