If what you want to do is set extra stylesheet parameters for XSL
widgets, all you have to do is add a new property to the config file for
that widget.  All widget properties automatically get set as stylesheet
parameters.

Mike

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Denton
> Sent: Monday, May 28, 2007 08:22
> To: [email protected]
> Subject: Re: [Mapbuilder-users] SelectMapLayers XSL template.
> 
> 
> 
> Denton wrote:
> > 
> > Hi guys,
> > 
> > Please I desperately need help with an advice, where is the 
> > "SelectMapLayers.xsl" template being applied at the GetCapabilities 
> > service result........ I just need to put some additional 
> parameters 
> > to this XSL template....But I did not find in the code the place, 
> > where this template is being used....I mean, after I click at the 
> > "load" link in the ModelUrlInput widget, Mabuilder dispatches 
> > GetCapabilities request. And I need to know the place in the 
> > MapBuilder code, where the GetCapabilities result is being 
> converted 
> > to HTML via SelectMapLayers.xsl
> > 
> > many thanks in advance.
> > 
> > Denton.
> > 
> > 
> 
> I found it! It is easy, of course...:-)..Actually 
> GetCapabilities request is being converted to the HTML form 
> as well as the result from the GetFeatureInfo 
> service.....Desired place, what I had been looking for, is 
> the WidgetBaseXSL.js source code...So I have added this...
> 
> this.paint = function(objRef, refresh) {
>       .
>       .
>       if (widgetNode.nodeName == 'Widget') {
>           objRef.stylesheet.setParameter("MyParam1","value1");
>           objRef.stylesheet.setParameter("MyParam2","value2");
>       }
>       .
>       .
>       var s = 
> objRef.stylesheet.transformNodeToString(objRef.resultDoc);      
> 
> and it works...;-)
> 
> regards Denton...;-)
> --
> View this message in context: 
> http://www.nabble.com/SelectMapLayers-XSL-template.-tf3823416.
html#a10835417
> Sent from the MapBuilder Users mailing list archive at Nabble.com.
> 
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to