[augeas-devel] [Augeas] #306: Xml lens should support DOCTYPEs with both decl_out and id_def

Augeas trac at fedorahosted.org
Mon Oct 29 13:53:07 UTC 2012


#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




More information about the augeas-devel mailing list