Bug 1051925
| Summary: | Update XML rendering to support Docbook 5 | ||
|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | Matthew Casperson <mcaspers> |
| Component: | Web-UI | Assignee: | Matthew Casperson <mcaspers> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.3 | CC: | cbredesen, lnewson |
| Target Milestone: | --- | ||
| Target Release: | 1.4 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-23 23:43:59 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1051919 | ||
|
Description
Matthew Casperson
2014-01-12 22:39:12 UTC
It looks like the standard GWT XML parser doesn't handle namespaces, so all processing done prior to rendering will have to be done with regexes and not through XML DOM manipulation. Verified that basic examples work, however defining other namespaces seems to cause errors for the validation and rendering. See https://bugzilla.redhat.com/show_bug.cgi?id=1051921#c2 for more info. Adding that I've tested the additional topic types to make sure they render: Revision History Author Group Legal Notice Injections don't render or validate when the Topic Format is DocBook 5.0 due to the injection resolver using <ulink>s. It should now be something like: <link xlink:href="...">Topic 10</link> I've fixed up the Injection linking issue in 1.4-SNAPSHOT build 201402101456 Automatic namespace addition has been removed, so all namespaces are now manually defined in the topic. Verified that rendering works as expected taking into account the issue with having to use a DTD for validation (ie no custom namespaces) Moving this back to assigned as something has broken this in additional updates. Legal Notice and Author Group no longer renders. Fixed in 1.4-SNAPSHOT build 201402141412 The namespaces were being applied before the <authorgroup> or <legalnotice> elements were wrapped. There was also an issue with the getRootElementName where it was returning more than it should have been. |