Using xsl Stylesheet - html view including images
Posted: Sun Nov 30, 2003 8:02 pm
Hi George,
Thank you again for your help it works fine so far but I still have my problems with the "broken image". When I am using
<Bild>
<Pfad/> <!-- no path for a picture-->
</Bild>
in my xml document I will have a broken image (red X) in my html view.
How can I fix this problem? I don't want to have this "red X" instead I will have a text like "no picture available". I was trying the following:
<xsl:for-each select=".//Pfad">
<img alt="no picture available">
<xsl:attribute name="src">
<xsl:value-of select="."/>
</xsl:attribute>
</img>
The html view still show me the "red X" followed by my text "no picture available". Do you have an idea how to solve this problem? Only showing me my text and nothing else.
Thank you very much again.
cu Marc
Thank you again for your help it works fine so far but I still have my problems with the "broken image". When I am using
<Bild>
<Pfad/> <!-- no path for a picture-->
</Bild>
in my xml document I will have a broken image (red X) in my html view.
How can I fix this problem? I don't want to have this "red X" instead I will have a text like "no picture available". I was trying the following:
<xsl:for-each select=".//Pfad">
<img alt="no picture available">
<xsl:attribute name="src">
<xsl:value-of select="."/>
</xsl:attribute>
</img>
The html view still show me the "red X" followed by my text "no picture available". Do you have an idea how to solve this problem? Only showing me my text and nothing else.
Thank you very much again.
cu Marc