50 | | There will be an Administration User interface for managing the XSL files. |
| 51 | There will be an Administration User interface for managing the Format bundles files. Using the Administration user interface the administrator (and only administrator) can upload either a single xsl file which is the formatter/transformer, or a zip file that contains a file called view.xsl and other resources required by the view.xsl. |
| 52 | |
| 53 | The view.xsl will have the format (using the service metadata.formatter.xml?debug=true&id=<id>&xslid=<xslID> will show untransformed xml that can be used by transform): |
| 54 | |
| 55 | {{{ |
| 56 | /root |
| 57 | / <metadata> |
| 58 | / schemas |
| 59 | .... |
| 60 | / strings |
| 61 | .... |
| 62 | / url |
| 63 | / viewURL |
| 64 | / viewStrings |
| 65 | }}} |
| 66 | |
| 67 | The schemas will have schema labels, codelists etc... (localised) and strings will be the normal localized strings as well. |
| 68 | |
| 69 | If the uploaded zip file has a loc directory the files in loc/???/*.xml will be added to the xml under the viewStrings. |
| 70 | |
| 71 | The viewURL will be a path for loading resources like images and css files. |
| 72 | |