This is the mail archive of the docbook-apps@lists.oasis-open.org 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: [docbook-apps] Adding Image Map to HTML title page


Hi,
A template with match="*" isn't handling the root node, it is handling all
elements that don't otherwise have their own template.

You want to add the map code to the HTML head, right?  If so, see this
reference for how to use the 'user.head.content' template to do that:

http://www.sagehill.net/docbookxsl/HtmlHead.html

You should be able to put your map code right inside that template and it
will appear in your HEAD element.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Naomi Gronson" <naomi_gronson@yahoo.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, May 10, 2004 11:33 AM
Subject: [docbook-apps] Adding Image Map to HTML title page


> I've been attempting to alter the HTML/titlepage.xsl
> file to add an image map for an image I've included on
> my title page.  I've been refering to the example in
> http://www.dpawson.co.uk/docbook/styling/custom.html#TitlepageFormat,
> but I can't seem to get the map info to be included in
> the output (I always get an error).  Most things I've
> been trying add the info in from the root node:
>
> <xsl:template match="*" mode="titlepage.mode">
>
> <MAP NAME="imageMap1">
> <AREA SHAPE="RECT" COORDS="3, 71, 27, 119"
> HREF="www.url.com">
> <AREA SHAPE="POLYGON" COORDS="115, 79, 141, 81, 141,
> 102, 129, 115, 130, 136, 117, 135, 120, 108, 109, 99"
> HREF="#top">
> </MAP>
>
> <xsl:apply-templates select="." />
> </xsl:template>
>
> I've also tried using the <xsl:text> element, but to
> no avail.  Any ideas on what I'm doing wrong or an
> easier way to do this?  Any other resources you can
> point me to?  Thanks a lot.
>
> Naomi
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>



To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


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