This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: replacing images with alt tags


> part.  Is there something wrong with my choose?  How can I do this
> better?  And how can I get the alt text to replace the ||image skipped||
> that I currently have?  And better yet is their a good way to do away
> with this and convert images?  That's probably wishful thinking :)
>
> <xsl:when test="parent::a"> <!--img presents the src for an
> image if the image is a link ie. has parent::a-->
> <xsl:copy-of select="@alt"/>
>   </xsl:when>

    Just out of curiosity, why do you use <xsl:copy-of/> instead of
<xsl:value-of/> ?
    Maybe in this case they work the same, but it looks to me you want the
"content" (value)
    of the attribute, don't you ?

-- Raffaele

-----------------------------------------------------
raff@aromatic.org (::) http://www.aromatic.org/~raff/

When I say artist I mean the man who is building things
 -- creating molding the earth -- whether it be the plains of the west
 -- or the iron ore of Penn. It's all a big game of construction
 -- some with a brush -- some with a shovel -- some choose a pen.

                             Jackson Pollock


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]