This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] website: Accessing the value of config elements
- From: "Sina K. Heshmati" <sina at khakbaz dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 16 May 2005 17:53:25 +0200
- Subject: Re: [docbook-apps] website: Accessing the value of config elements
- Reply-to: "Sina K. Heshmati" <sina at khakbaz dot com>
----- ------- Original Message ------- -----
From: "Sina K. Heshmati" <sina@khakbaz.com>
To: obf@gmx.de
Sent: Mon, 16 May 2005 17:51:16
Oliver B. Fischer wrote:
> Hello,
>
> I am trying to access the value of a config element within the template allpagesbanner but without success.
>
> My webpage dokument looks at the top like this:
>
> <webpage id="de.dialog.beirat" lang="de">
> <config param="contentgroup" value="deutschland"/>
>
> My templates looks like this:
>
> <div id="allpagesbanner">
> <xsl:variable name="contentgroup"
> select="/webpage/config[@param='contentgroup']" />
> ...
This expression is valid but doesn't suit in this case as 'config' is an empty element whose 'value' attribute is
often used. Try the following expression, instead:
"/webpage/config[@param='contentgroup']/@value"
>
> How can I access the config element I need in XSL?
>
> Regards,
>
> Oliver
>
--
Sina Khakbaz <sina@khakbaz.com>
MarkupWare <webmaster@markupware.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
----- ------- End Forwarded Message ------- -----
--
Sina Khakbaz <sina@khakbaz.com>
MarkupWare <webmaster@markupware.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org