[JIRA] Updated: (MDA-19) provide a stage to perform DOM namespace declaration normalization
Ian Young (JIRA)
noreply at shibboleth.net
Mon Oct 8 05:05:22 EDT 2012
[ https://issues.shibboleth.net/jira/browse/MDA-19?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ian Young updated MDA-19:
-------------------------
Assignee: Ian Young (was: Chad La Joie)
> provide a stage to perform DOM namespace declaration normalization
> ------------------------------------------------------------------
>
> Key: MDA-19
> URL: https://issues.shibboleth.net/jira/browse/MDA-19
> Project: Metadata Aggregator
> Issue Type: New Feature
> Components: DOM Metadata
> Affects Versions: 0.5
> Reporter: Ian Young
> Assignee: Ian Young
>
> One of the things I do a lot in my current metadata toolchain is normalise namespace declarations. For example, all uses of a particular namespace end up with the same namespace prefix. Often, I also want the declaration of the namespace prefix to happen in a particular place (normally the document element) and to have it removed from all other locations in the document.
> Although none of this has functional implications, it saves space in the final document (sometimes quite a lot) and makes it much easier to understand what is going on if you have to look at the XML for any reason. I think this will look even more useful once we start mixing together metadata from multiple sources with different conventions.
> At the moment, I perform this function with lots of XSLT to normalise cases that come up for us, and I could continue in that vein using XSLTStage. However, that approach can't be as generic as I'd like, and probably won't work very well when I start merging in metadata from other federations. So, I'd like to have a stage available that can perform this kind of operation by traversing the DOM directly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list