# rdfxml-to-html5 notes
## Transform modules:
- [rdfxml-to-html5-all.xsl](https://github.com/uwlib-cams/webviews/blob/52aa907d06c944e37bcaa0e83a65ede93d255685/xslt/rdfxml-to-html5-all.xsl): ***Start here***
- [rdfxml-to-html5-core.xsl](https://github.com/uwlib-cams/webviews/blob/52aa907d06c944e37bcaa0e83a65ede93d255685/xslt/rdfxml-to-html5-core.xsl)
- [rdfxml-to-html5-props-values.xsl](https://github.com/uwlib-cams/webviews/blob/52aa907d06c944e37bcaa0e83a65ede93d255685/xslt/rdfxml-to-html5-props-values.xsl)
*\* File versions from [tree 52aa907d06](https://github.com/uwlib-cams/webviews/tree/52aa907d06c944e37bcaa0e83a65ede93d255685)*
## Still-to-dos, et cetera
### XSLT
- [ ] **Assess incorrect/non functional `href` values for some properties (any for resource values, etc.?)**
- [ ] P60001 (\@href = `https://uwlib-cams.github.io/webviews/rdainrdf/`!?)
- [ ] label (\@href = `https://uwlib-cams.github.io/webviews/rdainrdf/`!?)
- [ ] *Others?*
- [ ] Top-of-page content, including (potentially):
- [ ] The date on which the Sinopia export was created (generate triples with `rdfLibSer.py`)
- [ ] Notes on resource labels, lang tags
- [ ] Link to submit issues via GH
- [ ] Minimize lines of code ([rdfxml-to-html5-core.xsl](https://github.com/uwlib-cams/webviews/blob/52aa907d06c944e37bcaa0e83a65ede93d255685/xslt/rdfxml-to-html5-core.xsl))
- Coding for W/E/M/I property and value output is identical
- How to write once and reproduce for each?
- See comments and identical code block starting [here](https://github.com/uwlib-cams/webviews/blob/52aa907d06c944e37bcaa0e83a65ede93d255685/xslt/rdfxml-to-html5-core.xsl#L113)
- [x] Output single combined HTML document--all formats (see [commit](https://github.com/uwlib-cams/webviews/commit/2fe847e770743bb2983365befa11dde3cbb3921c))
- [x] Confirm HTML5 output following switch to `[...]-all`+`fn:transform`
- [x] Output AdminMetadata `<li>` only if there are triples in the bnode, otherwise don't output or say unavailable, etc.
- [x] Bottom-of-page content:
- [x] CC0 dedication
- [x] Page last updated info
- [x] Backlink to [webviews](https://uwlib-cams.github.io/webviews/) index
### [rdfLibSer.py](https://github.com/uwlib-cams/webviews/blob/52aa907d06c944e37bcaa0e83a65ede93d255685/python/rdfLibSer.py)
- [ ] ~~Set namespace prefixes for serialized RDF/XML~~
- **BMR NOTE 2020-06-18**: This seems unneccessary!? Transformation works fine with different namespace prefixes in XSLT than in RDFXML... I misunderstood something here...
- Transform modules are written using prefixed element names
- `rdfLibSer.py` outputs prefixes randomly; they can be (and are) different each time the script is run
- [ ] Generate triple(s) specifying date of export and/or date or serialization so that this can be output to HTML
###### tags: `xslt` `python`