This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] just so i know i'm on the right track with website ...
- From: Bob Stayton <bobs at sco dot com>
- To: "Robert P. J. Day" <rpjday at mindspring dot com>
- Cc: docbook apps list <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 27 May 2003 15:16:08 -0700
- Subject: Re: [docbook-apps] just so i know i'm on the right track with website ...
- References: <Pine.LNX.4.44.0305231249440.22251-100000@dell>
On Fri, May 23, 2003 at 12:59:14PM -0400, Robert P. J. Day wrote:
>
> just to let me verify that i have the right idea about how to
> construct a web site with the Website DTD, i started with the sample
> site that comes with the tarball, poked around, and started
> experimenting.
>
> i noticed that there was one parameter that could be modified in
> the param.xsl stylesheet to change the contents of what is called the
> "home.navhead.upperright", which you can set to what you want displayed
> in the upper right.
>
> initially, it was set to
>
> <xsl:template name="home.navhead.upperright">
> <xsl:text>Upper right</xsl:text>
> </xsl:template>
>
>
> fair enough. i wanted to change that to display the "Created
> with Website" graphic, so i just crammed the appropriate HTML in
> there to read:
>
> <xsl:template name="home.navhead.upperright">
> <img src="website-1.png" alt="Website" align="right"></img>
> </xsl:template>
>
>
> basically brute force, and it worked nicely. for those
> of you website experts, was that the standard way to do it?
> i don't see any other more elegant way, just toss in the
> HTML i want as the final result.
>
> am i on the right track?
Yes, that is valid XSL for what you want.
> rday
>
> p.s. yes, i suppose i could do the above the official way with
>
> <xsl:template ...>
> <xsl:element name="img">
> <xsl:attribute name="src">website-1.png</xsl:attribute>
> .. and so on.
>
> but i'm just playing.
You can do it that way as well. The xsl:attribute
element is particularly useful when you need to
do some processing to select a value of an attribute.
If you have a single value as in your example,
then the simple solution works too.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org