[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] website: Accessing the value of config elements
----- ------- 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>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]