Grazie Luca e Alessandro! credo strutturerò un prodotto ad hoc utilizzando pt o anche trasformazione XSLT
Grazie ancora!
Roberto

Il 10/02/2017 17:21, Alessandro Pisa ha scritto:
2017-02-10 17:09 GMT+01:00 Roberto Rascioni <r.rasci...@unimc.it>:
Ciao a tutti!

dovrei a breve creare un prodotto per pubblicare i dati riguardanti gli
affidamenti secondo quanto stabilito dall'ANAC ai sensi dell’art. 1 comma 32
Legge n. 190/2012

L'idea è quella di produrre un xml in modo dinamico reperendo le
informazioni da una nostra API.

Avete esperienze in merito e/o plugin già strutturati da condividere?

Ciao Roberto, non  so se puo' essere utile e magari gia' lo sapevi, ma
puoi utilizzare un normale pt per ritornare dell'xml.

Ad esempio:

<?xml version="1.0"?>
<catalog>
    <book id="book/Id" tal:repeat="book view/books">
       <author>${book/creator}</author>
       <title>${book/title}</title>
       ...
    </book>
</catalog>

Il codice della vista dovrebbe anche impostare gli header appropriati:

es:

self.request.response.setHeader('Content-type', 'application/xml')

o quel che e'...

Se poi trovi qualcosa di gia' pronto tasnto meglio!


--
dott. Roberto Rascioni - Ufficio Web, E-Learning, Sviluppo & Ricerca

CSIA - Università degli studi di Macerata
Vicolo Tornabuoni, 58 - 62100 Macerata
Tel +39 0733.258.4408 - Fax +39 0733.258.4415
http://www.unimc.it

This e-mail transmission may be legally privileged and contains confidential information that is the property of the sender and the organization (UNIVERSITY OF MACERATA) for which the sender represents. If you are not the intended recipient and have by accident received this email, please do not retain, disclose, reproduce or distribute the contents of this e-mail transmission, or take any action in relevance thereon or pursuant thereto. Please notify the sender of the error by responding to the email accordingly in a timely and reasonable fashion otherwise failure to do so may cause legal action to be taken. Thank you.
_______________________________________________
Plone-IT mailing list
plone...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html

Rispondere a