thanks for detail explanation, anthony, tried your code but gave me 
different result
*e.g.*
*controllers/default.py*
def sitemap():
request.extension = 'xml' or redirect(URL(extension = 'xml') )
return dict()
#return locals()

access http://127.0.0.1:8000/a/default/sitemap
*result*
This XML file does not appear to have any style information associated with 
it. The document tree is shown below.
<document/>

btw, when it access with http://127.0.0.1:8000/a/default/sitemap.xml it 
return as expected
*result*
This XML file does not appear to have any style information associated with 
it. The document tree is shown below.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"; xmlns:image="
http://www.google.com/schemas/sitemap-image/1.1"xmlns:video=";
http://www.google.com/schemas/sitemap-video/1.1";>
<url>
<loc>http://127.0.0.1:8000/a/default/user</loc>
</url>
<url>
<loc>http://127.0.0.1:8000/a/default/index</loc>
</url>
<url>
<loc>http://127.0.0.1:8000/a/default/sitemap</loc>
</url>
</urlset>

any idea how to achieve it using web2py way?

thanks and best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to