cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Kachanov" <a...@intadev.com>
Subject RE: use-browser-capabilities-db
Date Tue, 15 Jan 2002 11:56:10 GMT
OK

I have 

<browser media="explorer">
 <user-agent>MSIE</user-agent>
 <screen-width>296</screen-width>
</browser>

in BrowserImpl.xml

How can I get the screen-width variable in XSL?

<xsl:param> or <xsl:variable> are not working for this variable



-----Original Message-----
From: Bartomeu Adrover [mailto:tomeu.adrover@uib.es]
Sent: 15 января 2002 г. 20:16
To: cocoon-users@xml.apache.org
Subject: Re: use-browser-capabilities-db


You can retrieve in a XSLT this values as parameters (with the <xsl:param> tag):
accept
user-agent
browser
browser-media

Declare this parmeter in the top of the xslt as simple form parameters
<xsl:param name="accept"/>
 <xsl:param name="user-agent"/>
 <xsl:param name="browser"/>
 <xsl:param name="browser-media"/>


Alex Kachanov wrote:

> This information is not enough to understand how it works for a non-Java guru guy
>
> -----Original Message-----
> From: Bartomeu Adrover [mailto:tomeu.adrover@uib.es]
> To: cocoon-users@xml.apache.org
> Subject: Re: use-browser-capabilities-db
>
> There are any information about this in the source code of the xslt
> transformer.
>
> Alex Kachanov wrote:
>
> > There is a parameter in sitemap "use-browser-capabilities-db"
> >
> > does any one know how to use this parameter?
> > The documentation tells about some browser capability database
> > but where is it in the filesystem?
> >
> > with best wishes
> > Alexander Kachanov
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message