#306: Xml lens should support DOCTYPEs with both decl_out and id_def
---------------------+---------------------
Reporter: raphink | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: devel
Keywords: | Blocked By:
Blocking: |
---------------------+---------------------
As of now, the Xml lens defines doctype as:
{{{
let doctype = decl_def /!DOCTYPE/ (decl_outer|id_def)
}}}
However, there are files using both `decl_outer` and `id_def` in a DOCTYPE
declaration. For example:
{{{
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-
open.org/docbook/xml/4.3/docbookx.dtd" [
]>
}}}
which doesn't work with the current lens. The fix is not trivial since
`decl_outer` matches an empty tree.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/306>
Augeas <http://augeas.net/>
a configuration API
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel