Not sure if this will answer your question, but I've been wanting to do something like this (generate forms from xml schemas). A starter example is in lib/widgets/XmlSchemaForm.xsl. Also, with XSL we should be able to generate a new dynamic XSL document from a schema, which can be used to process XML documents based on that schema.
Mike Héctor Hugo Pérez Alonso wrote: > Hi everybody, > > I am trying to implement the following behaviour: > > 1.A combo list is displayed showing a set of wfs layers > 2.The user selects one of the layers from the list > 3.A new form is displayed below with input text fields only applicable > for the selected layer (each layer has a different set of fields) > 4.The user enters values inside the new form to send filter requests > to geoserver > 5.The main MapPane is refreshed with the results from the filter request > > With the help of some posts of the forum and the contextEditor and > gazetteerTools demos, I have the combo (steps 1 and 2) and the filters > (steps 4 and 5) working separately. The problem comes when trying to > connect the 2nd and 3d steps. I need to avoid having a static xml > filter file for each layer. > > I was thinking about launching a DescribeFeatureType request from the > layer selection, and create another widget that handles the > DescribeFeatureType output and generates the desired xml (with a xsl). > But I'm not sure if this sort of handling is possible, and even if it > was, I don't know if the xml obtained can be passed somehow to a > widget similar to the PlaceNameForm widget from the gazetteer > demo (the filter xml file is generated on the fly, so I suppose that I > cannot use the defaultModelUrl). > > Do you have some ideas about the best way to proceed?. > > Thanks, > > Héctor. > > > > > > ------------------------------------------------------------------------ > Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede > contener información clasificada por su emisor como confidencial en el > marco de su Sistema de Gestión de Seguridad de la Información siendo > para uso exclusivo del destinatario, quedando prohibida su divulgación > copia o distribución a terceros sin la autorización expresa del > remitente. Si Vd. ha recibido este mensaje erróneamente, se ruega lo > notifique al remitente y proceda a su borrado. Gracias por su > colaboración. > ------------------------------------------------------------------------ > This message including any attachments may contain confidential > information, according to our Information Security Management System, > and intended solely for a specific individual to whom they are > addressed. Any unauthorised copy, disclosure or distribution of this > message is strictly forbidden. If you have received this transmission > in error, please notify the sender immediately and delete it. > > ------------------------------------------------------------------------ > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Mapbuilder-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mapbuilder-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mapbuilder-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
