Re: XML tags in image alt tags

by Andrej Kostresevic <temporalassassin(at)yahoo.com>

 Date:  Tue, 31 Jul 2001 19:20:04 -0700 (PDT)
 To:  Chuck Evans <chuck.evans(at)click2learn.com>,
"'HWG Languages'" <hwg-languages(at)hwg.org>
 In-Reply-To:  yahoo
  todo: View Thread, Original
Oh, and obviously the src will also have to become:
 <xsl:attribute name="src">myFile.jpg</xsl:attribute>
- so the whole thing would be:
<xsl:element name="image">
  <xsl:attribute name="alt">
    <xsl:value-of select="us_english"/>
  </xsl:attribute>
  <xsl:attribute name="src">myFile.jpg</xsl:attribute>
</xsl:element>

You get the picture. You can do this with any attribute.
Hope that helps,
Andrej
--- Andrej Kostresevic <temporalassassin(at)yahoo.com> wrote:
> Try this:
> 
> <xsl:element name="image">
>   <xsl:attribute name="alt">
>     <xsl:value-of select="us_english"/>
>   </xsl:attribute>
> </xsl:element>
> 
> Andrej
> --- Chuck Evans <chuck.evans(at)click2learn.com> wrote:
> > Does anyone have a workaround for using xml tags within an image alt
> tag
> > inside an XSL style sheet? When I try to put the tag in there, I get
> > this
> > error:
> > 
> > "The character '<' cannot be used in an attribute value. Line 149,
> > Position
> > 116"
> > 
> > and it shows this as the error location:
> > 
> > <img ... alt="<xsl:value-of select="us_english"/>" />
> > --------------^ 
> > 
> > I tried using single quotes, within the xml tag and next for the
> > attribute,
> > but no luck.
> > 
> > Any help is appreciated.
> > 
> > Chuck Evans
> > Web Everything Guy
> > Click2learn
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA