← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook-apps] website: Accessing the value of config elements

From
Sina K. Heshmati <>
Date
2005-05-16T15:53:32+00:00
ID
Thread
Re: [docbook-apps] website: Accessing the value of config elements
----- ------- Original Message ------- -----
From: "Sina K. Heshmati" <>
To: 
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 <>
MarkupWare <>

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>



----- ------- End Forwarded Message ------- -----

--
Sina Khakbaz <>
MarkupWare <>
← Prev in month ← Prev in thread
Next in thread → Next in month →