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]

Re: placing value inbetween quotes in output


In some situations with more complex "building process" of the value of an
attribute, you can use <xsl:attribute>. But attribute value templates are
much shorter and better for such easy use cases like yours, only as example:

<fo:basic color="blue" text-decoration="underline">
    <xsl:attribute name="external-destination"><xsl:value-of
select="@url"/></xsl:attribute>
    <xsl:value-of select="@text"/>
</fo:basic>

Joerg

> Eric,
>
> At 06:02 PM 10/11/01, you wrote:
> >     <fo:basic-link color="blue" text-decoration="underline"
> >      external-destination="<xsl:value-of select="@url"/> ">
>
> Try external-destination="{@url}">
>
> It's called an "attribute value template", designed for just such
> situations as your own.
>
> Enjoy,
> Wendell


 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]