Outputing multiple formats to the web

We are currently useing domino for our website. To acess most pages the URL is something like this…http://companyname/database.nsf/$view/documentID?opendocument

the form this uses outputs xhtml code. What i’d like to do, is create another form that outputs XML code. Designing the form I can do, but where I am confused is how I would call the XML form to work on the same documents as the XHTML form. I’d like to be able to do something like:

http://companyname/database.nsf/$XMLview/documentID?readform

or

http://companyname/database.nsf/$view/documentID?opendocument&DISPLAYXML

Is this possible? It seems like it should be. How would I go about doing this? Is there a better way?

Thanks

Subject: outputing multiple formats to the web

Is it as simple as setting up a view for the XML form identical to the XHTML form but with a form formula of “XMLForm”.

Your URL would just be

http://companyname/database.nsf/XMLview/documentID?opendocument

And the form formula would take care of the form swapping for you.

If you want a URL in the second format I’d suggest only having one form, but two subforms, one for XML and the other form XHTML. You can then use a computed subform on the form to pull in either the XML or XHTML subform dependant on the query_string.

HTH - Rufus

Subject: RE: outputing multiple formats to the web

that did it… the form formula was the part I was missing. Thanks.