From 559445395e89fb8c2bff68436066b085b5461f22 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Fri, 9 Nov 2018 10:21:52 +0000 Subject: [PATCH 1/1] init --- COPYING | 674 ++++ GNUmakefile | 81 + HLint.hs | 16 + Language/HLint.hs | 1 + Language/Symantic/HLint.hs | 1 + Language/Symantic/RNC.hs | 16 + Language/Symantic/RNC/HLint.hs | 1 + Language/Symantic/RNC/Sym.hs | 151 + Language/Symantic/RNC/Validate.hs | 342 ++ Language/Symantic/RNC/Write.hs | 170 + Language/Symantic/RNC/Write/Namespaces.hs | 190 ++ Language/Symantic/XML.hs | 20 + Language/Symantic/XML/Document.hs | 135 + Language/Symantic/XML/HLint.hs | 1 + Language/Symantic/XML/Parser.hs | 190 ++ Language/Symantic/XML/Read.hs | 454 +++ Language/Symantic/XML/Read/HLint.hs | 1 + Language/Symantic/XML/Read/Parser.hs | 342 ++ stack.yaml | 8 + symantic-xml.cabal | 122 + test/Golden.hs | 74 + test/Golden/RNC/0000.xml | 1 + test/Golden/RNC/0000.xml.ast | 2 + test/Golden/XML/0001.xml | 1 + test/Golden/XML/0001.xml.ast | 2 + test/Golden/XML/0002.xml | 1 + test/Golden/XML/0002.xml.ast | 2 + test/Golden/XML/0003.xml | 1 + test/Golden/XML/0003.xml.ast | 6 + test/Golden/XML/0004.xml | 479 +++ test/Golden/XML/0004.xml.ast | 3434 +++++++++++++++++++++ test/Golden/XML/NS/0001.xml | 2 + test/Golden/XML/NS/0001.xml.ast | 8 + test/Golden/XML/NS/0002.xml | 2 + test/Golden/XML/NS/0002.xml.ast | 14 + test/Golden/XML/NS/0003.xml | 4 + test/Golden/XML/NS/0003.xml.ast | 22 + test/Golden/XML/NS/0004.xml | 8 + test/Golden/XML/NS/0004.xml.ast | 38 + test/Golden/XML/NS/0005.xml | 7 + test/Golden/XML/NS/0005.xml.ast | 32 + test/Golden/XML/NS/0006.xml | 7 + test/Golden/XML/NS/0006.xml.ast | 42 + test/Golden/XML/NS/0007.xml | 7 + test/Golden/XML/NS/0007.xml.ast | 32 + test/Golden/XML/NS/0008.xml | 13 + test/Golden/XML/NS/0008.xml.ast | 58 + test/Golden/XML/NS/0009.xml | 18 + test/Golden/XML/NS/0009.xml.ast | 110 + test/Golden/XML/NS/0010.xml | 6 + test/Golden/XML/NS/0010.xml.ast | 2 + test/Golden/XML/NS/0011.xml | 6 + test/Golden/XML/NS/0011.xml.ast | 38 + test/Main.hs | 15 + 54 files changed, 7410 insertions(+) create mode 100644 COPYING create mode 100644 GNUmakefile create mode 100644 HLint.hs create mode 120000 Language/HLint.hs create mode 120000 Language/Symantic/HLint.hs create mode 100644 Language/Symantic/RNC.hs create mode 120000 Language/Symantic/RNC/HLint.hs create mode 100644 Language/Symantic/RNC/Sym.hs create mode 100644 Language/Symantic/RNC/Validate.hs create mode 100644 Language/Symantic/RNC/Write.hs create mode 100644 Language/Symantic/RNC/Write/Namespaces.hs create mode 100644 Language/Symantic/XML.hs create mode 100644 Language/Symantic/XML/Document.hs create mode 120000 Language/Symantic/XML/HLint.hs create mode 100644 Language/Symantic/XML/Parser.hs create mode 100644 Language/Symantic/XML/Read.hs create mode 120000 Language/Symantic/XML/Read/HLint.hs create mode 100644 Language/Symantic/XML/Read/Parser.hs create mode 100644 stack.yaml create mode 100644 symantic-xml.cabal create mode 100644 test/Golden.hs create mode 100644 test/Golden/RNC/0000.xml create mode 100644 test/Golden/RNC/0000.xml.ast create mode 100644 test/Golden/XML/0001.xml create mode 100644 test/Golden/XML/0001.xml.ast create mode 100644 test/Golden/XML/0002.xml create mode 100644 test/Golden/XML/0002.xml.ast create mode 100644 test/Golden/XML/0003.xml create mode 100644 test/Golden/XML/0003.xml.ast create mode 100644 test/Golden/XML/0004.xml create mode 100644 test/Golden/XML/0004.xml.ast create mode 100644 test/Golden/XML/NS/0001.xml create mode 100644 test/Golden/XML/NS/0001.xml.ast create mode 100644 test/Golden/XML/NS/0002.xml create mode 100644 test/Golden/XML/NS/0002.xml.ast create mode 100644 test/Golden/XML/NS/0003.xml create mode 100644 test/Golden/XML/NS/0003.xml.ast create mode 100644 test/Golden/XML/NS/0004.xml create mode 100644 test/Golden/XML/NS/0004.xml.ast create mode 100644 test/Golden/XML/NS/0005.xml create mode 100644 test/Golden/XML/NS/0005.xml.ast create mode 100644 test/Golden/XML/NS/0006.xml create mode 100644 test/Golden/XML/NS/0006.xml.ast create mode 100644 test/Golden/XML/NS/0007.xml create mode 100644 test/Golden/XML/NS/0007.xml.ast create mode 100644 test/Golden/XML/NS/0008.xml create mode 100644 test/Golden/XML/NS/0008.xml.ast create mode 100644 test/Golden/XML/NS/0009.xml create mode 100644 test/Golden/XML/NS/0009.xml.ast create mode 100644 test/Golden/XML/NS/0010.xml create mode 100644 test/Golden/XML/NS/0010.xml.ast create mode 100644 test/Golden/XML/NS/0011.xml create mode 100644 test/Golden/XML/NS/0011.xml.ast create mode 100644 test/Main.hs diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..4588484 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,81 @@ +cabal := $(shell find . -name '*.cabal' -print -quit) +package := $(notdir ./$(cabal:.cabal=)) +#package := $(shell 2>&1 stack ide packages) +#STACK_FLAGS ?= --nix + +all: build + +build: + stack $(STACK_FLAGS) build $(STACK_BUILD_FLAGS) + +.PHONY: test +test: + ! grep -q '^Test-Suite\>' $(cabal) || \ + { stack $(STACK_FLAGS) test $(STACK_TEST_FLAGS) --test-arguments "$(STACK_TEST_ARGS)"; } + +GHCID_TEST_ARGS ?= +GHCID_TEST ?= ":main $(GHCID_TEST_ARGS)" +ghcid: + ghcid \ + --warnings \ + --command "stack $(STACK_FLAGS) $(GHCID_STACK_FLAGS) ghci $(GHCID_GHCI_FLAGS) \ + $(shell 2>&1 stack ide targets | grep -v :test:) \ + --ghci-options=-fobject-code" \ + --test $(GHCID_TEST) \ + $(GHCID_FLAGS) + +clean: + stack $(STACK_FLAGS) clean $(STACK_CLEAN_FLAGS) +cleaner: + stack $(STACK_FLAGS) clean --full $(STACK_CLEAN_FLAGS) + +%/fast: override STACK_BUILD_FLAGS+=--fast +%/fast: override STACK_HADDOCK_FLAGS+=--fast +%/fast: override STACK_TEST_FLAGS+=--fast +%/fast: % + + +%/debug: override STACK_BUILD_FLAGS+=--flag $(cabal:.cabal=):debug +%/debug: override STACK_TEST_FLAGS+=--flag $(cabal:.cabal=):debug +%/debug: % + + +%/accept: override STACK_TEST_ARGS+=--accept +%/accept: % + + +doc: + stack $(STACK_FLAGS) haddock $(STACK_HADDOCK_FLAGS) +%.html: %.md + markdown $*.md >$*.html +%.html/view: %.html + sensible-browser $*.html + +HLint.hs: $(shell find . -name '*.hs' -not -name 'HLint.hs') + sed -i -e '/^-- BEGIN: generated hints/,/^-- END: Generated by hlint/d' HLint.hs + echo '-- BEGIN: generated hints' >> HLint.hs + hlint --find . | grep '^'infix | sort -u >> HLint.hs + echo '-- END: generated hints' >> HLint.hs + +lint: HLint.hs + if hlint --quiet --report=hlint.html -XNoCPP \ + $(shell cabal-cargs --format=ghc --only=default_extensions --sourcefile=$(cabal)) $(HLINT_FLAGS) .; \ + then rm -f hlint.html; \ + else sensible-browser ./hlint.html & fi + +tag: + name=$$(sed -ne 's/^name: *\(.*\)/\1/p' "$(cabal)"); \ + version=$$(sed -ne 's/^version: *\(.*\)/\1/p' "$(cabal)"); \ + git tag --merged | grep -Fqx "$$name-$$version" || \ + git tag -f -s -m "$$name v$$version" $$name-$$version + +tar: + stack $(STACK_FLAGS) sdist $(STACK_SDIST_FLAGS) +upload: + LANG=C stack $(STACK_FLAGS) upload $(STACK_UPLOAD_FLAGS) . + +.PHONY: stats +stats: + gitstats . $@ +stats/view: stats + sensible-browser stats/index.html diff --git a/HLint.hs b/HLint.hs new file mode 100644 index 0000000..3cb2542 --- /dev/null +++ b/HLint.hs @@ -0,0 +1,16 @@ +import "hint" HLint.HLint +ignore "Move brackets to avoid $" +ignore "Reduce duplication" +ignore "Redundant $" +ignore "Redundant bracket" +ignore "Redundant do" +ignore "Use camelCase" +ignore "Use const" +ignore "Use fmap" +ignore "Use if" +ignore "Use import/export shortcut" +ignore "Use list literal pattern" +ignore "Use list literal" + +-- BEGIN: generated hints +-- END: generated hints diff --git a/Language/HLint.hs b/Language/HLint.hs new file mode 120000 index 0000000..ab18269 --- /dev/null +++ b/Language/HLint.hs @@ -0,0 +1 @@ +../HLint.hs \ No newline at end of file diff --git a/Language/Symantic/HLint.hs b/Language/Symantic/HLint.hs new file mode 120000 index 0000000..ab18269 --- /dev/null +++ b/Language/Symantic/HLint.hs @@ -0,0 +1 @@ +../HLint.hs \ No newline at end of file diff --git a/Language/Symantic/RNC.hs b/Language/Symantic/RNC.hs new file mode 100644 index 0000000..c938fe3 --- /dev/null +++ b/Language/Symantic/RNC.hs @@ -0,0 +1,16 @@ +module Language.Symantic.RNC + ( module Language.Symantic.RNC.Sym + , writeRNC + , Writer + , NS + , validateXML + , Functor(..) + , Applicative(..) + , Alternative((<|>)) + ) where +import Data.Functor +import Control.Applicative + +import Language.Symantic.RNC.Sym +import Language.Symantic.RNC.Write +import Language.Symantic.RNC.Validate diff --git a/Language/Symantic/RNC/HLint.hs b/Language/Symantic/RNC/HLint.hs new file mode 120000 index 0000000..ab18269 --- /dev/null +++ b/Language/Symantic/RNC/HLint.hs @@ -0,0 +1 @@ +../HLint.hs \ No newline at end of file diff --git a/Language/Symantic/RNC/Sym.hs b/Language/Symantic/RNC/Sym.hs new file mode 100644 index 0000000..bb90ca9 --- /dev/null +++ b/Language/Symantic/RNC/Sym.hs @@ -0,0 +1,151 @@ +{-# LANGUAGE TypeFamilyDependencies #-} +module Language.Symantic.RNC.Sym + ( module Language.Symantic.RNC.Sym + , Functor(..), (<$>) + , Applicative(..) + , Alternative(..) + ) where + +import Control.Applicative (Applicative(..), Alternative(..)) +import Data.Eq (Eq) +import Data.Function ((.), id) +import Data.Functor (Functor(..), (<$>)) +import Data.Maybe (Maybe(..)) +import Data.Sequence (Seq) +import Data.String (String) +import Text.Show (Show(..)) +import qualified Data.Sequence as Seq +import qualified Data.Text.Lazy as TL + +import qualified Language.Symantic.XML as XML + +infixl 2 <$$>, <$?>, <$*>, <$:> +infixl 1 <||>, <|?>, <|*>{-, <|:>-} + +-- * Class 'Sym_RNC' +class + ( Applicative repr + , Alternative repr + , Sym_Rule repr + , Sym_Interleaved repr + ) => Sym_RNC repr where + -- namespace :: XML.NCName -> XML.Namespace -> repr () + namespace :: Maybe XML.NCName -> XML.Namespace -> repr () + element :: XML.QName -> repr a -> repr a + attribute :: XML.QName -> repr a -> repr a + any :: repr () + anyElem :: XML.Namespace -> (XML.NCName -> repr a) -> repr a + text :: repr TL.Text + fail :: repr a + try :: repr a -> repr a + option :: a -> repr a -> repr a + optional :: repr a -> repr (Maybe a) + choice :: [repr a] -> repr a + intermany :: [repr a] -> repr [a] + intermany = many . choice . (try <$>) + manySeq :: repr a -> repr (Seq a) + manySeq r = Seq.fromList <$> many r + someSeq :: repr a -> repr (Seq a) + someSeq r = Seq.fromList <$> some r +{- +instance (Sym_RNC x, Sym_RNC y) => Sym_RNC (Dup x y) where + namespace n ns = dup0 @Sym_RNC (namespace n ns) + element n = dup1 @Sym_RNC (element n) + attribute n = dup1 @Sym_RNC (attribute n) + any = dup0 @Sym_RNC any + anyElem ns f = + anyElem ns (\n -> let x`Dup`_y = f n in x) + `Dup` + anyElem ns (\n -> let _x`Dup`y = f n in y) + text = dup0 @Sym_RNC text + fail = dup0 @Sym_RNC fail + try = dup1 @Sym_RNC try + option d = dup1 @Sym_RNC (option d) + optional = dup1 @Sym_RNC optional + choice cs = choice xs `Dup` choice ys + where (xs,ys) = dupList cs + intermany cs = intermany xs `Dup` intermany ys + where (xs,ys) = dupList cs + manySeq = dup1 @Sym_RNC manySeq + someSeq = dup1 @Sym_RNC someSeq +deriving instance (Sym_RNC repr, Sym_Rule repr) => Sym_RNC (Rule repr) +-} + +-- * Class 'Sym_Rule' +class Sym_Rule repr where + rule :: Show a => String -> repr a -> repr a + rule _n = id + arg :: String -> repr () +{- +instance (Sym_Rule x, Sym_Rule y) => Sym_Rule (Dup x y) where + rule n = dup1 @Sym_Rule (rule n) + arg n = dup0 @Sym_Rule (arg n) +-} + +-- ** Type 'RuleMode' +data RuleMode + = RuleMode_Body -- ^ Request to generate the body of the rule. + | RuleMode_Ref -- ^ Request to generate a reference to the rule. + | RuleMode_Def -- ^ Request to generate a definition of the rule. + deriving (Eq, Show) + +-- * Class 'Sym_Interleaved' +class Sym_Interleaved repr where + interleaved :: Perm repr a -> repr a + (<$$>) :: (a -> b) -> repr a -> Perm repr b + + (<$?>) :: (a -> b) -> (a, repr a) -> Perm repr b + (<||>) :: Perm repr (a -> b) -> repr a -> Perm repr b + (<|?>) :: Perm repr (a -> b) -> (a, repr a) -> Perm repr b + + (<$*>) :: ([a] -> b) -> repr a -> Perm repr b + (<|*>) :: Perm repr ([a] -> b) -> repr a -> Perm repr b + + (<$:>) :: (Seq a -> b) -> repr a -> Perm repr b + (<$:>) f = (f . Seq.fromList <$*>) + {- NOTE: Megaparsec's PermParser has no Functor instance. + (<|:>) :: Perm repr (Seq a -> b) -> repr a -> Perm repr b + default (<|:>) :: Functor (Perm repr) => Perm repr (Seq a -> b) -> repr a -> Perm repr b + (<|:>) f x = (. Seq.fromList) <$> f <|*> x + -} +{- +instance (Sym_Interleaved x, Sym_Interleaved y) => Sym_Interleaved (Dup x y) where + interleaved (x`Dup`y) = interleaved x `Dup` interleaved y + (<$$>) f (x`Dup`y) = (<$$>) f x `Dup` (<$$>) f y + (<$?>) f (a, x`Dup`y) = (<$?>) f (a,x) `Dup` (<$?>) f (a,y) + (<||>) (x1`Dup`y1) (x2`Dup`y2) = (<||>) x1 x2 `Dup` (<||>) y1 y2 + (<|?>) (x1`Dup`y1) (a, x2`Dup`y2) = (<|?>) x1 (a,x2) `Dup` (<|?>) y1 (a,y2) + (<$*>) f (x`Dup`y) = (<$*>) f x `Dup` (<$*>) f y + (<|*>) (x1`Dup`y1) (x2`Dup`y2) = (<|*>) x1 x2 `Dup` (<|*>) y1 y2 + (<$:>) f (x`Dup`y) = (<$:>) f x `Dup` (<$:>) f y + {- + (<|:>) (x1`Dup`y1) (x2`Dup`y2) = (<|:>) x1 x2 `Dup` (<|:>) y1 y2 + -} +-} +{- +instance Sym_Interleaved repr => Sym_Interleaved (Rule repr) where + interleaved = Rule . interleaved . unRule + f <$$> Rule w = Rule $ f <$$> w + f <$?> (d, Rule w) = Rule $ f <$?> (d, w) + f <$*> Rule w = Rule $ f <$*> w + f <$:> Rule w = Rule $ f <$:> w + Rule f <||> Rule x = Rule $ f <||> x + Rule f <|?> (d, Rule x) = Rule $ f <|?> (d, x) + Rule f <|*> Rule x = Rule $ f <|*> x +-} +{- + interleaved (Compose l) = Rule $ interleaved $ Compose $ unRule <$> l + f <$$> Rule w = Compose $ (Rule <$>) $ getCompose $ f <$$> w + f <$?> (a,Rule w) = Compose $ (Rule <$>) $ getCompose $ f <$?> (a,w) + f <$*> Rule w = Compose $ (Rule <$>) $ getCompose $ f <$*> w + Compose ws <||> Rule w = Compose $ (Rule <$>) $ getCompose $ Compose (unRule <$> ws) <||> w + Compose ws <|?> (a,Rule w) = Compose $ (Rule <$>) $ getCompose $ Compose (unRule <$> ws) <|?> (a,w) + Compose ws <|*> Rule w = Compose $ (Rule <$>) $ getCompose $ Compose (unRule <$> ws) <|*> w +-} + +-- ** Type family 'Perm' +-- | Type of permutations, depending on the representation. +type family Perm (repr:: * -> *) = (r :: * -> *) | r -> repr +-- type instance Perm (Dup x y) = Dup (Perm x) (Perm y) +-- type instance Perm (Rule repr) = Rule (Perm repr) -- Compose [] (Rule (Perm repr)) + diff --git a/Language/Symantic/RNC/Validate.hs b/Language/Symantic/RNC/Validate.hs new file mode 100644 index 0000000..b516fdb --- /dev/null +++ b/Language/Symantic/RNC/Validate.hs @@ -0,0 +1,342 @@ +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE FlexibleInstances #-} +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE ViewPatterns #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} +module Language.Symantic.RNC.Validate where + +import Control.Applicative (Applicative(..)) +import Control.Monad (Monad(..)) +import Data.Bool +import Data.Default.Class (Default(..)) +import Data.Either (Either(..)) +import Data.Eq (Eq(..)) +import Data.Foldable (Foldable(..), all) +import Data.Function (($), (.), const, id) +import Data.Functor ((<$>), (<$)) +import Data.Int (Int) +import Data.List.NonEmpty (NonEmpty(..)) +import Data.Maybe (Maybe(..), maybe) +import Data.Monoid (Monoid(..), First(..)) +import Data.Ord (Ord(..)) +import Data.Proxy (Proxy(..)) +import Data.Ratio ((%)) +import Data.Semigroup (Semigroup(..)) +import Data.Sequence (ViewL(..), (|>)) +import Data.String (String) +import Data.Tuple (fst, snd) +import Text.Read (readMaybe, Read(..)) +import Text.Show (Show(..)) +import qualified Control.Monad.Trans.State as S +import qualified Data.Char as Char +import qualified Data.List as List +import qualified Data.Map.Strict as Map +import qualified Data.Ratio as Ratio +import qualified Data.Sequence as Seq +import qualified Data.Set as Set +import qualified Data.Text.Lazy as TL +import qualified GHC.Read as Read (expectP) +import qualified Text.Megaparsec as P +import qualified Text.Megaparsec.Perm as P +import qualified Text.Read as Read + +import Language.Symantic.XML (XML, XMLs) +import qualified Language.Symantic.XML as XML +import qualified Language.Symantic.RNC.Sym as RNC + +validateXML :: Ord e => P.Parsec e XMLs a -> XMLs -> Either (P.ParseError (P.Token XMLs) e) a +validateXML p = XML.runParser p (P.initialPos "":|[]) + +type instance RNC.Perm (P.ParsecT e XMLs m) = P.PermParser XMLs (P.ParsecT e XMLs m) +instance Ord e => RNC.Sym_Interleaved (P.ParsecT e XMLs m) where + interleaved = P.makePermParser + (<$$>) = (P.<$$>) + (<||>) = (P.<||>) + (<$?>) = (P.<$?>) + (<|?>) = (P.<|?>) + f <$*> a = f P.<$?> ([],P.some a) + f <|*> a = f P.<|?> ([],P.some a) +instance Ord e => RNC.Sym_Rule (P.ParsecT e XMLs m) where + -- rule n p = P.dbg s p {-(p P. s)-} where s = Text.unpack n + rule _n = id + arg _n = pure () + +-- | Like 'P.satisfy' but with a predicate returning 'Maybe' instead of 'Bool'. +p_satisfyMaybe :: P.MonadParsec e s m => (P.Token s -> Maybe a) -> m a +p_satisfyMaybe f = check `P.token` Nothing + where + check c = + case f c of + Just a -> Right a + Nothing -> Left (Just $ P.Tokens $ c:|[], Set.empty) + +instance Ord e => RNC.Sym_RNC (P.Parsec e XMLs) where + {- + none = P.label "none" $ P.eof + -} + namespace _p _n = pure () + element n p = do + ts <- P.token check $ Just expected + parserElement n p ts + where + expected = XML.Tree (XML.notSourced $ XML.NodeElem n) mempty + check (XML.Tree (XML.unSourced -> XML.NodeElem e) ts) + | e == n + = Right $ removePI $ removeXMLNS $ removeSpaces ts + where + removePI xs = + (`Seq.filter` xs) $ \case + XML.Tree (XML.unSourced -> XML.NodePI{}) _ts -> False + _ -> True + removeSpaces xs = + if (`all` xs) $ \case + XML.Tree (XML.unSourced -> XML.NodeText txt) _ts -> + TL.all Char.isSpace txt + _ -> True + then (`Seq.filter` xs) $ \case + XML.Tree (XML.unSourced -> XML.NodeText{}) _ts -> False + _ -> True + else xs + removeXMLNS xs = + let (attrs,rest) = (`Seq.spanl` xs) $ \case + XML.Tree (XML.unSourced -> XML.NodeAttr{}) _ts -> True + _ -> False in + let attrs' = (`Seq.filter` attrs) $ \case + XML.Tree (XML.unSourced -> XML.NodeAttr a) _ts -> + case a of + XML.QName "" "xmlns" -> False + XML.QName ns _l -> ns /= XML.xmlns_xmlns + _ -> True in + attrs' <> rest + check t = Left + ( Just $ P.Tokens $ pure t + , Set.singleton $ P.Tokens $ pure expected ) + attribute n p = do + v <- P.token check $ Just expected + XML.parser p v + where + expected = XML.Tree0 (XML.notSourced $ XML.NodeAttr n) + check (XML.Tree (XML.unSourced -> XML.NodeAttr k) + v@(toList -> [XML.Tree0 (XML.unSourced -> XML.NodeText _v)])) | k == n = + Right v + check t = Left + ( Just $ P.Tokens $ pure t + , Set.singleton $ P.Tokens $ pure expected ) + any = P.label "any" $ p_satisfyMaybe $ const $ Just () + anyElem ns p = P.label "anyElem" $ do + (n,ts) <- P.token check $ Just expected + parserElement n (p $ XML.qNameLocal n) ts + where + expected = XML.Tree (XML.notSourced $ XML.NodeElem $ XML.QName ns $ XML.NCName "*") mempty + check (XML.Tree (XML.unSourced -> XML.NodeElem e) ts) + | XML.qNameSpace e == ns + = Right $ (e,ts) + check t = Left + ( Just $ P.Tokens $ pure t + , Set.singleton $ P.Tokens $ pure expected ) + {- + comment = do + s <- P.getInput + case Seq.viewl s of + XML.Tree0 (XML.unSourced -> XML.NodeComment c) :< ts -> do + P.setInput ts + c <$ XML.setFilePosToNextNode + t :< _ts -> P.failure (Just $ P.Tokens $ pure t) ex + EmptyL -> P.failure Nothing ex + where + ex = Set.singleton $ P.Tokens $ pure expected + expected = XML.Tree0 (XML.notSourced $ XML.NodeComment "") + -} + text = do + P.token check (Just expected) + <* XML.setFilePosToNextNode + where + expected = XML.Tree0 (XML.notSourced $ XML.NodeText "") + check (XML.Tree0 (XML.unSourced -> XML.NodeText t)) = Right t + check t = Left + ( Just $ P.Tokens $ pure t + , Set.singleton $ P.Tokens $ pure expected ) + optional = P.optional + option = P.option + choice = P.choice + try = P.try + fail = P.label "fail" $ P.failure Nothing mempty + +parserElement :: Ord e => XML.QName -> P.Parsec e XMLs a -> XMLs -> P.Parsec e XMLs a +parserElement _n = XML.parser +{- + +-- * Type 'State' +data State = State + { state_posXML :: XML.Pos + , state_source :: XML.FileSource + -- ^ Unfortunately Megaparsec's 'P.statePos' + -- is not a good fit to encode 'XML.Source'. + } deriving (Eq,Show) +instance Default State where + def = State + { state_posXML = def + , state_source = def + } + +-- * Type 'Parser' +type Parser = S.StateT State (P.Parsec ErrorRead XMLs) + +instance RNC.Sym_Rule Parser where + -- rule n p = P.dbg s p {-(p P. s)-} where s = Text.unpack n + rule _n = id +instance RNC.Sym_RNC Parser where + {- + none = P.label "none" $ P.eof + -} + fail = P.label "fail" $ P.failure Nothing mempty + any = P.label "any" $ p_satisfyMaybe $ const $ Just () + anyElem p = P.label "anyElem" $ do + XML.Sourced state_source (n,ts) <- P.token check $ Just expected + parserElement n (p n) (XML.Sourced state_source ts) + where + expected = XML.Tree (XML.notSourced $ XML.NodeElem "*") mempty + check (XML.Tree cell@(XML.unSourced -> XML.NodeElem e) ts) = Right $ (e,ts) <$ cell + check t = Left + ( Just $ P.Tokens $ pure t + , Set.singleton $ P.Tokens $ pure expected ) + element n p = do + ts <- P.token check $ Just expected + parserElement n p ts + where + expected = XML.Tree (XML.notSourced $ XML.NodeElem n) mempty + check (XML.Tree cell@(XML.unSourced -> XML.NodeElem e) ts) | e == n = Right (ts <$ cell) + check t = Left + ( Just $ P.Tokens $ pure t + , Set.singleton $ P.Tokens $ pure expected ) + attribute n p = do + v <- P.token check $ Just expected + stateParser p $ Seq.singleton $ Tree0 v + where + expected = Tree0 (XML.notSourced $ XML.NodeAttr n "") + check (XML.Tree0 cell@(XML.unSourced -> XML.NodeAttr k v)) | k == n = + Right $ XML.NodeText v <$ cell + check t = Left + ( Just $ P.Tokens $ pure t + , Set.singleton $ P.Tokens $ pure expected ) + {- + comment = do + s <- P.getInput + case Seq.viewl s of + XML.Tree0 (XML.unSourced -> XML.NodeComment c) :< ts -> do + P.setInput ts + c <$ setFilePosToNextNode + t :< _ts -> P.failure (Just $ P.Tokens $ pure t) ex + EmptyL -> P.failure Nothing ex + where + ex = Set.singleton $ P.Tokens $ pure expected + expected = Tree0 (XML.notSourced $ XML.NodeComment "") + -} + text = do + P.token check (Just expected) + <* setFilePosToNextNode + where + expected = Tree0 (XML.notSourced $ XML.NodeText "") + check (XML.Tree0 (XML.unSourced -> XML.NodeText t)) = Right t + check t = Left + ( Just $ P.Tokens $ pure t + , Set.singleton $ P.Tokens $ pure expected ) + optional = P.optional + option = P.option + choice = P.choice + try = P.try + +parserElement :: XML.Name -> Parser a -> XML.Sourced XMLs -> Parser a +parserElement n p (XML.Sourced state_source ts) = do + let mayNameOrFigureName + | n == "aside" = Nothing + -- NOTE: skip aside. + | n == "figure" + -- NOTE: special case renaming the current XML.XmlPos + -- using the @type attribute to have positions like this: + -- section1.Quote1 + -- section1.Example1 + -- section1.Quote2 + -- instead of: + -- section1.figure1 + -- section1.figure2 + -- section1.figure3 + , Just ty <- getFirst $ (`foldMap` ts) $ \case + XML.Tree0 (XML.unSourced -> XML.NodeAttr "type" ty) -> First $ Just ty + _ -> First Nothing + = Just $ XML.qName $ ty + | otherwise = Just n + case mayNameOrFigureName of + Nothing -> do + st <- S.get + S.put st{state_source} + res <- stateParser p ts + S.put st + return res + Just nameOrFigureName -> do + st@State{state_posXML} <- S.get + let incrPrecedingSibling name = + maybe (Nat1 1) succNat1 $ + Map.lookup name $ + XML.pos_precedingSiblings state_posXML + S.put State + { state_posXML = state_posXML + -- NOTE: in children, push current name incremented on ancestors + -- and reset preceding siblings. + { XML.pos_precedingSiblings = mempty + , XML.pos_ancestors = XML.pos_ancestors state_posXML |> (n, incrPrecedingSibling n) + , XML.pos_ancestorsWithFigureNames = + XML.pos_ancestorsWithFigureNames state_posXML |> + ( nameOrFigureName + , incrPrecedingSibling nameOrFigureName ) + } + , state_source + } + res <- stateParser p ts + S.put st + { state_posXML = state_posXML + -- NOTE: after current, increment current name + -- and reset ancestors. + { XML.pos_precedingSiblings = + (if n == nameOrFigureName then id + else Map.insertWith (const succNat1) nameOrFigureName (Nat1 1)) $ + Map.insertWith (const succNat1) n (Nat1 1) $ + XML.pos_precedingSiblings state_posXML + } + } + return res + +type instance RNC.Perm Parser = P.PermParser XMLs Parser +instance RNC.Sym_Interleaved Parser where + interleaved = P.makePermParser + (<$$>) = (P.<$$>) + (<||>) = (P.<||>) + (<$?>) = (P.<$?>) + (<|?>) = (P.<|?>) + f <$*> a = f P.<$?> ([],P.some a) + f <|*> a = f P.<|?> ([],P.some a) +{- +instance DTC.Sym_DTC Parser where + positionXML = S.gets state_posXML + locationTCT = S.gets state_source +-} + + + + +-- ** Type 'ErrorRead' +data ErrorRead + = ErrorRead_EndOfInput + | ErrorRead_Not_Bool TL.Text + | ErrorRead_Not_Int TL.Text + | ErrorRead_Not_Nat Int + | ErrorRead_Not_Nat1 Int + | ErrorRead_Not_Rational TL.Text + | ErrorRead_Not_Positive TL.Text + {- ErrorRead_Unexpected P.sourcePos XML -} + deriving (Eq,Ord,Show) +instance P.ShowErrorComponent ErrorRead where + showErrorComponent = show +-} diff --git a/Language/Symantic/RNC/Write.hs b/Language/Symantic/RNC/Write.hs new file mode 100644 index 0000000..051f6f4 --- /dev/null +++ b/Language/Symantic/RNC/Write.hs @@ -0,0 +1,170 @@ +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE OverloadedStrings #-} +module Language.Symantic.RNC.Write + ( module Language.Symantic.RNC.Write + , module Language.Symantic.RNC.Write.Namespaces + ) where + +import Control.Applicative (Applicative(..), Alternative(..)) +import Control.Monad +import Data.Bool +import Data.Function (($), (.), id) +import Data.Functor ((<$>)) +import Data.Functor.Compose (Compose(..)) +import Data.Semigroup (Semigroup(..)) +import Data.String (IsString(..)) +import Text.Show (Show(..)) +import qualified Data.HashMap.Strict as HM +import qualified Data.List as List +import qualified Data.Text.Lazy as TL +-- import qualified Data.Text.Lazy.Builder as TLB + +import Language.Symantic.Grammar.Fixity +import Language.Symantic.RNC.Sym +import Language.Symantic.RNC.Write.Namespaces +import qualified Language.Symantic.XML as XML + +-- | Get textual rendition of given 'RuleWriter'. +writeRNC :: [NS a] -> [Writer a] -> TL.Text +writeRNC ns ws = + let namespaces@Namespaces{..} = runNS ns in + TL.unlines $ List.concat + [ [ "default namespace = \""<>XML.unNamespace namespaces_default<>"\"" + | not $ TL.null $ XML.unNamespace namespaces_default + ] + , [ "namespace "<>p<>" = \""<>n<>"\"" + | (XML.Namespace n, XML.NCName p) <- HM.toList namespaces_prefixes + ] + , runWriter namespaces <$> ws + ] + +-- * Type 'Writer' +newtype Writer a + = Writer { unWriter :: Namespaces XML.NCName -> + RuleMode -> + (Infix, Side) -> + Pair -> TL.Text } + +-- | Get textual rendition of given 'Writer'. +runWriter :: Namespaces XML.NCName -> Writer a -> TL.Text +runWriter ns (Writer w) = + w ns RuleMode_Def (infixN0, SideL) pairParen + +coerceWriter :: Writer a -> Writer b +coerceWriter = Writer . unWriter +{-# INLINE coerceWriter #-} + +{- +instance Show (Writer a) where + show = TL.unpack . runWriter +-} +instance Functor Writer where + fmap _f (Writer x) = Writer x +instance Applicative Writer where + pure _ = writeText $ "\"\"" + Writer f <*> Writer x = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + TL.intercalate ", " $ + List.filter (not . TL.null) $ + [ f ns rm (op, SideL) pairParen + , x ns rm (op, SideR) pairParen ] + where op = infixB SideL 2 +instance Alternative Writer where + empty = writeText "empty" + Writer wl <|> Writer wr = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + wl ns rm (op, SideL) pairParen <> " | " <> wr ns rm (op, SideR) pairParen + where op = infixB SideL 2 + many (Writer w) = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + w ns rm (op, SideL) pairParen <> "*" + where op = infixN 9 + some (Writer w) = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + w ns rm (op, SideL) pairParen <> "+" + where op = infixN 9 +instance Sym_Rule Writer where + rule n wr@(Writer w) = Writer $ \ns rm po pp -> + case rm of + RuleMode_Ref -> + pairIfNeeded pp po op $ + fromString n + where op = infixN 10 + RuleMode_Body -> w ns RuleMode_Ref po pp + RuleMode_Def -> + TL.intercalate " " + [ fromString n + , "=" + , unWriter (rule n wr) ns RuleMode_Body (infixN0, SideR) pp + ] + arg n = + Writer $ \_ns rm _po _pp -> + case rm of + RuleMode_Ref -> fromString n + RuleMode_Body -> "" + RuleMode_Def -> "" +type instance Perm Writer = Compose [] Writer +instance Sym_Interleaved Writer where + interleaved (Compose []) = writeText "empty" + interleaved (Compose [Writer w]) = Writer w + interleaved (Compose l@(_:_)) = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + TL.intercalate " & " $ + (unWriter <$> l) <*> pure ns <*> pure rm <*> pure (op, SideL) <*> pure pairParen + where op = infixB SideL 1 + _f <$$> Writer w = Compose [Writer w] + _f <$?> (_,Writer w) = Compose [coerceWriter $ optional $ Writer w] + _f <$*> Writer w = Compose [coerceWriter $ many (Writer w)] + Compose ws <||> Writer w = Compose (coerceWriter <$> ws <> [Writer w]) + Compose ws <|?> (_,Writer w) = + Compose ((coerceWriter <$> ws) <> + [coerceWriter $ optional $ Writer w]) + Compose ws <|*> (Writer w) = + Compose (coerceWriter <$> ws <> + [coerceWriter $ many $ Writer w]) +instance Sym_RNC Writer where + namespace _p _n = writeText "" + element n (Writer w) = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + "element "<>TL.pack (show $ prefixifyQName ns n) + <>" "<>w ns rm (op,SideR) pairBrace + where op = infixN 10 + anyElem (XML.Namespace n) f = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + (if TL.null n then "" else n<>":") <> + "* "<>w ns rm (op,SideR) pairBrace + where + op = infixN 0 + Writer w = f "" + attribute n (Writer w) = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + "attribute "<>TL.pack (show $ prefixifyQName ns n) + <>" "<>w ns rm (op,SideR) pairBrace + where op = infixN 10 + try = id + fail = writeText "fail" + text = writeText "text" + any = writeText "any" + choice [] = writeText "empty" + choice [w] = w + choice l@(_:_) = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + TL.intercalate " | " $ + (unWriter <$> l) <*> pure ns <*> pure rm <*> pure (op, SideL) <*> pure pairParen + where op = infixB SideL 2 + option _x (Writer w) = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + w ns rm (op, SideL) pairParen <> "?" + where op = infixN 9 + optional (Writer w) = Writer $ \ns rm po pp -> + pairIfNeeded pp po op $ + w ns rm (op, SideL) pairParen <> "?" + where op = infixN 9 + manySeq = coerceWriter . many + someSeq = coerceWriter . some + +-- | 'Writer' returns a constant rendition. +writeText :: TL.Text -> Writer a +writeText t = Writer $ \_ns _rm po pp -> + pairIfNeeded pp po op t + where op = infixN 10 diff --git a/Language/Symantic/RNC/Write/Namespaces.hs b/Language/Symantic/RNC/Write/Namespaces.hs new file mode 100644 index 0000000..9e0e4c0 --- /dev/null +++ b/Language/Symantic/RNC/Write/Namespaces.hs @@ -0,0 +1,190 @@ +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE OverloadedStrings #-} +module Language.Symantic.RNC.Write.Namespaces where + +import Control.Applicative (Applicative(..), Alternative(..), (<$>)) +import Control.Monad (Monad(..), forM, sequence) +import Data.Bool +import Data.Default.Class (Default(..)) +import Data.Eq (Eq(..)) +import Data.Function (($), (.), id) +import Data.Functor (Functor(..)) +import Data.Int (Int) +import Data.Maybe (Maybe(..), maybe, isNothing) +import Data.Monoid (Monoid(..)) +import Data.Semigroup (Semigroup(..)) +import Text.Show (Show(..)) +import Data.String (String) +import qualified Data.HashMap.Strict as HM +import qualified Data.HashSet as HS +import qualified Data.List as List +import qualified Data.Text.Lazy as TL +import qualified Control.Monad.Trans.State.Strict as S + +import qualified Language.Symantic.XML as XML +import Language.Symantic.RNC.Sym + +-- | Collect 'XML.Namespace's used and get them a dedicated prefix. +runNS :: forall a. [NS a] -> Namespaces XML.NCName +runNS ns = + namespaces + { namespaces_prefixes = + (`S.evalState` HS.empty) $ + let prefixesByNamespace = + HM.delete "" $ -- NOTE: no prefix when there is no namespace. + HM.update -- NOTE: no prefix when this is the default namespace. + (\p -> if isNothing p then Nothing else Just p) + (namespaces_default namespaces) $ + namespaces_prefixes namespaces in + forM prefixesByNamespace $ \mp -> do + usedPrefixes <- S.get + let fp = maybe + (freshName usedPrefixes) + (freshifyName usedPrefixes) + mp + S.modify' $ HS.insert fp + return fp + } + where + namespaces :: Namespaces (Maybe XML.NCName) + namespaces = mconcat $ (`S.evalState` def) $ sequence $ unNS <$> ns + +coerceNS :: NS a -> NS b +coerceNS = NS . unNS +{-# INLINE coerceNS #-} + +-- * 'freshifyName' +poolNames :: [XML.NCName] +poolNames = [ XML.NCName $ TL.pack ("ns"<>show i) | i <- [1 :: Int ..] ] + +freshName :: HS.HashSet XML.NCName -> XML.NCName +freshName ps = List.head $ poolNames List.\\ HS.toList ps + +freshifyName :: HS.HashSet XML.NCName -> XML.NCName -> XML.NCName +freshifyName ns (XML.NCName n) = + let ints = [1..] :: [Int] in + List.head + [ fresh + | suffix <- mempty : (show <$> ints) + , fresh <- [ XML.NCName $ n <> TL.pack suffix] + , not $ fresh `HS.member` ns + ] + +-- * Type 'Namespaces' +data Namespaces prefix = Namespaces + { namespaces_prefixes :: !(HM.HashMap XML.Namespace prefix) + , namespaces_default :: !XML.Namespace + } deriving (Show) +instance Default (Namespaces prefix) where + def = Namespaces + { namespaces_prefixes = HM.empty + , namespaces_default = "" + } +instance Semigroup (Namespaces XML.NCName) where + x <> y = Namespaces + { namespaces_prefixes = namespaces_prefixes x <> namespaces_prefixes y + , namespaces_default = namespaces_default x + } +instance Semigroup (Namespaces (Maybe XML.NCName)) where + x <> y = Namespaces + { namespaces_prefixes = HM.unionWith (<|>) (namespaces_prefixes x) (namespaces_prefixes y) + , namespaces_default = namespaces_default x + } +instance Monoid (Namespaces XML.NCName) where + mempty = def + mappend = (<>) +instance Monoid (Namespaces (Maybe XML.NCName)) where + mempty = def + mappend = (<>) + +prefixifyQName :: Namespaces XML.NCName -> XML.QName -> XML.PName +prefixifyQName Namespaces{..} XML.QName{..} = + XML.PName + { XML.pNameSpace = + if qNameSpace == namespaces_default + then Nothing + else HM.lookup qNameSpace namespaces_prefixes + , XML.pNameLocal = qNameLocal + } + +-- * Type 'NS' +-- | Collect 'Namespaces's and any prefixes associated with it, +-- using 'State' to avoid recurring into already visited 'rule's. +newtype NS a = NS { unNS :: S.State State (Namespaces (Maybe XML.NCName)) } + +-- ** Type 'State' +newtype State = State + { state_rules :: {-!-}(HS.HashSet String) + } deriving (Show) +instance Default State where + def = State + { state_rules = HS.empty + } + +instance Show (NS a) where + showsPrec p = showsPrec p . runNS . pure +instance Semigroup (NS a) where + NS x <> NS y = NS $ (<>) <$> x <*> y +instance Monoid (NS a) where + mempty = NS $ return mempty + mappend = (<>) +instance Functor NS where + fmap _f = coerceNS +instance Applicative NS where + pure _ = mempty + NS f <*> NS x = NS f <> NS x + NS f <* NS x = NS f <> NS x + NS f *> NS x = NS f <> NS x +instance Alternative NS where + empty = mempty + NS f <|> NS x = NS f <> NS x + many = coerceNS + some = coerceNS +instance Sym_Rule NS where + rule n (NS ns) = NS $ do + -- NOTE: avoid infinite loops + -- by not reentering into already visited rules. + st@State{..} <- S.get + if HS.member n state_rules + then return mempty + else do + S.put $ st{state_rules = HS.insert n state_rules} + ns + arg _n = mempty +type instance Perm NS = NS +instance Sym_Interleaved NS where + interleaved = coerceNS + _f <$$> NS x = NS x + _f <$?> (_, NS x) = NS x + _f <$*> NS x = NS x + _f <$:> NS x = NS x + NS f <||> NS x = NS f <> NS x + NS f <|?> (_, NS x) = NS f <> NS x + NS f <|*> NS x = NS f <> NS x +instance Sym_RNC NS where + -- namespace n ns = + -- NS $ return $ HM.singleton ns $ HS.singleton n + namespace mp n = + NS $ return $ + case mp of + Just p -> def{namespaces_prefixes = HM.singleton n $ Just p} + Nothing -> def{namespaces_default = n} + element XML.QName{..} (NS nsM) = + NS $ (<$> nsM) $ \ns -> ns{namespaces_prefixes = + HM.insert qNameSpace Nothing $ namespaces_prefixes ns} + attribute XML.QName{..} (NS nsM) = + NS $ (<$> nsM) $ \ns -> ns{namespaces_prefixes = + HM.insert qNameSpace Nothing $ namespaces_prefixes ns} + anyElem qNameSpace f = + let NS nsM = f $ XML.NCName "*" in + NS $ (<$> nsM) $ \ns -> ns{namespaces_prefixes = + HM.insert qNameSpace Nothing $ namespaces_prefixes ns} + try = id + fail = mempty + text = mempty + any = mempty + choice = mconcat + option _def = coerceNS + optional = coerceNS + manySeq = coerceNS + someSeq = coerceNS diff --git a/Language/Symantic/XML.hs b/Language/Symantic/XML.hs new file mode 100644 index 0000000..48e36ea --- /dev/null +++ b/Language/Symantic/XML.hs @@ -0,0 +1,20 @@ +module Language.Symantic.XML + ( module Language.Symantic.XML.Document + , module Language.Symantic.XML.Parser + , XML + , XMLs + , Tree(..) + , tree0 + , FilePos(..) + , FileRange(..) + , FileSource + , NoSource(..) + , notSourced + , Sourced(..) + , readXML + , readFile + ) where +import Language.Symantic.XML.Document +import Language.Symantic.XML.Read +import Language.Symantic.XML.Parser +import Data.TreeSeq.Strict diff --git a/Language/Symantic/XML/Document.hs b/Language/Symantic/XML/Document.hs new file mode 100644 index 0000000..0cd71e1 --- /dev/null +++ b/Language/Symantic/XML/Document.hs @@ -0,0 +1,135 @@ +{-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE GeneralizedNewtypeDeriving #-} +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE PatternSynonyms #-} +{-# LANGUAGE ViewPatterns #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} +module Language.Symantic.XML.Document + ( module Language.Symantic.XML.Document + , TS.Tree(..) + , TS.Trees + ) where + +import Data.Bool +import Data.Eq (Eq(..)) +import Data.Foldable (Foldable(..), all) +import Data.Function (($), (.), id) +import Data.Hashable (Hashable(..)) +import Data.Maybe (Maybe(..)) +import Data.Ord (Ord(..)) +import Data.Semigroup (Semigroup(..)) +import Data.String (String, IsString(..)) +import GHC.Generics (Generic) +import Prelude (error) +import Text.Show (Show(..), showsPrec, showChar, showString) +import qualified Data.Char.Properties.XMLCharProps as XC +import qualified Data.List as List +import qualified Data.Text.Lazy as TL +import qualified Data.TreeSeq.Strict as TS +import qualified Data.Sequence as Seq + +pattern Tree0 :: a -> TS.Tree a +pattern Tree0 a <- TS.Tree a (null -> True) + where Tree0 a = TS.Tree a Seq.empty + +-- ** Type 'Node' +data Node + = NodeElem !QName -- ^ Node with some 'NodeAttr' and then other 'Node's as children. + | NodeAttr !QName -- ^ Node with a 'NodeText' child. + | NodePI !PName !TL.Text -- ^ Leaf (except for @@ which has 'NodeAttr's. + | NodeText !Text -- ^ Leaf. + | NodeComment !TL.Text -- ^ Leaf. + | NodeCDATA !TL.Text -- ^ Leaf. + deriving (Eq,Ord,Show) + +-- ** Type 'Text' +type Text = TL.Text + +-- ** Type 'Name' +newtype Name = Name { unName :: TL.Text } + deriving (Eq,Ord,Hashable) +instance Show Name where + showsPrec _p = showString . TL.unpack . unName +instance IsString Name where + fromString s + | c:cs <- s + , XC.isXmlNameStartChar c + && all XC.isXmlNameChar cs + = Name (TL.pack s) + | otherwise = error "Invalid XML Name" + +-- ** Type 'NCName' +-- | Non-colonized name. +newtype NCName = NCName { unNCName :: TL.Text } + deriving (Eq,Ord,Hashable) +instance Show NCName where + showsPrec _p = showString . TL.unpack . unNCName +instance IsString NCName where + fromString s + | c:cs <- s + , XC.isXmlNCNameStartChar c + && all XC.isXmlNCNameChar cs + = NCName (TL.pack s) + | otherwise = error "Invalid XML NCName" + +-- ** Type 'PName' +-- | Prefixed name. +data PName = PName + { pNameSpace :: !(Maybe NCName) -- ^ eg. Just "xml" + , pNameLocal :: !NCName -- ^ eg. "stylesheet" + } deriving (Eq,Ord,Generic) +instance Show PName where + showsPrec p PName{pNameSpace=Nothing, ..} = + showsPrec p pNameLocal + showsPrec _p PName{pNameSpace=Just p, ..} = + showsPrec 10 p . + showChar ':' . + showsPrec 10 pNameLocal +instance IsString PName where + fromString "" = PName Nothing "" -- NOTE: NCName's fromString will raise an error. + fromString s = + case List.break (== ':') s of + (_, "") -> PName Nothing $ fromString s + (p, local) -> PName (Just $ fromString p) (fromString $ List.drop 1 local) +instance Hashable PName + +pName :: NCName -> PName +pName = PName Nothing +{-# INLINE pName #-} + +-- ** Type 'QName' +-- | Qualified name. +data QName = QName + { qNameSpace :: !Namespace -- ^ eg. "http://www.w3.org/1999/XSL/Transform" + , qNameLocal :: !NCName -- ^ eg. "stylesheet" + } deriving (Eq,Ord,Generic) +instance Show QName where + showsPrec _p QName{..} = + (if TL.null $ unNamespace qNameSpace then id + else showChar '{' . showString (TL.unpack $ unNamespace qNameSpace) . showChar '}' + ) . showsPrec 10 qNameLocal +instance IsString QName where + fromString "" = QName "" "" -- NOTE: NCName's fromString will raise an error. + fromString full@('{':rest) = + case List.break (== '}') rest of + (_, "") -> error ("Invalid XML Clark notation: " <> show full) + (ns, local) -> QName (fromString ns) $ fromString $ List.drop 1 local + fromString local = QName "" $ fromString local +instance Hashable QName + +qName :: NCName -> QName +qName = QName "" +{-# INLINE qName #-} + +-- *** Type 'Namespace' +newtype Namespace = Namespace { unNamespace :: TL.Text } + deriving (Eq,Ord,Show,Hashable) +instance IsString Namespace where + fromString s = + if all (\c -> XC.isXmlChar c && c `List.notElem` ("'\"<&"::String)) s + then Namespace (fromString s) + else error $ "Invalid XML Namespace: " <> show s + +xmlns_xml, xmlns_xmlns :: Namespace +xmlns_xml = Namespace "http://www.w3.org/XML/1998/namespace" +xmlns_xmlns = Namespace "http://www.w3.org/2000/xmlns/" diff --git a/Language/Symantic/XML/HLint.hs b/Language/Symantic/XML/HLint.hs new file mode 120000 index 0000000..ab18269 --- /dev/null +++ b/Language/Symantic/XML/HLint.hs @@ -0,0 +1 @@ +../HLint.hs \ No newline at end of file diff --git a/Language/Symantic/XML/Parser.hs b/Language/Symantic/XML/Parser.hs new file mode 100644 index 0000000..709216e --- /dev/null +++ b/Language/Symantic/XML/Parser.hs @@ -0,0 +1,190 @@ +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE FlexibleInstances #-} +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeFamilies #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} +module Language.Symantic.XML.Parser where + +import Control.Applicative (Applicative(..)) +import Control.Monad (Monad(..)) +import Data.Bool +import Data.Either (Either(..)) +import Data.Foldable (Foldable(..)) +import Data.Function (($), (.)) +import Data.Functor ((<$>), (<$)) +import Data.Functor.Identity (Identity(..)) +import Data.List.NonEmpty (NonEmpty(..)) +import Data.Maybe (Maybe(..)) +import Data.Monoid (Monoid(..)) +import Data.Ord (Ord(..)) +import Data.Proxy (Proxy(..)) +import Data.Semigroup (Semigroup(..)) +import Data.Sequence (ViewL(..)) +import Data.String (String) +import Data.Tuple (snd) +import Text.Show (Show(..)) +import qualified Control.Monad.Trans.State as S +import qualified Data.List as List +import qualified Data.Sequence as Seq +import qualified Text.Megaparsec as P + +import Language.Symantic.XML.Read.Parser (XML, XMLs) +import qualified Language.Symantic.XML.Document as XML +import qualified Language.Symantic.XML.Read as XML + +-- | Whether the given 'XML.Node' must be ignored by the parser. +isIgnoredNode :: XML.Node -> Bool +isIgnoredNode = \case + XML.NodeComment{} -> True + XML.NodePI{} -> True + XML.NodeCDATA{} -> True + _ -> False + +instance P.Stream XMLs where + type Token XMLs = XML + type Tokens XMLs = XMLs + take1_ s = + case Seq.viewl s of + EmptyL -> Nothing + t@(XML.Tree XML.Sourced{XML.unSourced=n} _) :< ts + | isIgnoredNode n -> P.take1_ ts + | otherwise -> Just (t, ts) + positionAt1 _s pos (XML.Tree (XML.Sourced (XML.FileRange{XML.fileRange_begin=XML.FilePos l c}:|_) _n) _ts) = + pos{ P.sourceLine = P.mkPos l + , P.sourceColumn = P.mkPos c } + positionAtN s pos ts = + case Seq.viewl ts of + t :< _ -> P.positionAt1 s pos t + EmptyL -> pos + advance1 _s _indent pos (XML.Tree (XML.Sourced (XML.FileRange{XML.fileRange_end=XML.FilePos l c}:|_) _n) _ts) = + -- WARNING: the end of a 'FileRange' is not necessarily + -- the beginning of the next 'FileRange'. + pos{ P.sourceLine = P.mkPos l + , P.sourceColumn = P.mkPos c } + advanceN s = foldl' . P.advance1 s + takeN_ n s | n <= 0 = Just (mempty, s) + | null s = Nothing + | otherwise = + let (ns,rs) = Seq.splitAt n s in + let (ko,ok) = Seq.partition (isIgnoredNode . XML.unSourced . XML.unTree) ns in + case P.takeN_ (Seq.length ko) rs of + Nothing -> Just (ok, rs) + Just (ns',rs') -> Just (ok<>ns', rs') + tokensToChunk _s = Seq.fromList + chunkToTokens _s = toList + chunkLength _s = Seq.length + takeWhile_ = Seq.spanl +instance P.ShowToken XML where + showTokens toks = List.intercalate ", " $ toList $ showTree <$> toks + where + showTree :: XML -> String + showTree (XML.Tree a _ts) = + showCell a $ \case + XML.NodeElem n -> "<"<>show n + XML.NodeAttr n -> show n<>"=" + XML.NodeText _t -> "text" + XML.NodeComment _c -> "" + cell <- p_SourcedEnd + return $ TS.tree0 (cell $ NodeComment c) + +-- ** CDATA +p_CDSect :: P.Tokens s ~ TL.Text => Parser Error s XML +p_CDSect = p_SourcedBegin $ P.string " p_CDSect__ +p_CDSect_ :: P.Tokens s ~ TL.Text => Parser Error s XML +p_CDSect_ = P.string "[CDATA[" *> p_CDSect__ +p_CDSect__ :: P.Tokens s ~ TL.Text => Parser Error s XML +p_CDSect__ = P.label "CDSect" $ do + c <- p_until XC.isXmlChar (']', "]>") + void $ P.string "]]>" + cell <- p_SourcedEnd + return $ TS.tree0 $ cell $ NodeCDATA c + +-- ** PI +p_PI :: P.Tokens s ~ TL.Text => Parser Error s XML +p_PI = p_SourcedBegin $ P.string " p_PI__ +p_PI_ :: P.Tokens s ~ TL.Text => Parser Error s XML +p_PI_ = P.char '?' *> p_PI__ +p_PI__ :: P.Tokens s ~ TL.Text => Parser Error s XML +p_PI__ = P.label "PI" $ do + n <- p_PITarget + v <- P.option "" $ P.try $ p_Spaces1 *> p_until XC.isXmlChar ('?', ">") + void $ P.string "?>" + cell <- p_SourcedEnd + return $ TS.tree0 $ cell $ NodePI n v +p_PITarget :: P.Tokens s ~ TL.Text => Parser Error s PName +p_PITarget = do + n <- p_PName + case n of + PName{pNameSpace=Just "", pNameLocal=NCName l} + | "xml" == TL.toLower l -> p_error $ Error_PI_reserved n + _ -> return n + +-- ** Element +p_Element :: P.Tokens s ~ TL.Text => Parser Error s XML +p_Element = p_SourcedBegin $ (P.char '<' *> p_Element_) +p_Element_ :: P.Tokens s ~ TL.Text => Parser Error s XML +p_Element_ = P.label "Element" p_STag + +-- *** STag +p_STag :: P.Tokens s ~ TL.Text => Parser Error s XML +p_STag = do + n <- p_PName + as <- P.many $ P.try $ p_Spaces1 *> p_Attribute + p_Spaces + ro <- R.ask + elemNS :: HM.HashMap NCName Namespace <- + (HM.fromList . List.concat <$>) $ forM as $ \case + Sourced _ (PName{..}, Sourced _ av) + | ns <- Namespace av + , Nothing <- pNameSpace + , NCName "xmlns" <- pNameLocal -> + -- NOTE: default namespace declaration. + case ns of + _ | ns == xmlns_xml -- DOC: it MUST NOT be declared as the default namespace + || ns == xmlns_xmlns -- DOC: it MUST NOT be declared as the default namespace + -> p_error $ Error_Namespace_reserved ns + _ -> return [(NCName "" , ns)] + | ns <- Namespace av + , Just (NCName "xmlns") <- pNameSpace -> + -- NOTE: namespace prefix declaration. + case unNCName pNameLocal of + "xml" -- DOC: It MAY, but need not, be declared, + -- and MUST NOT be bound to any other namespace name. + | ns == xmlns_xml -> return [] + | otherwise -> p_error $ Error_Namespace_reserved_prefix pNameLocal + "xmlns" -- DOC: It MUST NOT be declared + -> p_error $ Error_Namespace_reserved_prefix pNameLocal + local | "xml" <- TL.toLower $ TL.take 3 local -> return [] + -- DOC: All other prefixes beginning with the three-letter + -- sequence x, m, l, in any case combination, are reserved. + -- This means that: processors MUST NOT treat them as fatal errors. + _ | ns == xmlns_xml -- DOC: Other prefixes MUST NOT be bound to this namespace name. + || ns == xmlns_xmlns -- DOC: Other prefixes MUST NOT be bound to this namespace name. + -> p_error $ Error_Namespace_reserved ns + _ -> return [(pNameLocal, ns)] + | otherwise -> return [] + let scopeNS = elemNS <> reader_ns_scope ro + let defaultNS = HM.lookupDefault (reader_ns_default ro) (NCName "") scopeNS + let lookupNamePrefix prefix = + maybe (p_error $ Error_Namespace_prefix_unknown prefix) return $ + HM.lookup prefix scopeNS + elemName :: QName <- + -- NOTE: expand element's QName. + case pNameSpace n of + Nothing -> return QName{qNameSpace=defaultNS, qNameLocal=pNameLocal n} + -- DOC: If there is a default namespace declaration in scope, + -- the expanded name corresponding to an unprefixed element name + -- has the URI of the default namespace as its namespace name. + Just prefix + | NCName "xmlns" <- prefix -> + -- DOC: Element names MUST NOT have the prefix xmlns. + p_error $ Error_Namespace_reserved_prefix prefix + | otherwise -> do + ns <- lookupNamePrefix prefix + return QName{qNameSpace=ns, qNameLocal=pNameLocal n} + elemAttrs :: [Sourced FileSource (QName, Sourced FileSource Text)] <- + -- NOTE: expand attributes' PName into QName. + forM as $ \s@Sourced{unSourced=(an, av)} -> do + ns <- maybe (return "") lookupNamePrefix $ pNameSpace an + let qn = QName{qNameSpace=ns, qNameLocal=pNameLocal an} + return s{unSourced=(qn, av)} + -- Check for attribute collision. + let attrsByQName :: HM.HashMap QName [Sourced FileSource (QName, Sourced FileSource Text)] = + HM.fromListWith (<>) $ (<$> elemAttrs) $ \a@(Sourced _c (an, _av)) -> (an, [a]) + case HM.toList $ HM.filter (\x -> length x > 1) attrsByQName of + (an, _):_ -> p_error $ Error_Attribute_collision an + _ -> return () + elemAttrsXML :: XMLs <- (Seq.fromList <$>) $ + forM elemAttrs $ \(Sourced sa (an, av)) -> do + return $ TS.Tree (Sourced sa $ NodeAttr an) $ + pure $ TS.tree0 $ NodeText <$> av + content :: XMLs <- + elemAttrsXML <$ P.string "/>" <|> + R.local + (const ro + { reader_ns_scope = scopeNS + , reader_ns_default = defaultNS + }) + ((elemAttrsXML <>) <$ P.char '>' <*> p_content <* p_ETag elemName) + cell <- p_SourcedEnd + return $ Tree (cell $ NodeElem elemName) content + +-- *** Attribute +p_Attribute :: P.Tokens s ~ TL.Text => Parser Error s (Sourced FileSource (PName, Sourced FileSource TL.Text)) +p_Attribute = p_Sourced $ (,) <$> p_PName <* p_Eq <*> p_AttValue + +p_AttValue :: P.Tokens s ~ TL.Text => Parser Error s (Sourced FileSource TL.Text) +p_AttValue = P.label "AttValue" $ p_quoted p_AttValueText + +p_AttValueText :: P.Tokens s ~ TL.Text => Char -> Parser Error s (Sourced FileSource TL.Text) +p_AttValueText q = p_Sourced $ + TL.concat <$> P.many + ( p_Reference + <|> P.takeWhile1P Nothing (\c -> + XC.isXmlChar c && + c `List.notElem` (q:"<&")) + ) + +-- * content +p_content :: P.Tokens s ~ TL.Text => Parser Error s XMLs +p_content = + (Seq.fromList <$>) $ P.many $ + (p_SourcedBegin $ do + P.try $ P.char '<' *> P.notFollowedBy (P.char '/') + p_Element_ <|> p_PI_ <|> (P.char '!' *> (p_Comment_ <|> p_CDSect_)) + ) <|> p_CharData + +-- *** ETag +p_ETag :: P.Tokens s ~ TL.Text => QName -> Parser Error s () +p_ETag expected = do + got <- P.string " p_QName <* p_Spaces <* P.char '>' + unless (got == expected) $ + p_error $ Error_Closing_tag_unexpected got expected + +-- * Name +p_Name :: P.Tokens s ~ TL.Text => Parser Error s Name +p_Name = P.label "Name" $ + Name + <$ P.notFollowedBy (P.satisfy $ not . XC.isXmlNameStartChar) + <*> P.takeWhile1P Nothing XC.isXmlNameChar + +-- * PName +p_PName :: P.Tokens s ~ TL.Text => Parser e s PName +p_PName = P.label "PName" $ do + n <- p_NCName + s <- P.optional $ P.try $ P.char ':' *> p_NCName + return $ case s of + Nothing -> PName{pNameSpace=Nothing, pNameLocal=n} + Just l -> PName{pNameSpace=Just n , pNameLocal=l} + +-- * QName +p_QName :: P.Tokens s ~ TL.Text => Parser Error s QName +p_QName = P.label "QName" $ do + n <- p_NCName + s <- P.optional $ P.try $ P.char ':' *> p_NCName + Reader{..} <- R.ask + case s of + Nothing -> return QName{qNameSpace=reader_ns_default, qNameLocal=n} + Just l -> + case HM.lookup n reader_ns_scope of + Nothing -> p_error $ Error_Namespace_prefix_unknown n + Just ns -> return QName{qNameSpace=ns, qNameLocal=l} + +-- ** NCName +p_NCName :: P.Tokens s ~ TL.Text => Parser e s NCName +p_NCName = P.label "NCName" $ + NCName + <$ P.notFollowedBy (P.satisfy $ not . XC.isXmlNCNameStartChar) + <*> P.takeWhile1P Nothing XC.isXmlNCNameChar + +-- * Reference +p_Reference :: P.Tokens s ~ TL.Text => Parser Error s TL.Text +p_Reference = TL.singleton <$> p_CharRef <|> p_EntityRef + +-- ** EntityRef +p_EntityRef :: P.Tokens s ~ TL.Text => Parser Error s TL.Text +p_EntityRef = P.label "EntityRef" $ do + ref <- P.char '&' *> p_Name <* P.char ';' + lookupEntityRef ref + where + lookupEntityRef (Name "lt" ) = pure "<" + lookupEntityRef (Name "gt" ) = pure ">" + lookupEntityRef (Name "amp" ) = pure "&" + lookupEntityRef (Name "apos") = pure "'" + lookupEntityRef (Name "quot") = pure "\"" + lookupEntityRef n = p_error $ Error_EntityRef_unknown n + +-- ** CharRef +p_CharRef :: P.Tokens s ~ TL.Text => Parser Error s Char +p_CharRef = P.label "CharRef" $ + do + ref <- readHexadecimal + <$ P.string "&#x" + <*> P.some P.hexDigitChar + <* P.char ';' + check ref + <|> do + ref <- readDecimal + <$ P.string "&#" + <*> P.some P.digitChar + <* P.char ';' + check ref + where + check i = + let c = toEnum (fromInteger i) in + if i <= toInteger (fromEnum (maxBound::Char)) + && XC.isXmlChar c + then pure c + else p_error $ Error_CharRef_invalid i + +readInt :: Integer -> String -> Integer +readInt base digits = + sign * List.foldl' acc 0 (List.concatMap digToInt digits1) + where + acc q r = q*base + r + (sign, digits1) = + case digits of + [] -> (1, digits) + c:ds | c == '-' -> (-1, ds) + | c == '+' -> ( 1, ds) + | otherwise -> ( 1, digits) + ord = toInteger . Char.ord + digToInt c + | Char.isDigit c = [ord c - ord '0'] + | Char.isAsciiLower c = [ord c - ord 'a' + 10] + | Char.isAsciiUpper c = [ord c - ord 'A' + 10] + | otherwise = [] + +readDecimal :: String -> Integer +readDecimal = readInt 10 + +readHexadecimal :: String -> Integer +readHexadecimal = readInt 16 + +-- * Char +p_Char :: P.Tokens s ~ TL.Text => Parser e s Char +p_Char = P.label "Char" $ P.satisfy XC.isXmlCharCR <|> p_CRLF +{-# INLINE p_Char #-} + +-- ** Space +-- | Map '\r' and '\r\n' to '\n'. +p_CRLF :: P.Tokens s ~ TL.Text => Parser e s Char +p_CRLF = P.label "CRLF" $ + P.char '\r' *> P.option '\n' (P.char '\n') + +p_Space :: P.Tokens s ~ TL.Text => Parser e s Char +p_Space = P.label "Space" $ + P.satisfy XC.isXmlSpaceCharCR <|> p_CRLF +{-# INLINE p_Space #-} + +p_Spaces :: P.Tokens s ~ TL.Text => Parser e s () +p_Spaces = P.label "Spaces" $ + void $ P.takeWhileP Nothing XC.isXmlSpaceChar +{-# INLINE p_Spaces #-} + +p_S :: P.Tokens s ~ TL.Text => Parser Error s XML +p_S = P.label "Spaces" $ + (\ts -> TS.tree0 (NodeText . TL.concat <$> ts)) + <$> p_Sourced (P.some $ + P.takeWhile1P Nothing XC.isXmlSpaceCharCR <|> + TL.singleton <$> p_CRLF) + +p_Spaces1 :: P.Tokens s ~ TL.Text => Parser e s () +p_Spaces1 = P.label "Spaces1" $ + void $ P.takeWhile1P Nothing XC.isXmlSpaceChar +{-# INLINE p_Spaces1 #-} + +-- * Eq +p_separator :: P.Tokens s ~ TL.Text => Char -> Parser e s () +p_separator c = P.try (() <$ p_Spaces <* P.char c) <* p_Spaces [c] + +p_Eq :: P.Tokens s ~ TL.Text => Parser e s () +p_Eq = p_separator '=' "Eq" diff --git a/Language/Symantic/XML/Read/HLint.hs b/Language/Symantic/XML/Read/HLint.hs new file mode 120000 index 0000000..ab18269 --- /dev/null +++ b/Language/Symantic/XML/Read/HLint.hs @@ -0,0 +1 @@ +../HLint.hs \ No newline at end of file diff --git a/Language/Symantic/XML/Read/Parser.hs b/Language/Symantic/XML/Read/Parser.hs new file mode 100644 index 0000000..aef132c --- /dev/null +++ b/Language/Symantic/XML/Read/Parser.hs @@ -0,0 +1,342 @@ +{-# LANGUAGE ConstraintKinds #-} +{-# LANGUAGE DeriveFunctor #-} +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE GeneralizedNewtypeDeriving #-} +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE Rank2Types #-} +{-# LANGUAGE TypeFamilies #-} +module Language.Symantic.XML.Read.Parser where + +import Control.Applicative (Applicative(..), Alternative(..)) +import Control.Monad (Monad(..)) +import Data.Bool +import Data.Char (Char) +import Data.Default.Class (Default(..)) +import Data.Either (Either(..)) +import Data.Eq (Eq(..)) +import Data.Function (($), (.)) +import Data.Functor (Functor, (<$>)) +import Data.Functor.Identity (Identity(..)) +import Data.List.NonEmpty (NonEmpty(..), nonEmpty) +import Data.Maybe (Maybe(..), fromMaybe) +import Data.Ord (Ord(..)) +import Data.Proxy (Proxy(..)) +import Data.Semigroup (Semigroup(..)) +import Data.Sequence (Seq) +import Data.String (IsString) +import Data.Tuple (snd) +import Prelude (Int, Integer, Num(..), fromIntegral) +import System.FilePath (FilePath) +import Text.Show (Show(..), showChar, showString, showParen) +import qualified Control.Monad.Trans.Reader as R +import qualified Data.HashMap.Strict as HM +import qualified Data.Set as Set +import qualified Data.Text as Text +import qualified Data.Text.Lazy as TL +import qualified Data.TreeSeq.Strict as TS +import qualified Text.Megaparsec as P +import qualified Text.Megaparsec.Char as P + +import Language.Symantic.XML.Document + +-- * Type 'XML' +type XML = TS.Tree (Sourced FileSource Node) +type XMLs = Seq XML + +-- * Type 'Parser' +-- | Convenient alias. +type Parser e s a = + Parsable e s a => + R.ReaderT Reader (P.ParsecT e s Identity) a + +-- ** Type 'Parsable' +type Parsable e s a = + ( P.Stream s + , P.Token s ~ Char + , Ord e + , IsString (P.Tokens s) + , P.ShowErrorComponent e + ) + +-- ** Type 'Reader' +data Reader = Reader + { reader_source :: !FileSource + , reader_ns_scope :: !(HM.HashMap NCName Namespace) + , reader_ns_default :: !Namespace + } deriving (Show) +instance Default Reader where + def = Reader + { reader_source = pure def + , reader_ns_scope = HM.fromList + [ ("xml" , xmlns_xml) + , ("xmlns", xmlns_xmlns) + ] + , reader_ns_default = "" + } + +-- * Type 'Sourced' +data Sourced src a + = Sourced + { source :: !src + , unSourced :: !a + } deriving (Eq, Ord, Functor) +instance (Show src, Show a) => Show (Sourced src a) where + showsPrec p Sourced{..} = + showParen (p > 10) $ + showsPrec 11 unSourced . + showString " @" . showsPrec 10 source +instance (FromPad a, Semigroup a) => Semigroup (Sourced FileSource a) where + Sourced (FileRange fx bx ex :| lx) x <> Sourced (FileRange _fy by ey :| _ly) y = + Sourced (FileRange fx bx ey :| lx) $ + x<>fromPad (FilePos lines columns)<>y + where + lines = filePos_line by - filePos_line ex + columns = filePos_column by - filePos_column (if lines <= 0 then ex else bx) + +p_Sourced :: Parser e s a -> Parser e s (Sourced FileSource a) +p_Sourced pa = do + Reader{reader_source} <- R.ask + beginPos :| _ <- P.statePos <$> P.getParserState + a <- pa + fileRange_end <- p_FilePos + let fileRange = FileRange + { fileRange_file = P.sourceName beginPos + , fileRange_begin = + FilePos + (P.unPos $ P.sourceLine beginPos) + (P.unPos $ P.sourceColumn beginPos) + , fileRange_end + } + return $ Sourced (setSource fileRange reader_source) a + +setSource :: FileRange -> FileSource -> FileSource +setSource fileRange (_curr:|next) = fileRange :| next + +-- | Like 'p_Sourced' but uncoupled for more flexibility. +p_SourcedBegin :: Parser e s a -> Parser e s a +p_SourcedBegin pa = do + currPos :| _ <- P.statePos <$> P.getParserState + let fileRange_begin = FilePos + (P.unPos $ P.sourceLine currPos) + (P.unPos $ P.sourceColumn currPos) + let fileRange = FileRange + { fileRange_file = P.sourceName currPos + , fileRange_begin + , fileRange_end = fileRange_begin + } + (`R.local` pa) $ \ro@Reader{..} -> + ro{ reader_source = setSource fileRange reader_source } + +-- | Only to be used within a 'p_SourcedBegin'. +p_SourcedEnd :: Parser e s (a -> Sourced FileSource a) +p_SourcedEnd = do + fileRange_end <- p_FilePos + Reader{..} <- R.ask + return $ Sourced $ + (\(curr:|path) -> curr{fileRange_end}:|path) + reader_source + +-- | Wrapper around |P.runParser'| +-- to use given 'Sourced' as starting position. +runParserOnSourced :: + Parsable e StreamSourced a => + Parser e StreamSourced a -> + Sourced FileSource TL.Text -> + Either (P.ParseError (P.Token StreamSourced) e) a +runParserOnSourced p (Sourced (FileRange inp bp _ep :| path) s) = + snd $ + P.runParser' (R.runReaderT p ro <* P.eof) + P.State + { P.stateInput = StreamSourced s + , P.statePos = pure $ P.SourcePos inp (P.mkPos $ filePos_line bp) indent + , P.stateTabWidth = indent + , P.stateTokensProcessed = 0 + } + where + indent = P.mkPos $ filePos_column bp + ro = def{ reader_source = fromMaybe (pure def) $ nonEmpty path } + +-- ** Class 'NoSource' +class NoSource src where + noSource :: src +instance NoSource FileSource where + noSource = noSource :| [] +instance NoSource FileRange where + noSource = FileRange "" filePos1 filePos1 +{- +instance (FromPad a, Semigroup a, Monoid a) => Monoid (Sourced a) where + mempty = sourced0 mempty + mappend = (<>) +-} + +notSourced :: NoSource src => a -> Sourced src a +notSourced = Sourced noSource + +-- ** Type 'StreamSourced' +-- | Wrap 'TL.Text' to have a 'P.Stream' instance +-- whose 'P.advance1' method abuses the tab width state +-- to instead pass the line indent. +-- This in order to report correct 'P.SourcePos' +-- when parsing a 'Sourced' containing newlines. +newtype StreamSourced = StreamSourced { unStreamSourced :: TL.Text } + deriving (IsString,Eq,Ord) +instance P.Stream StreamSourced where + type Token StreamSourced = Char + type Tokens StreamSourced = TL.Text + take1_ (StreamSourced t) = (StreamSourced <$>) <$> P.take1_ t + takeN_ n (StreamSourced t) = (StreamSourced <$>) <$> P.takeN_ n t + takeWhile_ f (StreamSourced t) = StreamSourced <$> P.takeWhile_ f t + tokensToChunk _s = P.tokensToChunk (Proxy::Proxy TL.Text) + chunkToTokens _s = P.chunkToTokens (Proxy::Proxy TL.Text) + chunkLength _s = P.chunkLength (Proxy::Proxy TL.Text) + advance1 _s indent (P.SourcePos n line col) c = + case c of + '\n' -> P.SourcePos n (line <> P.pos1) indent + _ -> P.SourcePos n line (col <> P.pos1) + advanceN s indent = TL.foldl' (P.advance1 s indent) + +-- * Type 'FileSource' +type FileSource = NonEmpty FileRange + +-- ** Type 'FileRange' +data FileRange + = FileRange + { fileRange_file :: !FilePath + , fileRange_begin :: !FilePos + , fileRange_end :: !FilePos + } deriving (Eq, Ord) +instance Default FileRange where + def = FileRange "" filePos1 filePos1 +instance Show FileRange where + showsPrec _p FileRange{..} = + showString fileRange_file . + showChar '#' . showsPrec 10 fileRange_begin . + showChar '-' . showsPrec 10 fileRange_end + +-- *** Type 'FilePos' +-- | Absolute text file position. +data FilePos = FilePos + { filePos_line :: {-# UNPACK #-} !LineNum + , filePos_column :: {-# UNPACK #-} !ColNum + } deriving (Eq, Ord) +instance Default FilePos where + def = filePos1 +instance Show FilePos where + showsPrec _p FilePos{..} = + showsPrec 11 filePos_line . + showChar ':' . + showsPrec 11 filePos_column + +filePos1 :: FilePos +filePos1 = FilePos 1 1 + +p_FilePos :: Parser e s FilePos +p_FilePos = do + pos :| _ <- P.statePos <$> P.getParserState + return $ FilePos (P.unPos $ P.sourceLine pos) (P.unPos $ P.sourceColumn pos) + +-- **** Type 'LineNum' +type LineNum = Int + +-- **** Type 'ColNum' +type ColNum = Int + +-- **** Class 'FromPad' +class FromPad a where + fromPad :: FilePos -> a +instance FromPad Text.Text where + fromPad FilePos{..} = + Text.replicate filePos_line "\n" <> + Text.replicate filePos_column " " +instance FromPad TL.Text where + fromPad FilePos{..} = + TL.replicate (fromIntegral filePos_line) "\n" <> + TL.replicate (fromIntegral filePos_column) " " + +-- * Type 'Error' +data Error + = Error_CharRef_invalid Integer + -- ^ Well-formedness constraint: Legal Character. + -- + -- Characters referred to using character references MUST match the production for Char. + | Error_EntityRef_unknown Name + -- ^ Well-formedness constraint: Entity Declared + -- + -- In a document without any DTD, a document with only an internal DTD + -- subset which contains no parameter entity references, or a document + -- with " standalone='yes' ", for an entity reference that does not occur + -- within the external subset or a parameter entity, the Name given in the + -- entity reference MUST match that in an entity declaration that does not + -- occur within the external subset or a parameter entity, except that + -- well-formed documents need not declare any of the following entities: + -- amp, lt, gt, apos, quot. The declaration of a general entity MUST + -- precede any reference to it which appears in a default value in an + -- attribute-list declaration. + -- + -- Note that non-validating processors are not obligated to read and + -- process entity declarations occurring in parameter entities or in the + -- external subset; for such documents, the rule that an entity must be + -- declared is a well-formedness constraint only if standalone='yes'. + | Error_Closing_tag_unexpected QName QName + -- ^ Well-formedness constraint: Element Type Match. + -- + -- The Name in an element's end-tag MUST match the element type in the start-tag. + | Error_Attribute_collision QName + -- ^ Well-formedness constraint: Unique Att Spec. + -- + -- An attribute name MUST NOT appear more than once in the same start-tag or empty-element tag. + | Error_PI_reserved PName + -- ^ The target names " XML ", " xml ", and so on are reserved for standardization. + | Error_Namespace_prefix_unknown NCName + -- ^ Namespace constraint: Prefix Declared + -- + -- The namespace prefix, unless it is xml or xmlns, MUST have been declared in a namespace declaration attribute in either the start-tag of the element where the prefix is used or in an ancestor element (i.e., an element in whose content the prefixed markup occurs). + | Error_Namespace_empty NCName + -- ^ Namespace constraint: No Prefix Undeclaring + -- + -- In a namespace declaration for a prefix (i.e., where the NSAttName is a PrefixedAttName), the attribute value MUST NOT be empty. + | Error_Namespace_reserved Namespace + | Error_Namespace_reserved_prefix NCName + -- ^ Namespace constraint: Reserved Prefixes and Namespace Names + -- + -- The prefix xml is by definition bound to the namespace name + -- http://www.w3.org/XML/1998/namespace. It MAY, but need not, be + -- declared, and MUST NOT be bound to any other namespace name. Other + -- prefixes MUST NOT be bound to this namespace name, and it MUST NOT be + -- declared as the default namespace. + -- + -- The prefix xmlns is used only to declare namespace bindings and is by + -- definition bound to the namespace name http://www.w3.org/2000/xmlns/. + -- It MUST NOT be declared . Other prefixes MUST NOT be bound to this + -- namespace name, and it MUST NOT be declared as the default namespace. + -- Element names MUST NOT have the prefix xmlns. + -- + -- All other prefixes beginning with the three-letter sequence x, m, l, in + -- any case combination, are reserved. This means that: + -- + -- - users SHOULD NOT use them except as defined by later specifications + -- - processors MUST NOT treat them as fatal errors. + deriving (Eq,Ord,Show) +instance P.ShowErrorComponent Error where + showErrorComponent = show + +-- * Helpers +p_error :: e -> Parser e s a +p_error = P.fancyFailure . Set.singleton . P.ErrorCustom + +p_quoted :: P.Tokens s ~ TL.Text => (Char -> Parser e s a) -> Parser e s a +p_quoted p = + P.between (P.char '"') (P.char '"') (p '"') <|> + P.between (P.char '\'') (P.char '\'') (p '\'') + +p_until :: P.Tokens s ~ TL.Text => (Char -> Bool) -> (Char, TL.Text) -> Parser e s TL.Text +p_until content (end, end_) = + (TL.concat <$>) $ P.many $ + P.takeWhile1P Nothing (\c -> content c && c /= end) <|> + P.try (TL.singleton <$> P.char end <* P.notFollowedBy (P.string end_)) + +p_until1 :: P.Tokens s ~ TL.Text => (Char -> Bool) -> (Char, TL.Text) -> Parser e s TL.Text +p_until1 content (end, end_) = + (TL.concat <$>) $ P.some $ + P.takeWhile1P Nothing (\c -> content c && c /= end) <|> + P.try (TL.singleton <$> P.char end <* P.notFollowedBy (P.string end_)) diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..c177492 --- /dev/null +++ b/stack.yaml @@ -0,0 +1,8 @@ +resolver: lts-12.8 +packages: +- '.' +- location: '../haskell-treeseq' + extra-dep: true +- location: '../haskell-symantic/symantic-grammar' + extra-dep: true + diff --git a/symantic-xml.cabal b/symantic-xml.cabal new file mode 100644 index 0000000..eb82da6 --- /dev/null +++ b/symantic-xml.cabal @@ -0,0 +1,122 @@ +name: symantic-xml +-- PVP: +-+------- breaking API changes +-- | | +----- non-breaking API additions +-- | | | +--- code changes with no API change +version: 0.0.0.20181024 +category: Data Structures +synopsis: Library for reading, validating and writing a subset of the XML format. +description: Symantics for an approximative implementation + of XML (eXtensible Markup Language) and RNC (RelaxNG Compact). + . + Motivation: Other Haskell libraries do not fit my needs or are too heavy/complex. + I like the principle to parse XML using some symantics, + which can both generate a Megaparsec parser to validate the XML tree, + and a RNC rendition of the schema it validates. + . + DISCLAMER: My life being's too short, I'm NOT burning my brain + on seriously conforming to the too complex XML and RNC formats. + Still I try to respect a vague subset of those, + unless it makes the code more complex than I am comfortable with. +extra-doc-files: +license: GPL-3 +license-file: COPYING +stability: experimental +author: Julien Moutinho +maintainer: Julien Moutinho +bug-reports: Julien Moutinho +-- homepage: + +build-type: Simple +cabal-version: 1.24 +tested-with: GHC==8.4.3 +extra-source-files: + stack.yaml +extra-tmp-files: + +Source-Repository head + location: git://git.autogeree.net/symantic + type: git + +Library + exposed-modules: + Language.Symantic.RNC + Language.Symantic.RNC.Sym + Language.Symantic.RNC.Write + Language.Symantic.RNC.Write.Namespaces + Language.Symantic.RNC.Validate + Language.Symantic.XML + Language.Symantic.XML.Document + Language.Symantic.XML.Read + Language.Symantic.XML.Read.Parser + Language.Symantic.XML.Parser + default-language: Haskell2010 + default-extensions: + FlexibleContexts + FlexibleInstances + LambdaCase + MultiParamTypeClasses + NamedFieldPuns + NoImplicitPrelude + RecordWildCards + ScopedTypeVariables + TupleSections + -- TypeFamilies + ghc-options: + -Wall + -Wincomplete-uni-patterns + -Wincomplete-record-updates + -fno-warn-tabs + -- -fhide-source-paths + build-depends: + base >= 4.10 && < 5 + , bytestring >= 0.10 + , containers >= 0.5 + , data-default-class >= 0.1 + , filepath >= 1.4 + , hashable >= 1.2.6 + , hxt-charproperties >= 9.2 + , megaparsec >= 6.3 + , safe >= 0.3 + , symantic-grammar >= 0.3.2 + , text >= 1.2 + , transformers >= 0.5 + , treeseq >= 1.0 + , unordered-containers >= 0.2.8 + +Test-Suite symantic-xml-test + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: Main.hs + other-modules: + Golden + -- HUnit + -- QuickCheck + default-language: Haskell2010 + default-extensions: + LambdaCase + NamedFieldPuns + NoImplicitPrelude + RecordWildCards + ViewPatterns + ghc-options: + -Wall + -Wincomplete-uni-patterns + -Wincomplete-record-updates + -fno-warn-tabs + -fhide-source-paths + build-depends: + symantic-xml + , base >= 4.10 && < 5 + , bytestring >= 0.10 + , containers >= 0.5 + , deepseq >= 1.4 + , filepath >= 1.4 + , megaparsec >= 6.3 + , tasty >= 0.11 + , tasty-golden >= 2.3 + , text >= 1.2 + , transformers >= 0.4 + , treeseq >= 1.0 + -- , QuickCheck >= 2.0 + -- , tasty-hunit + -- , tasty-quickcheck diff --git a/test/Golden.hs b/test/Golden.hs new file mode 100644 index 0000000..d2b8079 --- /dev/null +++ b/test/Golden.hs @@ -0,0 +1,74 @@ +module Golden where + +import Control.Arrow (left) +import Control.Monad (Monad(..), sequence) +import Data.Either (Either(..)) +import Data.Function (($), (.)) +import Data.Functor ((<$>)) +import Data.Semigroup (Semigroup(..)) +import Data.String (String) +import System.FilePath (FilePath) +import System.IO (IO) +import Text.Show (Show(..)) +import qualified Data.ByteString.Lazy as BSL +import qualified Data.List as List +import qualified Data.Text.Lazy as TL +import qualified Data.Text.Lazy.Encoding as TL +import qualified Text.Megaparsec as P +import qualified Data.TreeSeq.Strict as TS + +import Test.Tasty +import Test.Tasty.Golden + +import Language.Symantic.XML (XMLs) +import qualified Language.Symantic.XML as XML + +-- * Golden testing utilities +testGolden :: TestName -> TestName -> IO (Either String BSL.ByteString) -> TestTree +testGolden inputFile expectedExt = + goldenVsStringDiff inputFile diffGolden (inputFile <> expectedExt) + . (>>= unLeft) + +diffGolden :: FilePath -> FilePath -> [String] +diffGolden ref new = ["diff", "-u", ref, new] + +unLeft :: Either String BSL.ByteString -> IO BSL.ByteString +unLeft = \case + Left err -> return $ TL.encodeUtf8 $ TL.pack err + Right a -> return a + +readXML :: FilePath -> IO (Either String XMLs) +readXML inputFile = + XML.readFile inputFile >>= \case + Left err -> return $ Left $ show err + Right input -> + return $ left P.parseErrorPretty $ + XML.readXML inputFile input + +goldensIO :: IO TestTree +goldensIO = + testGroup "Golden" <$> + sequence + [ goldensXML + , goldensRNC + ] + +goldensXML :: IO TestTree +goldensXML = do + inputFiles <- List.sort <$> findByExtension [".xml"] "test/Golden" + return $ testGroup "XML" + [ testGolden inputFile ".ast" $ + readXML inputFile >>= \ast -> + return $ + TL.encodeUtf8 + . TL.pack + . TS.prettyTrees + <$> ast + | inputFile <- inputFiles + ] + +goldensRNC :: IO TestTree +goldensRNC = + return $ testGroup "RNC" + [ + ] diff --git a/test/Golden/RNC/0000.xml b/test/Golden/RNC/0000.xml new file mode 100644 index 0000000..f3f286e --- /dev/null +++ b/test/Golden/RNC/0000.xml @@ -0,0 +1 @@ + diff --git a/test/Golden/RNC/0000.xml.ast b/test/Golden/RNC/0000.xml.ast new file mode 100644 index 0000000..849943d --- /dev/null +++ b/test/Golden/RNC/0000.xml.ast @@ -0,0 +1,2 @@ +(NodeElem root) @(test/Golden/RNC/0000.xml#1:1-1:8 :| []) + diff --git a/test/Golden/XML/0001.xml b/test/Golden/XML/0001.xml new file mode 100644 index 0000000..f3f286e --- /dev/null +++ b/test/Golden/XML/0001.xml @@ -0,0 +1 @@ + diff --git a/test/Golden/XML/0001.xml.ast b/test/Golden/XML/0001.xml.ast new file mode 100644 index 0000000..c685baa --- /dev/null +++ b/test/Golden/XML/0001.xml.ast @@ -0,0 +1,2 @@ +(NodeElem root) @(test/Golden/XML/0001.xml#1:1-1:8 :| []) + diff --git a/test/Golden/XML/0002.xml b/test/Golden/XML/0002.xml new file mode 100644 index 0000000..af801f4 --- /dev/null +++ b/test/Golden/XML/0002.xml @@ -0,0 +1 @@ + diff --git a/test/Golden/XML/0002.xml.ast b/test/Golden/XML/0002.xml.ast new file mode 100644 index 0000000..6c8fe41 --- /dev/null +++ b/test/Golden/XML/0002.xml.ast @@ -0,0 +1,2 @@ +(NodeElem root) @(test/Golden/XML/0002.xml#1:1-1:14 :| []) + diff --git a/test/Golden/XML/0003.xml b/test/Golden/XML/0003.xml new file mode 100644 index 0000000..446b3ba --- /dev/null +++ b/test/Golden/XML/0003.xml @@ -0,0 +1 @@ + diff --git a/test/Golden/XML/0003.xml.ast b/test/Golden/XML/0003.xml.ast new file mode 100644 index 0000000..e194ff6 --- /dev/null +++ b/test/Golden/XML/0003.xml.ast @@ -0,0 +1,6 @@ +(NodeElem root) @(test/Golden/XML/0003.xml#1:1-1:15 :| []) +| +`- (NodeAttr n) @(test/Golden/XML/0003.xml#1:7-1:12 :| []) + | + `- (NodeText "v") @(test/Golden/XML/0003.xml#1:10-1:11 :| []) + diff --git a/test/Golden/XML/0004.xml b/test/Golden/XML/0004.xml new file mode 100644 index 0000000..6e14fa5 --- /dev/null +++ b/test/Golden/XML/0004.xml @@ -0,0 +1,479 @@ + + + + + + + Julien Moutinho + julm@autogeree.net + + + + Séverine Popek + severine.popek@autistici.org + + + Adrien Nader + adrien@notk.org + + + Rémi N’Guyen Van + reminv@millevaches.net + + + Quentin Paternoster + echarpe@riseup.net + + + + + + + + + + + + + Quiconque + + + + Commonsoft + Association loi 1901 + Créer si besoin et prendre soin de logiciels et de leurs communautés + France, Creuse + + + contact@commonsoft.org + commonsoft.org + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + La Bascule + Association loi 1901 + + + + ctrl-a.fr + asso@ctrl-a.fr + + Association loi 1901 + + + + + + + + + Association loi 1901 + + + + ctrl-a.fr + asso@ctrl-a.fr + + + + + Association loi 1901 + + Cette association a pour objet de promouvoir l'utilisation et le développement du réseau Internet, + c'est à dire le réseau public, routé par le protocole IP (Internet Protocol), constitué des systèmes autonomes + reconnus par l'IANA (Internet Assigned Numbers Authority) ; de favoriser les utilisations de ce réseau à des + fins scientifiques, sociales, de recherche, d'éducation, de culture et artistiques sans volonté commerciale, de + favoriser la compréhension du réseau Internet et de ses enjeux par le public et enfin, de défendre la + neutralité de ce réseau. + + + Tetaneutral.net c/o Sylvain REVAULT + 7 Impasse René Char + Logement 39 + 31600 Lherm + + + + tetaneutral.net + + + + + Association loi 1901 + + + + framasoft.org + contact@framasoft.org + + + + + Association loi 1901 + + + + ilico.org + contact@ilico.org + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/Golden/XML/0004.xml.ast b/test/Golden/XML/0004.xml.ast new file mode 100644 index 0000000..2c43631 --- /dev/null +++ b/test/Golden/XML/0004.xml.ast @@ -0,0 +1,3434 @@ +(NodePI xml "") @(test/Golden/XML/0004.xml#1:1-1:39 :| []) +| ++- (NodeAttr version) @(test/Golden/XML/0004.xml#1:6-1:20 :| []) +| | +| `- (NodeText "1.0") @(test/Golden/XML/0004.xml#1:16-1:19 :| []) +| +`- (NodeAttr encoding) @(test/Golden/XML/0004.xml#1:20-1:37 :| []) + | + `- (NodeText "UTF-8") @(test/Golden/XML/0004.xml#1:31-1:36 :| []) + +(NodePI xml-model "href=\".lib/rnc/commoning.rnc\" type=\"application/relax-ng-compact-syntax\"") @(test/Golden/XML/0004.xml#2:1-2:87 :| []) + +(NodePI xml-model "href=\"http://commonsoft.org/xml/2018/commoning.rnc\" type=\"application/relax-ng-compact-syntax\"") @(test/Golden/XML/0004.xml#3:1-3:109 :| []) + +(NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}commoning) @(test/Golden/XML/0004.xml#4:1-479:13 :| []) +| ++- (NodeAttr xmlns) @(test/Golden/XML/0004.xml#5:2-5:54 :| []) +| | +| `- (NodeText "http://commonsoft.org/xml/2018/commoning.rnc") @(test/Golden/XML/0004.xml#5:9-5:53 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}j) @(test/Golden/XML/0004.xml#6:2-6:55 :| []) +| | +| `- (NodeText "http://commonsoft.org/xml/2018/judgment.rnc") @(test/Golden/XML/0004.xml#6:11-6:54 :| []) +| ++- (NodeText "\n\t") @(test/Golden/XML/0004.xml#6:56-7:2 :| []) +| ++- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}persons) @(test/Golden/XML/0004.xml#7:2-29:13 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#7:11-8:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}person) @(test/Golden/XML/0004.xml#8:3-12:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#8:11-8:20 :| []) +| | | | +| | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#8:15-8:19 :| []) +| | | +| | +- (NodeAttr {http://commonsoft.org/xml/2018/judgment.rnc}judge) @(test/Golden/XML/0004.xml#8:21-8:35 :| []) +| | | | +| | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#8:30-8:34 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#8:36-9:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#9:4-9:45 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#9:11-9:21 :| []) +| | | | | +| | | | `- (NodeText "Nom") @(test/Golden/XML/0004.xml#9:17-9:20 :| []) +| | | | +| | | `- (NodeText "Julien Moutinho") @(test/Golden/XML/0004.xml#9:22-9:37 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#9:45-10:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#10:4-10:48 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#10:11-10:21 :| []) +| | | | | +| | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#10:17-10:20 :| []) +| | | | +| | | `- (NodeText "julm@autogeree.net") @(test/Golden/XML/0004.xml#10:22-10:40 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#10:48-11:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#11:4-11:54 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#11:11-11:21 :| []) +| | | | | +| | | | `- (NodeText "\194ge") @(test/Golden/XML/0004.xml#11:17-11:20 :| []) +| | | | +| | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#11:22-11:34 :| []) +| | | | | +| | | | `- (NodeText "\194ge") @(test/Golden/XML/0004.xml#11:30-11:33 :| []) +| | | | +| | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#11:35-11:52 :| []) +| | | | +| | | `- (NodeText "Majeur\183re") @(test/Golden/XML/0004.xml#11:42-11:51 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#11:54-12:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#12:13-13:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}person) @(test/Golden/XML/0004.xml#13:3-16:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#13:11-13:20 :| []) +| | | | +| | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#13:15-13:19 :| []) +| | | +| | +- (NodeAttr {http://commonsoft.org/xml/2018/judgment.rnc}judge) @(test/Golden/XML/0004.xml#13:21-13:35 :| []) +| | | | +| | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#13:30-13:34 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#13:36-14:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#14:4-14:44 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#14:11-14:21 :| []) +| | | | | +| | | | `- (NodeText "Nom") @(test/Golden/XML/0004.xml#14:17-14:20 :| []) +| | | | +| | | `- (NodeText "S\233verine Popek") @(test/Golden/XML/0004.xml#14:22-14:36 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#14:44-15:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#15:4-15:58 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#15:11-15:21 :| []) +| | | | | +| | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#15:17-15:20 :| []) +| | | | +| | | `- (NodeText "severine.popek@autistici.org") @(test/Golden/XML/0004.xml#15:22-15:50 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#15:58-16:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#16:13-17:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}person) @(test/Golden/XML/0004.xml#17:3-20:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#17:11-17:22 :| []) +| | | | +| | | `- (NodeText "adrien") @(test/Golden/XML/0004.xml#17:15-17:21 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#17:23-18:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#18:4-18:42 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#18:11-18:21 :| []) +| | | | | +| | | | `- (NodeText "Nom") @(test/Golden/XML/0004.xml#18:17-18:20 :| []) +| | | | +| | | `- (NodeText "Adrien Nader") @(test/Golden/XML/0004.xml#18:22-18:34 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#18:42-19:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#19:4-19:45 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#19:11-19:21 :| []) +| | | | | +| | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#19:17-19:20 :| []) +| | | | +| | | `- (NodeText "adrien@notk.org") @(test/Golden/XML/0004.xml#19:22-19:37 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#19:45-20:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#20:13-21:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}person) @(test/Golden/XML/0004.xml#21:3-24:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#21:11-21:22 :| []) +| | | | +| | | `- (NodeText "reminv") @(test/Golden/XML/0004.xml#21:15-21:21 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#21:23-22:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#22:4-22:46 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#22:11-22:21 :| []) +| | | | | +| | | | `- (NodeText "Nom") @(test/Golden/XML/0004.xml#22:17-22:20 :| []) +| | | | +| | | `- (NodeText "R\233mi N\8217Guyen Van") @(test/Golden/XML/0004.xml#22:22-22:38 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#22:46-23:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#23:4-23:52 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#23:11-23:21 :| []) +| | | | | +| | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#23:17-23:20 :| []) +| | | | +| | | `- (NodeText "reminv@millevaches.net") @(test/Golden/XML/0004.xml#23:22-23:44 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#23:52-24:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#24:13-25:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}person) @(test/Golden/XML/0004.xml#25:3-28:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#25:11-25:23 :| []) +| | | | +| | | `- (NodeText "quentin") @(test/Golden/XML/0004.xml#25:15-25:22 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#25:24-26:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#26:4-26:49 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#26:11-26:21 :| []) +| | | | | +| | | | `- (NodeText "Nom") @(test/Golden/XML/0004.xml#26:17-26:20 :| []) +| | | | +| | | `- (NodeText "Quentin Paternoster") @(test/Golden/XML/0004.xml#26:22-26:41 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#26:49-27:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#27:4-27:48 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#27:11-27:21 :| []) +| | | | | +| | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#27:17-27:20 :| []) +| | | | +| | | `- (NodeText "echarpe@riseup.net") @(test/Golden/XML/0004.xml#27:22-27:40 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#27:48-28:4 :| []) +| | +| `- (NodeText "\n\t ") @(test/Golden/XML/0004.xml#28:13-29:3 :| []) +| ++- (NodeText "\n\t\n\t") @(test/Golden/XML/0004.xml#29:13-31:2 :| []) +| ++- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}groups) @(test/Golden/XML/0004.xml#31:2-236:12 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#31:10-32:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}judgment) @(test/Golden/XML/0004.xml#32:3-34:17 :| []) +| | | +| | +- (NodeAttr name) @(test/Golden/XML/0004.xml#32:15-32:31 :| []) +| | | | +| | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#32:21-32:30 :| []) +| | | +| | +- (NodeAttr judges) @(test/Golden/XML/0004.xml#32:32-32:50 :| []) +| | | | +| | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#32:40-32:49 :| []) +| | | +| | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#32:51-32:68 :| []) +| | | | +| | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#32:59-32:67 :| []) +| | | +| | +- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#32:69-32:82 :| []) +| | | | +| | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#32:79-32:81 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#32:83-33:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}criterion) @(test/Golden/XML/0004.xml#33:4-33:53 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#33:17-33:33 :| []) +| | | | | +| | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#33:23-33:32 :| []) +| | | | +| | | `- (NodeAttr grades) @(test/Golden/XML/0004.xml#33:34-33:51 :| []) +| | | | +| | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#33:42-33:50 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#33:53-34:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#34:17-35:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#35:3-41:12 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#35:10-35:21 :| []) +| | | | +| | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#35:14-35:20 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#35:22-36:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinions) @(test/Golden/XML/0004.xml#36:4-39:18 :| []) +| | | | +| | | +- (NodeAttr judgment) @(test/Golden/XML/0004.xml#36:16-36:36 :| []) +| | | | | +| | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#36:26-36:35 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#36:37-37:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#37:5-37:41 :| []) +| | | | | +| | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#37:16-37:28 :| []) +| | | | | | +| | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#37:23-37:27 :| []) +| | | | | +| | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#37:29-37:39 :| []) +| | | | | +| | | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#37:36-37:38 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#37:41-38:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#38:5-38:41 :| []) +| | | | | +| | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#38:16-38:28 :| []) +| | | | | | +| | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#38:23-38:27 :| []) +| | | | | +| | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#38:29-38:39 :| []) +| | | | | +| | | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#38:36-38:38 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#38:41-39:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#39:18-40:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#40:4-40:47 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#40:11-40:29 :| []) +| | | | | +| | | | `- (NodeText "Description") @(test/Golden/XML/0004.xml#40:17-40:28 :| []) +| | | | +| | | `- (NodeText "Quiconque") @(test/Golden/XML/0004.xml#40:30-40:39 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#40:47-41:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#41:12-42:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#42:3-151:12 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#42:10-42:25 :| []) +| | | | +| | | `- (NodeText "Commonsoft") @(test/Golden/XML/0004.xml#42:14-42:24 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#42:26-43:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#43:4-48:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#43:11-43:30 :| []) +| | | | | +| | | | `- (NodeText "Organisation") @(test/Golden/XML/0004.xml#43:17-43:29 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#43:31-44:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#44:5-44:41 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#44:12-44:22 :| []) +| | | | | | +| | | | | `- (NodeText "Nom") @(test/Golden/XML/0004.xml#44:18-44:21 :| []) +| | | | | +| | | | `- (NodeText "Commonsoft") @(test/Golden/XML/0004.xml#44:23-44:33 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#44:41-45:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#45:5-45:70 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#45:12-45:41 :| []) +| | | | | | +| | | | | `- (NodeText "Personnalit\233 juridique") @(test/Golden/XML/0004.xml#45:18-45:40 :| []) +| | | | | +| | | | `- (NodeText "Association loi 1901") @(test/Golden/XML/0004.xml#45:42-45:62 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#45:70-46:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#46:5-46:108 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#46:12-46:31 :| []) +| | | | | | +| | | | | `- (NodeText "Objet social") @(test/Golden/XML/0004.xml#46:18-46:30 :| []) +| | | | | +| | | | `- (NodeText "Cr\233er si besoin et prendre soin de logiciels et de leurs communaut\233s") @(test/Golden/XML/0004.xml#46:32-46:100 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#46:108-47:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#47:5-47:54 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#47:12-47:31 :| []) +| | | | | | +| | | | | `- (NodeText "Si\232ge social") @(test/Golden/XML/0004.xml#47:18-47:30 :| []) +| | | | | +| | | | `- (NodeText "France, Creuse") @(test/Golden/XML/0004.xml#47:32-47:46 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#47:54-48:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#48:13-49:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#49:4-52:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#49:11-49:25 :| []) +| | | | | +| | | | `- (NodeText "Contact") @(test/Golden/XML/0004.xml#49:17-49:24 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#49:26-50:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#50:5-50:53 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#50:12-50:22 :| []) +| | | | | | +| | | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#50:18-50:21 :| []) +| | | | | +| | | | `- (NodeText "contact@commonsoft.org") @(test/Golden/XML/0004.xml#50:23-50:45 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#50:53-51:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#51:5-51:45 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#51:12-51:22 :| []) +| | | | | | +| | | | | `- (NodeText "Web") @(test/Golden/XML/0004.xml#51:18-51:21 :| []) +| | | | | +| | | | `- (NodeText "commonsoft.org") @(test/Golden/XML/0004.xml#51:23-51:37 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#51:45-52:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#52:13-53:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#53:4-150:13 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#53:11-53:25 :| []) +| | | | | +| | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#53:15-53:24 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#53:26-53:51 :| []) +| | | | | +| | | | `- (NodeText "Assembl\233e G\233n\233rale") @(test/Golden/XML/0004.xml#53:32-53:50 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#53:52-54:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinions) @(test/Golden/XML/0004.xml#54:5-57:19 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#54:17-54:33 :| []) +| | | | | | +| | | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#54:23-54:32 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#54:34-55:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#55:6-55:41 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#55:17-55:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#55:23-55:27 :| []) +| | | | | | +| | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#55:29-55:39 :| []) +| | | | | | +| | | | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#55:36-55:38 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#55:41-56:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#56:6-56:41 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#56:17-56:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#56:23-56:27 :| []) +| | | | | | +| | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#56:29-56:39 :| []) +| | | | | | +| | | | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#56:36-56:38 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#56:41-57:6 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#57:19-58:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}members) @(test/Golden/XML/0004.xml#58:5-79:16 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#58:14-59:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#59:6-66:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#59:14-59:35 :| []) +| | | | | | | +| | | | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#59:25-59:34 :| []) +| | | | | | +| | | | | +- (NodeAttr toward) @(test/Golden/XML/0004.xml#59:36-59:54 :| []) +| | | | | | | +| | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#59:44-59:53 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#59:55-60:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#60:7-65:15 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#60:13-60:30 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#60:21-60:29 :| []) +| | | | | | | +| | | | | | +- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#60:31-60:44 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#60:41-60:43 :| []) +| | | | | | | +| | | | | | +- (NodeAttr gradeDefault) @(test/Golden/XML/0004.xml#60:45-60:62 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "PC") @(test/Golden/XML/0004.xml#60:59-60:61 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#60:63-61:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinions) @(test/Golden/XML/0004.xml#61:8-64:22 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr judgment) @(test/Golden/XML/0004.xml#61:20-61:40 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#61:30-61:39 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#61:41-62:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#62:9-62:45 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#62:20-62:32 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#62:27-62:31 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#62:33-62:43 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "FP") @(test/Golden/XML/0004.xml#62:40-62:42 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#62:45-63:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#63:9-63:45 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#63:20-63:32 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#63:27-63:31 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#63:33-63:43 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "FP") @(test/Golden/XML/0004.xml#63:40-63:42 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#63:45-64:9 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#64:22-65:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#65:15-66:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#66:16-67:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#67:6-72:16 :| []) +| | | | | | +| | | | | +- (NodeAttr person) @(test/Golden/XML/0004.xml#67:14-67:27 :| []) +| | | | | | | +| | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#67:22-67:26 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#67:28-68:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinions) @(test/Golden/XML/0004.xml#68:7-71:21 :| []) +| | | | | | | +| | | | | | +- (NodeAttr judgment) @(test/Golden/XML/0004.xml#68:19-68:39 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#68:29-68:38 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#68:40-69:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#69:8-69:44 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#69:19-69:31 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#69:26-69:30 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#69:32-69:42 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "FP") @(test/Golden/XML/0004.xml#69:39-69:41 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#69:44-70:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#70:8-70:44 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#70:19-70:31 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#70:26-70:30 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#70:32-70:42 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "FP") @(test/Golden/XML/0004.xml#70:39-70:41 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#70:44-71:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#71:21-72:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#72:16-73:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#73:6-78:16 :| []) +| | | | | | +| | | | | +- (NodeAttr person) @(test/Golden/XML/0004.xml#73:14-73:27 :| []) +| | | | | | | +| | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#73:22-73:26 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#73:28-74:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinions) @(test/Golden/XML/0004.xml#74:7-77:21 :| []) +| | | | | | | +| | | | | | +- (NodeAttr judgment) @(test/Golden/XML/0004.xml#74:19-74:39 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#74:29-74:38 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#74:40-75:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#75:8-75:62 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#75:19-75:31 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#75:26-75:30 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#75:32-75:49 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#75:40-75:48 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#75:50-75:60 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "FP") @(test/Golden/XML/0004.xml#75:57-75:59 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#75:62-76:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#76:8-76:62 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#76:19-76:31 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#76:26-76:30 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#76:32-76:49 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#76:40-76:48 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#76:50-76:60 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "FP") @(test/Golden/XML/0004.xml#76:57-76:59 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#76:62-77:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#77:21-78:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#78:16-79:6 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#79:16-80:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#80:5-103:14 :| []) +| | | | | +| | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#80:12-80:24 :| []) +| | | | | | +| | | | | `- (NodeText "Membres") @(test/Golden/XML/0004.xml#80:16-80:23 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#80:25-81:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#81:6-90:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#81:13-81:24 :| []) +| | | | | | | +| | | | | | `- (NodeText "Source") @(test/Golden/XML/0004.xml#81:17-81:23 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#81:25-82:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#82:7-83:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#82:14-82:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Fournisseurs") @(test/Golden/XML/0004.xml#82:18-82:30 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#82:32-83:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#83:16-84:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#84:7-87:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#84:14-84:27 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Soutiens") @(test/Golden/XML/0004.xml#84:18-84:26 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#84:28-85:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#85:8-86:17 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#85:15-85:27 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "Apports") @(test/Golden/XML/0004.xml#85:19-85:26 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#85:28-86:9 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#86:17-87:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#87:16-88:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#88:7-89:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#88:14-88:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\201cosyst\232me") @(test/Golden/XML/0004.xml#88:18-88:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#88:30-89:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#89:16-90:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#90:15-91:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#91:6-96:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#91:13-91:27 :| []) +| | | | | | | +| | | | | | `- (NodeText "Op\233ration") @(test/Golden/XML/0004.xml#91:17-91:26 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#91:28-92:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#92:7-93:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#92:14-92:28 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "B\233n\233volat") @(test/Golden/XML/0004.xml#92:18-92:27 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#92:29-93:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#93:16-94:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#94:7-95:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#94:14-94:27 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Salariat") @(test/Golden/XML/0004.xml#94:18-94:26 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#94:28-95:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#95:16-96:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#96:15-97:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#97:6-102:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#97:13-97:29 :| []) +| | | | | | | +| | | | | | `- (NodeText "Destination") @(test/Golden/XML/0004.xml#97:17-97:28 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#97:30-98:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#98:7-99:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#98:14-98:26 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Usag\232le") @(test/Golden/XML/0004.xml#98:18-98:25 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#98:27-99:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#99:16-100:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#100:7-101:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#100:14-100:28 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Client\232le") @(test/Golden/XML/0004.xml#100:18-100:27 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#100:29-101:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#101:16-102:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#102:15-103:6 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#103:14-104:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#104:5-149:14 :| []) +| | | | | +| | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#104:12-104:25 :| []) +| | | | | | +| | | | | `- (NodeText "Conseils") @(test/Golden/XML/0004.xml#104:16-104:24 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#104:26-105:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#105:6-115:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#105:13-105:32 :| []) +| | | | | | | +| | | | | | `- (NodeText "Administration") @(test/Golden/XML/0004.xml#105:17-105:31 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#105:33-105:64 :| []) +| | | | | | | +| | | | | | `- (NodeText "Conseil d\8217Administration") @(test/Golden/XML/0004.xml#105:39-105:63 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#105:65-106:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}members) @(test/Golden/XML/0004.xml#106:7-114:18 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#106:16-107:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#107:8-111:18 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#107:16-107:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#107:27-107:36 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#107:38-107:52 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#107:42-107:51 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#107:53-108:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#108:9-108:48 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#108:15-108:32 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#108:23-108:31 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#108:33-108:46 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#108:43-108:45 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#108:48-109:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#109:9-109:49 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr field) @(test/Golden/XML/0004.xml#109:15-109:26 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "\194ge") @(test/Golden/XML/0004.xml#109:22-109:25 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#109:27-109:47 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "Majeur\183re") @(test/Golden/XML/0004.xml#109:37-109:46 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#109:49-110:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#110:9-110:44 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr field) @(test/Golden/XML/0004.xml#110:15-110:29 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Taille") @(test/Golden/XML/0004.xml#110:22-110:28 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#110:30-110:42 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "2") @(test/Golden/XML/0004.xml#110:40-110:41 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#110:44-111:9 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#111:18-112:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#112:8-112:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#112:16-112:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#112:24-112:28 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#112:31-113:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#113:8-113:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#113:16-113:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#113:24-113:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#113:31-114:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#114:18-115:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#115:15-116:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#116:6-119:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#116:13-116:29 :| []) +| | | | | | | +| | | | | | `- (NodeText "Orientation") @(test/Golden/XML/0004.xml#116:17-116:28 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#116:30-116:58 :| []) +| | | | | | | +| | | | | | `- (NodeText "Conseil d\8217Orientation") @(test/Golden/XML/0004.xml#116:36-116:57 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#116:59-117:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#117:7-117:30 :| []) +| | | | | | | +| | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#117:15-117:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#117:23-117:27 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#117:30-118:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#118:7-118:30 :| []) +| | | | | | | +| | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#118:15-118:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#118:23-118:27 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#118:30-119:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#119:15-120:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#120:6-121:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#120:13-120:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "Mod\233ration") @(test/Golden/XML/0004.xml#120:17-120:27 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#120:29-120:57 :| []) +| | | | | | | +| | | | | | `- (NodeText "Conseil de Mod\233ration") @(test/Golden/XML/0004.xml#120:35-120:56 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#120:58-121:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#121:15-122:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#122:6-126:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#122:13-122:26 :| []) +| | | | | | | +| | | | | | `- (NodeText "MathInfo") @(test/Golden/XML/0004.xml#122:17-122:25 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#122:27-122:54 :| []) +| | | | | | | +| | | | | | `- (NodeText "Conseil de Math-Info") @(test/Golden/XML/0004.xml#122:33-122:53 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#122:55-123:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#123:7-125:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#123:14-123:26 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Haskell") @(test/Golden/XML/0004.xml#123:18-123:25 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#123:27-123:51 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Conseil d\8217Haskell") @(test/Golden/XML/0004.xml#123:33-123:50 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#123:52-124:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#124:8-124:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#124:16-124:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#124:24-124:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#124:31-125:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#125:16-126:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#126:15-127:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#127:6-134:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#127:13-127:27 :| []) +| | | | | | | +| | | | | | `- (NodeText "InfraInfo") @(test/Golden/XML/0004.xml#127:17-127:26 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#127:28-127:55 :| []) +| | | | | | | +| | | | | | `- (NodeText "Conseil d\8217Infra-Info") @(test/Golden/XML/0004.xml#127:34-127:54 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#127:56-128:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#128:7-130:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#128:14-128:22 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Nix") @(test/Golden/XML/0004.xml#128:18-128:21 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#128:23-128:44 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Conseil de Nix") @(test/Golden/XML/0004.xml#128:29-128:43 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#128:45-129:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#129:8-129:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#129:16-129:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#129:24-129:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#129:31-130:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#130:16-131:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#131:7-133:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#131:14-131:25 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Debian") @(test/Golden/XML/0004.xml#131:18-131:24 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#131:26-131:50 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Conseil de Debian") @(test/Golden/XML/0004.xml#131:32-131:49 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#131:51-132:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#132:8-132:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#132:16-132:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#132:24-132:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#132:31-133:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#133:16-134:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#134:15-135:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#135:6-140:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#135:13-135:26 :| []) +| | | | | | | +| | | | | | `- (NodeText "Finances") @(test/Golden/XML/0004.xml#135:17-135:25 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#135:27-135:54 :| []) +| | | | | | | +| | | | | | `- (NodeText "Conseil des Finances") @(test/Golden/XML/0004.xml#135:33-135:53 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#135:55-136:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#136:7-136:30 :| []) +| | | | | | | +| | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#136:15-136:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#136:23-136:27 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#136:30-137:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#137:7-139:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#137:14-137:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Comptables") @(test/Golden/XML/0004.xml#137:18-137:28 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#137:30-137:60 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Conseil de Comptabilit\233") @(test/Golden/XML/0004.xml#137:36-137:59 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#137:61-138:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#138:8-138:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#138:16-138:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#138:24-138:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#138:31-139:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#139:16-140:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#140:15-141:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#141:6-148:15 :| []) +| | | | | | +| | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#141:13-141:30 :| []) +| | | | | | | +| | | | | | `- (NodeText "Linguistique") @(test/Golden/XML/0004.xml#141:17-141:29 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#141:31-141:61 :| []) +| | | | | | | +| | | | | | `- (NodeText "Conseil de Linguistique") @(test/Golden/XML/0004.xml#141:37-141:60 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#141:62-142:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#142:7-144:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#142:14-142:27 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Fran\231ais") @(test/Golden/XML/0004.xml#142:18-142:26 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#142:28-142:54 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Conseil de Fran\231ais") @(test/Golden/XML/0004.xml#142:34-142:53 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#142:55-143:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#143:8-143:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#143:16-143:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#143:24-143:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#143:31-144:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#144:16-145:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#145:7-147:16 :| []) +| | | | | | | +| | | | | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#145:14-145:26 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Anglais") @(test/Golden/XML/0004.xml#145:18-145:25 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#145:27-145:51 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Conseil d\8217Anglais") @(test/Golden/XML/0004.xml#145:33-145:50 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#145:52-146:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#146:8-146:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#146:16-146:29 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#146:24-146:28 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#146:31-147:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#147:16-148:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#148:15-149:6 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#149:14-150:5 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#150:13-151:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#151:12-152:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#152:3-174:12 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#152:10-152:24 :| []) +| | | | +| | | `- (NodeText "LaBascule") @(test/Golden/XML/0004.xml#152:14-152:23 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#152:25-153:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#153:4-160:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#153:11-153:30 :| []) +| | | | | +| | | | `- (NodeText "Organisation") @(test/Golden/XML/0004.xml#153:17-153:29 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#153:31-154:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#154:5-154:41 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#154:12-154:22 :| []) +| | | | | | +| | | | | `- (NodeText "Nom") @(test/Golden/XML/0004.xml#154:18-154:21 :| []) +| | | | | +| | | | `- (NodeText "La Bascule") @(test/Golden/XML/0004.xml#154:23-154:33 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#154:41-155:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#155:5-155:70 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#155:12-155:41 :| []) +| | | | | | +| | | | | `- (NodeText "Personnalit\233 juridique") @(test/Golden/XML/0004.xml#155:18-155:40 :| []) +| | | | | +| | | | `- (NodeText "Association loi 1901") @(test/Golden/XML/0004.xml#155:42-155:62 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#155:70-156:5 :| []) +| | | | +| | | +- (NodeComment " TODO:\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t") @(test/Golden/XML/0004.xml#156:5-159:8 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#159:8-160:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#160:13-161:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#161:4-164:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#161:11-161:25 :| []) +| | | | | +| | | | `- (NodeText "Contact") @(test/Golden/XML/0004.xml#161:17-161:24 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#161:26-162:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#162:5-162:40 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#162:12-162:22 :| []) +| | | | | | +| | | | | `- (NodeText "Web") @(test/Golden/XML/0004.xml#162:18-162:21 :| []) +| | | | | +| | | | `- (NodeText "ctrl-a.fr") @(test/Golden/XML/0004.xml#162:23-162:32 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#162:40-163:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#163:5-163:45 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#163:12-163:22 :| []) +| | | | | | +| | | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#163:18-163:21 :| []) +| | | | | +| | | | `- (NodeText "asso@ctrl-a.fr") @(test/Golden/XML/0004.xml#163:23-163:37 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#163:45-164:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#164:13-165:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#165:4-165:69 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#165:11-165:40 :| []) +| | | | | +| | | | `- (NodeText "Personnalit\233 juridique") @(test/Golden/XML/0004.xml#165:17-165:39 :| []) +| | | | +| | | `- (NodeText "Association loi 1901") @(test/Golden/XML/0004.xml#165:41-165:61 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#165:69-166:4 :| []) +| | | +| | +- (NodeComment " TODO:\n\t\t\t\n\t\t\t\n\t\t\t") @(test/Golden/XML/0004.xml#166:4-169:7 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#169:7-170:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#170:4-173:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#170:11-170:25 :| []) +| | | | | +| | | | `- (NodeText "Membres") @(test/Golden/XML/0004.xml#170:17-170:24 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#170:26-171:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#171:5-171:28 :| []) +| | | | | +| | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#171:13-171:26 :| []) +| | | | | +| | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#171:21-171:25 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#171:28-172:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}member) @(test/Golden/XML/0004.xml#172:5-172:28 :| []) +| | | | | +| | | | `- (NodeAttr person) @(test/Golden/XML/0004.xml#172:13-172:26 :| []) +| | | | | +| | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#172:21-172:25 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#172:28-173:5 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#173:13-174:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#174:12-175:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#175:3-187:12 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#175:10-175:20 :| []) +| | | | +| | | `- (NodeText "CtrlA") @(test/Golden/XML/0004.xml#175:14-175:19 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#175:21-176:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#176:4-182:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#176:11-176:30 :| []) +| | | | | +| | | | `- (NodeText "Organisation") @(test/Golden/XML/0004.xml#176:17-176:29 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#176:31-177:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#177:5-177:70 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#177:12-177:41 :| []) +| | | | | | +| | | | | `- (NodeText "Personnalit\233 juridique") @(test/Golden/XML/0004.xml#177:18-177:40 :| []) +| | | | | +| | | | `- (NodeText "Association loi 1901") @(test/Golden/XML/0004.xml#177:42-177:62 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#177:70-178:5 :| []) +| | | | +| | | +- (NodeComment " TODO:\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t") @(test/Golden/XML/0004.xml#178:5-181:8 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#181:8-182:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#182:13-183:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#183:4-186:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#183:11-183:25 :| []) +| | | | | +| | | | `- (NodeText "Contact") @(test/Golden/XML/0004.xml#183:17-183:24 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#183:26-184:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#184:5-184:40 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#184:12-184:22 :| []) +| | | | | | +| | | | | `- (NodeText "Web") @(test/Golden/XML/0004.xml#184:18-184:21 :| []) +| | | | | +| | | | `- (NodeText "ctrl-a.fr") @(test/Golden/XML/0004.xml#184:23-184:32 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#184:40-185:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#185:5-185:45 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#185:12-185:22 :| []) +| | | | | | +| | | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#185:18-185:21 :| []) +| | | | | +| | | | `- (NodeText "asso@ctrl-a.fr") @(test/Golden/XML/0004.xml#185:23-185:37 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#185:45-186:5 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#186:13-187:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#187:12-188:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#188:3-209:12 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#188:10-188:26 :| []) +| | | | +| | | `- (NodeText "Tetaneutral") @(test/Golden/XML/0004.xml#188:14-188:25 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#188:27-189:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#189:4-205:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#189:11-189:30 :| []) +| | | | | +| | | | `- (NodeText "Organisation") @(test/Golden/XML/0004.xml#189:17-189:29 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#189:31-190:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#190:5-190:70 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#190:12-190:41 :| []) +| | | | | | +| | | | | `- (NodeText "Personnalit\233 juridique") @(test/Golden/XML/0004.xml#190:18-190:40 :| []) +| | | | | +| | | | `- (NodeText "Association loi 1901") @(test/Golden/XML/0004.xml#190:42-190:62 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#190:70-191:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#191:5-198:14 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#191:12-191:31 :| []) +| | | | | | +| | | | | `- (NodeText "Objet social") @(test/Golden/XML/0004.xml#191:18-191:30 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t\tCette association a pour objet de promouvoir l'utilisation et le d\233veloppement du r\233seau Internet,\n\t\t\t\t\tc'est \224 dire le r\233seau public, rout\233 par le protocole IP (Internet Protocol), constitu\233 des syst\232mes autonomes\n\t\t\t\t\treconnus par l'IANA (Internet Assigned Numbers Authority) ; de favoriser les utilisations de ce r\233seau \224 des\n\t\t\t\t\tfins scientifiques, sociales, de recherche, d'\233ducation, de culture et artistiques sans volont\233 commerciale, de\n\t\t\t\t\tfavoriser la compr\233hension du r\233seau Internet et de ses enjeux par le public et enfin, de d\233fendre la\n\t\t\t\t\tneutralit\233 de ce r\233seau.\n\t\t\t\t ") @(test/Golden/XML/0004.xml#191:32-198:6 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#198:14-199:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#199:5-204:14 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#199:12-199:31 :| []) +| | | | | | +| | | | | `- (NodeText "Si\232ge social") @(test/Golden/XML/0004.xml#199:18-199:30 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t\tTetaneutral.net c/o Sylvain REVAULT\n\t\t\t\t\t7 Impasse Ren\233 Char\n\t\t\t\t\tLogement 39\n\t\t\t\t\t31600 Lherm\n\t\t\t\t ") @(test/Golden/XML/0004.xml#199:32-204:6 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#204:14-205:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#205:13-206:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#206:4-208:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#206:11-206:25 :| []) +| | | | | +| | | | `- (NodeText "Contact") @(test/Golden/XML/0004.xml#206:17-206:24 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#206:26-207:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#207:5-207:46 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#207:12-207:22 :| []) +| | | | | | +| | | | | `- (NodeText "Web") @(test/Golden/XML/0004.xml#207:18-207:21 :| []) +| | | | | +| | | | `- (NodeText "tetaneutral.net") @(test/Golden/XML/0004.xml#207:23-207:38 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#207:46-208:5 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#208:13-209:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#209:12-210:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#210:3-222:12 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#210:10-210:24 :| []) +| | | | +| | | `- (NodeText "Framasoft") @(test/Golden/XML/0004.xml#210:14-210:23 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#210:25-211:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#211:4-217:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#211:11-211:30 :| []) +| | | | | +| | | | `- (NodeText "Organisation") @(test/Golden/XML/0004.xml#211:17-211:29 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#211:31-212:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#212:5-212:70 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#212:12-212:41 :| []) +| | | | | | +| | | | | `- (NodeText "Personnalit\233 juridique") @(test/Golden/XML/0004.xml#212:18-212:40 :| []) +| | | | | +| | | | `- (NodeText "Association loi 1901") @(test/Golden/XML/0004.xml#212:42-212:62 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#212:70-213:5 :| []) +| | | | +| | | +- (NodeComment " TODO:\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t") @(test/Golden/XML/0004.xml#213:5-216:8 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#216:8-217:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#217:13-218:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#218:4-221:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#218:11-218:25 :| []) +| | | | | +| | | | `- (NodeText "Contact") @(test/Golden/XML/0004.xml#218:17-218:24 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#218:26-219:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#219:5-219:44 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#219:12-219:22 :| []) +| | | | | | +| | | | | `- (NodeText "Web") @(test/Golden/XML/0004.xml#219:18-219:21 :| []) +| | | | | +| | | | `- (NodeText "framasoft.org") @(test/Golden/XML/0004.xml#219:23-219:36 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#219:44-220:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#220:5-220:52 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#220:12-220:22 :| []) +| | | | | | +| | | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#220:18-220:21 :| []) +| | | | | +| | | | `- (NodeText "contact@framasoft.org") @(test/Golden/XML/0004.xml#220:23-220:44 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#220:52-221:5 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#221:13-222:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#222:12-223:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}group) @(test/Golden/XML/0004.xml#223:3-235:12 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#223:10-223:20 :| []) +| | | | +| | | `- (NodeText "Ilico") @(test/Golden/XML/0004.xml#223:14-223:19 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#223:21-224:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#224:4-230:13 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#224:11-224:30 :| []) +| | | | | +| | | | `- (NodeText "Organisation") @(test/Golden/XML/0004.xml#224:17-224:29 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#224:31-225:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#225:5-225:70 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#225:12-225:41 :| []) +| | | | | | +| | | | | `- (NodeText "Personnalit\233 juridique") @(test/Golden/XML/0004.xml#225:18-225:40 :| []) +| | | | | +| | | | `- (NodeText "Association loi 1901") @(test/Golden/XML/0004.xml#225:42-225:62 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#225:70-226:5 :| []) +| | | | +| | | +- (NodeComment " TODO:\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t") @(test/Golden/XML/0004.xml#226:5-229:8 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#229:8-230:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#230:13-231:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#231:4-234:12 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#231:11-231:25 :| []) +| | | | | +| | | | `- (NodeText "Contact") @(test/Golden/XML/0004.xml#231:17-231:24 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#231:26-232:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#232:5-232:40 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#232:12-232:22 :| []) +| | | | | | +| | | | | `- (NodeText "Web") @(test/Golden/XML/0004.xml#232:18-232:21 :| []) +| | | | | +| | | | `- (NodeText "ilico.org") @(test/Golden/XML/0004.xml#232:23-232:32 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#232:40-233:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}field) @(test/Golden/XML/0004.xml#233:5-233:48 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#233:12-233:22 :| []) +| | | | | | +| | | | | `- (NodeText "M\232l") @(test/Golden/XML/0004.xml#233:18-233:21 :| []) +| | | | | +| | | | `- (NodeText "contact@ilico.org") @(test/Golden/XML/0004.xml#233:23-233:40 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#233:48-234:4 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#234:12-235:4 :| []) +| | +| `- (NodeText "\n\t ") @(test/Golden/XML/0004.xml#235:12-236:3 :| []) +| ++- (NodeText "\n\t\n\t") @(test/Golden/XML/0004.xml#236:12-238:2 :| []) +| ++- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}opinions) @(test/Golden/XML/0004.xml#238:2-292:14 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#238:12-239:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grades) @(test/Golden/XML/0004.xml#239:3-242:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#239:11-239:19 :| []) +| | | | +| | | `- (NodeText "\194ge") @(test/Golden/XML/0004.xml#239:15-239:18 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#239:20-240:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#240:4-240:56 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#240:11-240:25 :| []) +| | | | | +| | | | `- (NodeText "Mineur\183re") @(test/Golden/XML/0004.xml#240:15-240:24 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#240:26-240:42 :| []) +| | | | | +| | | | `- (NodeText "Mineur\183re") @(test/Golden/XML/0004.xml#240:32-240:41 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#240:43-240:54 :| []) +| | | | +| | | `- (NodeText "red") @(test/Golden/XML/0004.xml#240:50-240:53 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#240:56-241:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#241:4-241:58 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#241:11-241:25 :| []) +| | | | | +| | | | `- (NodeText "Majeur\183re") @(test/Golden/XML/0004.xml#241:15-241:24 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#241:26-241:42 :| []) +| | | | | +| | | | `- (NodeText "Majeur\183re") @(test/Golden/XML/0004.xml#241:32-241:41 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#241:43-241:56 :| []) +| | | | +| | | `- (NodeText "green") @(test/Golden/XML/0004.xml#241:50-241:55 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#241:58-242:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#242:13-243:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grades) @(test/Golden/XML/0004.xml#243:3-251:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#243:11-243:24 :| []) +| | | | +| | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#243:15-243:23 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#243:25-244:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#244:4-244:58 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#244:11-244:18 :| []) +| | | | | +| | | | `- (NodeText "FC") @(test/Golden/XML/0004.xml#244:15-244:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#244:19-244:42 :| []) +| | | | | +| | | | `- (NodeText "Fortement Contre") @(test/Golden/XML/0004.xml#244:25-244:41 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#244:43-244:56 :| []) +| | | | +| | | `- (NodeText "black") @(test/Golden/XML/0004.xml#244:50-244:55 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#244:58-245:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#245:4-245:56 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#245:11-245:17 :| []) +| | | | | +| | | | `- (NodeText "C") @(test/Golden/XML/0004.xml#245:15-245:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#245:19-245:32 :| []) +| | | | | +| | | | `- (NodeText "Contre") @(test/Golden/XML/0004.xml#245:25-245:31 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#245:43-245:54 :| []) +| | | | +| | | `- (NodeText "red") @(test/Golden/XML/0004.xml#245:50-245:53 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#245:56-246:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#246:4-246:59 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#246:11-246:18 :| []) +| | | | | +| | | | `- (NodeText "PC") @(test/Golden/XML/0004.xml#246:15-246:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#246:19-246:39 :| []) +| | | | | +| | | | `- (NodeText "Plut\244t Contre") @(test/Golden/XML/0004.xml#246:25-246:38 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#246:43-246:57 :| []) +| | | | +| | | `- (NodeText "orange") @(test/Golden/XML/0004.xml#246:50-246:56 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#246:59-247:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#247:4-247:57 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#247:11-247:17 :| []) +| | | | | +| | | | `- (NodeText "I") @(test/Golden/XML/0004.xml#247:15-247:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#247:19-247:40 :| []) +| | | | | +| | | | `- (NodeText "Indiff\233rent\183te") @(test/Golden/XML/0004.xml#247:25-247:39 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#247:43-247:55 :| []) +| | | | +| | | `- (NodeText "#888") @(test/Golden/XML/0004.xml#247:50-247:54 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#247:57-248:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#248:4-248:60 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#248:11-248:18 :| []) +| | | | | +| | | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#248:15-248:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#248:19-248:37 :| []) +| | | | | +| | | | `- (NodeText "Plut\244t Pour") @(test/Golden/XML/0004.xml#248:25-248:36 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#248:43-248:58 :| []) +| | | | +| | | `- (NodeText "#FFD700") @(test/Golden/XML/0004.xml#248:50-248:57 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#248:60-249:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#249:4-249:58 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#249:11-249:17 :| []) +| | | | | +| | | | `- (NodeText "P") @(test/Golden/XML/0004.xml#249:15-249:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#249:19-249:30 :| []) +| | | | | +| | | | `- (NodeText "Pour") @(test/Golden/XML/0004.xml#249:25-249:29 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#249:43-249:56 :| []) +| | | | +| | | `- (NodeText "green") @(test/Golden/XML/0004.xml#249:50-249:55 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#249:58-250:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#250:4-250:57 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#250:11-250:18 :| []) +| | | | | +| | | | `- (NodeText "FP") @(test/Golden/XML/0004.xml#250:15-250:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#250:19-250:40 :| []) +| | | | | +| | | | `- (NodeText "Fortement Pour") @(test/Golden/XML/0004.xml#250:25-250:39 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#250:43-250:55 :| []) +| | | | +| | | `- (NodeText "blue") @(test/Golden/XML/0004.xml#250:50-250:54 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#250:57-251:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#251:13-252:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grades) @(test/Golden/XML/0004.xml#252:3-260:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#252:11-252:23 :| []) +| | | | +| | | `- (NodeText "Qualit\233") @(test/Golden/XML/0004.xml#252:15-252:22 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#252:24-253:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#253:4-253:56 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#253:11-253:18 :| []) +| | | | | +| | | | `- (NodeText "TM") @(test/Golden/XML/0004.xml#253:15-253:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#253:19-253:38 :| []) +| | | | | +| | | | `- (NodeText "Tr\232s Mauvais") @(test/Golden/XML/0004.xml#253:25-253:37 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#253:41-253:54 :| []) +| | | | +| | | `- (NodeText "black") @(test/Golden/XML/0004.xml#253:48-253:53 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#253:56-254:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#254:4-254:54 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#254:11-254:17 :| []) +| | | | | +| | | | `- (NodeText "M") @(test/Golden/XML/0004.xml#254:15-254:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#254:19-254:33 :| []) +| | | | | +| | | | `- (NodeText "Mauvais") @(test/Golden/XML/0004.xml#254:25-254:32 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#254:41-254:52 :| []) +| | | | +| | | `- (NodeText "red") @(test/Golden/XML/0004.xml#254:48-254:51 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#254:54-255:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#255:4-255:57 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#255:11-255:18 :| []) +| | | | | +| | | | `- (NodeText "PM") @(test/Golden/XML/0004.xml#255:15-255:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#255:19-255:40 :| []) +| | | | | +| | | | `- (NodeText "Plut\244t Mauvais") @(test/Golden/XML/0004.xml#255:25-255:39 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#255:41-255:55 :| []) +| | | | +| | | `- (NodeText "orange") @(test/Golden/XML/0004.xml#255:48-255:54 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#255:57-256:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#256:4-256:55 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#256:11-256:17 :| []) +| | | | | +| | | | `- (NodeText "m") @(test/Golden/XML/0004.xml#256:15-256:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#256:19-256:31 :| []) +| | | | | +| | | | `- (NodeText "Moyen") @(test/Golden/XML/0004.xml#256:25-256:30 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#256:41-256:53 :| []) +| | | | +| | | `- (NodeText "#888") @(test/Golden/XML/0004.xml#256:48-256:52 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#256:55-257:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#257:4-257:58 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#257:11-257:18 :| []) +| | | | | +| | | | `- (NodeText "PB") @(test/Golden/XML/0004.xml#257:15-257:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#257:19-257:36 :| []) +| | | | | +| | | | `- (NodeText "Plut\244t Bon") @(test/Golden/XML/0004.xml#257:25-257:35 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#257:41-257:56 :| []) +| | | | +| | | `- (NodeText "#FFD700") @(test/Golden/XML/0004.xml#257:48-257:55 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#257:58-258:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#258:4-258:56 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#258:11-258:17 :| []) +| | | | | +| | | | `- (NodeText "B") @(test/Golden/XML/0004.xml#258:15-258:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#258:19-258:29 :| []) +| | | | | +| | | | `- (NodeText "Bon") @(test/Golden/XML/0004.xml#258:25-258:28 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#258:41-258:54 :| []) +| | | | +| | | `- (NodeText "green") @(test/Golden/XML/0004.xml#258:48-258:53 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#258:56-259:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#259:4-259:55 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#259:11-259:18 :| []) +| | | | | +| | | | `- (NodeText "TB") @(test/Golden/XML/0004.xml#259:15-259:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#259:19-259:34 :| []) +| | | | | +| | | | `- (NodeText "Tr\232s Bon") @(test/Golden/XML/0004.xml#259:25-259:33 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#259:41-259:53 :| []) +| | | | +| | | `- (NodeText "blue") @(test/Golden/XML/0004.xml#259:48-259:52 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#259:55-260:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#260:13-261:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grades) @(test/Golden/XML/0004.xml#261:3-269:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#261:11-261:23 :| []) +| | | | +| | | `- (NodeText "Utilit\233") @(test/Golden/XML/0004.xml#261:15-261:22 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#261:24-262:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#262:4-262:71 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#262:11-262:18 :| []) +| | | | | +| | | | `- (NodeText "CI") @(test/Golden/XML/0004.xml#262:15-262:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#262:28-262:55 :| []) +| | | | | +| | | | `- (NodeText "Compl\232tement Inutile") @(test/Golden/XML/0004.xml#262:34-262:54 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#262:56-262:69 :| []) +| | | | +| | | `- (NodeText "black") @(test/Golden/XML/0004.xml#262:63-262:68 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#262:71-263:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#263:4-263:69 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#263:11-263:17 :| []) +| | | | | +| | | | `- (NodeText "I") @(test/Golden/XML/0004.xml#263:15-263:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#263:28-263:42 :| []) +| | | | | +| | | | `- (NodeText "Inutile") @(test/Golden/XML/0004.xml#263:34-263:41 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#263:56-263:67 :| []) +| | | | +| | | `- (NodeText "red") @(test/Golden/XML/0004.xml#263:63-263:66 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#263:69-264:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#264:4-264:72 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#264:11-264:18 :| []) +| | | | | +| | | | `- (NodeText "PI") @(test/Golden/XML/0004.xml#264:15-264:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#264:28-264:49 :| []) +| | | | | +| | | | `- (NodeText "Plut\244t Inutile") @(test/Golden/XML/0004.xml#264:34-264:48 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#264:56-264:70 :| []) +| | | | +| | | `- (NodeText "orange") @(test/Golden/XML/0004.xml#264:63-264:69 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#264:72-265:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#265:4-265:70 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#265:11-265:27 :| []) +| | | | | +| | | | `- (NodeText "Ind\233termin\233") @(test/Golden/XML/0004.xml#265:15-265:26 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#265:28-265:46 :| []) +| | | | | +| | | | `- (NodeText "Ind\233termin\233") @(test/Golden/XML/0004.xml#265:34-265:45 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#265:56-265:68 :| []) +| | | | +| | | `- (NodeText "#888") @(test/Golden/XML/0004.xml#265:63-265:67 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#265:70-266:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#266:4-266:73 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#266:11-266:18 :| []) +| | | | | +| | | | `- (NodeText "PU") @(test/Golden/XML/0004.xml#266:15-266:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#266:28-266:47 :| []) +| | | | | +| | | | `- (NodeText "Plut\244t Utile") @(test/Golden/XML/0004.xml#266:34-266:46 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#266:56-266:71 :| []) +| | | | +| | | `- (NodeText "#FFD700") @(test/Golden/XML/0004.xml#266:63-266:70 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#266:73-267:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#267:4-267:71 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#267:11-267:17 :| []) +| | | | | +| | | | `- (NodeText "U") @(test/Golden/XML/0004.xml#267:15-267:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#267:28-267:40 :| []) +| | | | | +| | | | `- (NodeText "Utile") @(test/Golden/XML/0004.xml#267:34-267:39 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#267:56-267:69 :| []) +| | | | +| | | `- (NodeText "green") @(test/Golden/XML/0004.xml#267:63-267:68 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#267:71-268:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#268:4-268:70 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#268:11-268:18 :| []) +| | | | | +| | | | `- (NodeText "TU") @(test/Golden/XML/0004.xml#268:15-268:17 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#268:28-268:45 :| []) +| | | | | +| | | | `- (NodeText "Tr\232s Utile") @(test/Golden/XML/0004.xml#268:34-268:44 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#268:56-268:68 :| []) +| | | | +| | | `- (NodeText "blue") @(test/Golden/XML/0004.xml#268:63-268:67 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#268:70-269:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#269:13-270:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grades) @(test/Golden/XML/0004.xml#270:3-278:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#270:11-270:30 :| []) +| | | | +| | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#270:15-270:29 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#270:31-271:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#271:4-271:68 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#271:11-271:27 :| []) +| | | | | +| | | | `- (NodeText "NE-PEUT-PAS") @(test/Golden/XML/0004.xml#271:15-271:26 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#271:31-271:49 :| []) +| | | | | +| | | | `- (NodeText "Ne peut pas") @(test/Golden/XML/0004.xml#271:37-271:48 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#271:53-271:66 :| []) +| | | | +| | | `- (NodeText "black") @(test/Golden/XML/0004.xml#271:60-271:65 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#271:68-272:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#272:4-272:66 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#272:11-272:27 :| []) +| | | | | +| | | | `- (NodeText "NE-DOIT-PAS") @(test/Golden/XML/0004.xml#272:15-272:26 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#272:31-272:49 :| []) +| | | | | +| | | | `- (NodeText "Ne doit pas") @(test/Golden/XML/0004.xml#272:37-272:48 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#272:53-272:64 :| []) +| | | | +| | | `- (NodeText "red") @(test/Golden/XML/0004.xml#272:60-272:63 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#272:66-273:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#273:4-273:69 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#273:11-273:30 :| []) +| | | | | +| | | | `- (NodeText "NE-DEVRAIT-PAS") @(test/Golden/XML/0004.xml#273:15-273:29 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#273:31-273:52 :| []) +| | | | | +| | | | `- (NodeText "Ne devrait pas") @(test/Golden/XML/0004.xml#273:37-273:51 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#273:53-273:67 :| []) +| | | | +| | | `- (NodeText "orange") @(test/Golden/XML/0004.xml#273:60-273:66 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#273:69-274:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#274:4-274:67 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#274:11-274:30 :| []) +| | | | | +| | | | `- (NodeText "NON-R\200GLEMENT\201") @(test/Golden/XML/0004.xml#274:15-274:29 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#274:31-274:52 :| []) +| | | | | +| | | | `- (NodeText "Non-r\232glement\233") @(test/Golden/XML/0004.xml#274:37-274:51 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#274:53-274:65 :| []) +| | | | +| | | `- (NodeText "#888") @(test/Golden/XML/0004.xml#274:60-274:64 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#274:67-275:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#275:4-275:70 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#275:11-275:20 :| []) +| | | | | +| | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#275:15-275:19 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#275:31-275:42 :| []) +| | | | | +| | | | `- (NodeText "Peut") @(test/Golden/XML/0004.xml#275:37-275:41 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#275:53-275:68 :| []) +| | | | +| | | `- (NodeText "#FFD700") @(test/Golden/XML/0004.xml#275:60-275:67 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#275:70-276:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#276:4-276:68 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#276:11-276:23 :| []) +| | | | | +| | | | `- (NodeText "DEVRAIT") @(test/Golden/XML/0004.xml#276:15-276:22 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#276:31-276:45 :| []) +| | | | | +| | | | `- (NodeText "Devrait") @(test/Golden/XML/0004.xml#276:37-276:44 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#276:53-276:66 :| []) +| | | | +| | | `- (NodeText "green") @(test/Golden/XML/0004.xml#276:60-276:65 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#276:68-277:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#277:4-277:67 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#277:11-277:20 :| []) +| | | | | +| | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#277:15-277:19 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#277:31-277:42 :| []) +| | | | | +| | | | `- (NodeText "Doit") @(test/Golden/XML/0004.xml#277:37-277:41 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#277:53-277:65 :| []) +| | | | +| | | `- (NodeText "blue") @(test/Golden/XML/0004.xml#277:60-277:64 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#277:67-278:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#278:13-279:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grades) @(test/Golden/XML/0004.xml#279:3-284:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#279:11-279:26 :| []) +| | | | +| | | `- (NodeText "Obligation") @(test/Golden/XML/0004.xml#279:15-279:25 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#279:27-280:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#280:4-280:58 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#280:11-280:22 :| []) +| | | | | +| | | | `- (NodeText "Aucune") @(test/Golden/XML/0004.xml#280:15-280:21 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#280:26-280:39 :| []) +| | | | | +| | | | `- (NodeText "Aucune") @(test/Golden/XML/0004.xml#280:32-280:38 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#280:43-280:56 :| []) +| | | | +| | | `- (NodeText "black") @(test/Golden/XML/0004.xml#280:50-280:55 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#280:58-281:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#281:4-281:56 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#281:11-281:22 :| []) +| | | | | +| | | | `- (NodeText "Morale") @(test/Golden/XML/0004.xml#281:15-281:21 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#281:26-281:39 :| []) +| | | | | +| | | | `- (NodeText "Morale") @(test/Golden/XML/0004.xml#281:32-281:38 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#281:43-281:54 :| []) +| | | | +| | | `- (NodeText "red") @(test/Golden/XML/0004.xml#281:50-281:53 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#281:56-282:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#282:4-282:58 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#282:11-282:22 :| []) +| | | | | +| | | | `- (NodeText "Moyens") @(test/Golden/XML/0004.xml#282:15-282:21 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#282:26-282:39 :| []) +| | | | | +| | | | `- (NodeText "Moyens") @(test/Golden/XML/0004.xml#282:32-282:38 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#282:43-282:56 :| []) +| | | | +| | | `- (NodeText "green") @(test/Golden/XML/0004.xml#282:50-282:55 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#282:58-283:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#283:4-283:57 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#283:11-283:25 :| []) +| | | | | +| | | | `- (NodeText "R\233sultats") @(test/Golden/XML/0004.xml#283:15-283:24 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#283:26-283:42 :| []) +| | | | | +| | | | `- (NodeText "R\233sultats") @(test/Golden/XML/0004.xml#283:32-283:41 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#283:43-283:55 :| []) +| | | | +| | | `- (NodeText "blue") @(test/Golden/XML/0004.xml#283:50-283:54 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#283:57-284:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#284:13-285:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grades) @(test/Golden/XML/0004.xml#285:3-291:13 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#285:11-285:24 :| []) +| | | | +| | | `- (NodeText "Sanction") @(test/Golden/XML/0004.xml#285:15-285:23 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#285:25-286:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#286:4-286:66 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#286:11-286:25 :| []) +| | | | | +| | | | `- (NodeText "Exclusion") @(test/Golden/XML/0004.xml#286:15-286:24 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#286:30-286:46 :| []) +| | | | | +| | | | `- (NodeText "Exclusion") @(test/Golden/XML/0004.xml#286:36-286:45 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#286:51-286:64 :| []) +| | | | +| | | `- (NodeText "black") @(test/Golden/XML/0004.xml#286:58-286:63 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#286:66-287:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#287:4-287:64 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#287:11-287:24 :| []) +| | | | | +| | | | `- (NodeText "Punition") @(test/Golden/XML/0004.xml#287:15-287:23 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#287:30-287:42 :| []) +| | | | | +| | | | `- (NodeText "Bl\226me") @(test/Golden/XML/0004.xml#287:36-287:41 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#287:51-287:62 :| []) +| | | | +| | | `- (NodeText "red") @(test/Golden/XML/0004.xml#287:58-287:61 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#287:64-288:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#288:4-288:65 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#288:11-288:28 :| []) +| | | | | +| | | | `- (NodeText "Ind\233termin\233e") @(test/Golden/XML/0004.xml#288:15-288:27 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#288:30-288:49 :| []) +| | | | | +| | | | `- (NodeText "Ind\233termin\233e") @(test/Golden/XML/0004.xml#288:36-288:48 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#288:51-288:63 :| []) +| | | | +| | | `- (NodeText "#888") @(test/Golden/XML/0004.xml#288:58-288:62 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#288:65-289:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#289:4-289:66 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#289:11-289:25 :| []) +| | | | | +| | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#289:15-289:24 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#289:30-289:46 :| []) +| | | | | +| | | | `- (NodeText "Inclusion") @(test/Golden/XML/0004.xml#289:36-289:45 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#289:51-289:64 :| []) +| | | | +| | | `- (NodeText "green") @(test/Golden/XML/0004.xml#289:58-289:63 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#289:66-290:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}grade) @(test/Golden/XML/0004.xml#290:4-290:65 :| []) +| | | | +| | | +- (NodeAttr id) @(test/Golden/XML/0004.xml#290:11-290:29 :| []) +| | | | | +| | | | `- (NodeText "F\233licitations") @(test/Golden/XML/0004.xml#290:15-290:28 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#290:30-290:50 :| []) +| | | | | +| | | | `- (NodeText "F\233licitations") @(test/Golden/XML/0004.xml#290:36-290:49 :| []) +| | | | +| | | `- (NodeAttr color) @(test/Golden/XML/0004.xml#290:51-290:63 :| []) +| | | | +| | | `- (NodeText "blue") @(test/Golden/XML/0004.xml#290:58-290:62 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#290:65-291:4 :| []) +| | +| `- (NodeText "\n\t ") @(test/Golden/XML/0004.xml#291:13-292:3 :| []) +| ++- (NodeText "\n\t\n\t") @(test/Golden/XML/0004.xml#292:14-294:2 :| []) +| ++- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operations) @(test/Golden/XML/0004.xml#294:2-318:16 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#294:14-295:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#295:3-302:16 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#295:14-295:25 :| []) +| | | | +| | | `- (NodeText "\201crire") @(test/Golden/XML/0004.xml#295:18-295:24 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#295:26-296:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#296:4-296:26 :| []) +| | | | +| | | `- (NodeAttr id) @(test/Golden/XML/0004.xml#296:15-296:24 :| []) +| | | | +| | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#296:19-296:23 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#296:26-297:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#297:4-297:31 :| []) +| | | | +| | | `- (NodeAttr id) @(test/Golden/XML/0004.xml#297:15-297:29 :| []) +| | | | +| | | `- (NodeText "Commenter") @(test/Golden/XML/0004.xml#297:19-297:28 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#297:31-298:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#298:4-298:30 :| []) +| | | | +| | | `- (NodeAttr id) @(test/Golden/XML/0004.xml#298:15-298:28 :| []) +| | | | +| | | `- (NodeText "Proposer") @(test/Golden/XML/0004.xml#298:19-298:27 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#298:30-299:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#299:4-299:29 :| []) +| | | | +| | | `- (NodeAttr id) @(test/Golden/XML/0004.xml#299:15-299:27 :| []) +| | | | +| | | `- (NodeText "Ajouter") @(test/Golden/XML/0004.xml#299:19-299:26 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#299:29-300:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#300:4-300:30 :| []) +| | | | +| | | `- (NodeAttr id) @(test/Golden/XML/0004.xml#300:15-300:28 :| []) +| | | | +| | | `- (NodeText "Modifier") @(test/Golden/XML/0004.xml#300:19-300:27 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#300:30-301:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#301:4-301:31 :| []) +| | | | +| | | `- (NodeAttr id) @(test/Golden/XML/0004.xml#301:15-301:29 :| []) +| | | | +| | | `- (NodeText "Supprimer") @(test/Golden/XML/0004.xml#301:19-301:28 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#301:31-302:4 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#302:16-303:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#303:3-303:26 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#303:14-303:24 :| []) +| | | +| | `- (NodeText "Juger") @(test/Golden/XML/0004.xml#303:18-303:23 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#303:26-304:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#304:3-304:29 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#304:14-304:27 :| []) +| | | +| | `- (NodeText "Ex\233cuter") @(test/Golden/XML/0004.xml#304:18-304:26 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#304:29-305:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#305:3-305:30 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#305:14-305:28 :| []) +| | | +| | `- (NodeText "Respecter") @(test/Golden/XML/0004.xml#305:18-305:27 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#305:30-306:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#306:3-306:30 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#306:14-306:28 :| []) +| | | +| | `- (NodeText "Appliquer") @(test/Golden/XML/0004.xml#306:18-306:27 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#306:30-307:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#307:3-307:29 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#307:14-307:27 :| []) +| | | +| | `- (NodeText "Demander") @(test/Golden/XML/0004.xml#307:18-307:26 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#307:29-308:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#308:3-308:28 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#308:14-308:26 :| []) +| | | +| | `- (NodeText "Mod\233rer") @(test/Golden/XML/0004.xml#308:18-308:25 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#308:28-309:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#309:3-309:29 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#309:14-309:27 :| []) +| | | +| | `- (NodeText "AdminSys") @(test/Golden/XML/0004.xml#309:18-309:26 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#309:29-310:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#310:3-310:26 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#310:14-310:24 :| []) +| | | +| | `- (NodeText "Aider") @(test/Golden/XML/0004.xml#310:18-310:23 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#310:26-311:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#311:3-311:29 :| []) +| | | +| | `- (NodeAttr id) @(test/Golden/XML/0004.xml#311:14-311:27 :| []) +| | | +| | `- (NodeText "Utiliser") @(test/Golden/XML/0004.xml#311:18-311:26 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#311:29-312:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}operation) @(test/Golden/XML/0004.xml#312:3-317:15 :| []) +| | | +| | +- (NodeAttr id) @(test/Golden/XML/0004.xml#312:14-312:26 :| []) +| | | | +| | | `- (NodeText "Support") @(test/Golden/XML/0004.xml#312:18-312:25 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#312:27-313:4 :| []) +| | | +| | +- (NodeComment "\n\t\t\t\n\t\t\t\n\t\t\t") @(test/Golden/XML/0004.xml#313:4-316:7 :| []) +| | | +| | `- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#316:7-317:3 :| []) +| | +| `- (NodeText "\n\t ") @(test/Golden/XML/0004.xml#317:15-318:3 :| []) +| ++- (NodeText "\n\t\n\t") @(test/Golden/XML/0004.xml#318:16-320:2 :| []) +| ++- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}judgment) @(test/Golden/XML/0004.xml#320:2-478:16 :| []) +| | +| +- (NodeAttr judges) @(test/Golden/XML/0004.xml#320:14-320:32 :| []) +| | | +| | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#320:22-320:31 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#320:33-321:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}criterion) @(test/Golden/XML/0004.xml#321:3-321:49 :| []) +| | | +| | +- (NodeAttr name) @(test/Golden/XML/0004.xml#321:14-321:29 :| []) +| | | | +| | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#321:20-321:28 :| []) +| | | +| | `- (NodeAttr grades) @(test/Golden/XML/0004.xml#321:30-321:47 :| []) +| | | +| | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#321:38-321:46 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#321:49-322:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}criterion) @(test/Golden/XML/0004.xml#322:3-322:48 :| []) +| | | +| | +- (NodeAttr name) @(test/Golden/XML/0004.xml#322:14-322:28 :| []) +| | | | +| | | `- (NodeText "Qualit\233") @(test/Golden/XML/0004.xml#322:20-322:27 :| []) +| | | +| | `- (NodeAttr grades) @(test/Golden/XML/0004.xml#322:30-322:46 :| []) +| | | +| | `- (NodeText "Qualit\233") @(test/Golden/XML/0004.xml#322:38-322:45 :| []) +| | +| +- (NodeText "\n\t\t") @(test/Golden/XML/0004.xml#322:48-323:3 :| []) +| | +| +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resources) @(test/Golden/XML/0004.xml#323:3-477:16 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#323:14-324:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#324:4-328:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#324:14-324:36 :| []) +| | | | | +| | | | `- (NodeText "Administratives") @(test/Golden/XML/0004.xml#324:20-324:35 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#324:37-325:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}opinion) @(test/Golden/XML/0004.xml#325:5-327:18 :| []) +| | | | | +| | | | +- (NodeAttr judge) @(test/Golden/XML/0004.xml#325:16-325:28 :| []) +| | | | | | +| | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#325:23-325:27 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#325:29-326:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/judgment.rnc}criterion) @(test/Golden/XML/0004.xml#326:6-326:47 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#326:19-326:34 :| []) +| | | | | | | +| | | | | | `- (NodeText "Adh\233sion") @(test/Golden/XML/0004.xml#326:25-326:33 :| []) +| | | | | | +| | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#326:35-326:45 :| []) +| | | | | | +| | | | | `- (NodeText "PP") @(test/Golden/XML/0004.xml#326:42-326:44 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#326:47-327:6 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#327:18-328:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#328:16-329:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#329:4-330:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#329:14-329:33 :| []) +| | | | | +| | | | `- (NodeText "Mod\233ratrices") @(test/Golden/XML/0004.xml#329:20-329:32 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#329:34-330:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#330:16-331:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#331:4-351:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#331:14-331:34 :| []) +| | | | | +| | | | `- (NodeText "Commonisation") @(test/Golden/XML/0004.xml#331:20-331:33 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#331:35-332:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#332:5-339:17 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#332:15-332:29 :| []) +| | | | | | +| | | | | `- (NodeText "Statuts") @(test/Golden/XML/0004.xml#332:21-332:28 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#332:30-333:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#333:6-335:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#333:14-333:35 :| []) +| | | | | | | +| | | | | | `- (NodeText "Respecter") @(test/Golden/XML/0004.xml#333:25-333:34 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#333:36-333:50 :| []) +| | | | | | | +| | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#333:40-333:49 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#333:51-334:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#334:7-334:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#334:13-334:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#334:21-334:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#334:37-334:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#334:44-334:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#334:51-335:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#335:16-336:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#336:6-338:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#336:14-336:32 :| []) +| | | | | | | +| | | | | | `- (NodeText "\201crire") @(test/Golden/XML/0004.xml#336:25-336:31 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#336:33-336:52 :| []) +| | | | | | | +| | | | | | `- (NodeText "Administration") @(test/Golden/XML/0004.xml#336:37-336:51 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#336:53-337:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#337:7-337:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#337:13-337:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#337:21-337:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#337:37-337:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#337:44-337:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#337:51-338:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#338:16-339:6 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#339:17-340:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#340:5-350:17 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#340:15-340:31 :| []) +| | | | | | +| | | | | `- (NodeText "COMMONING") @(test/Golden/XML/0004.xml#340:21-340:30 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#340:32-341:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#341:6-343:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#341:14-341:35 :| []) +| | | | | | | +| | | | | | `- (NodeText "Respecter") @(test/Golden/XML/0004.xml#341:25-341:34 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#341:36-341:50 :| []) +| | | | | | | +| | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#341:40-341:49 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#341:51-342:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#342:7-342:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#342:13-342:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#342:21-342:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#342:37-342:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#342:44-342:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#342:51-343:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#343:16-344:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#344:6-346:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#344:14-344:34 :| []) +| | | | | | | +| | | | | | `- (NodeText "Proposer") @(test/Golden/XML/0004.xml#344:25-344:33 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#344:35-344:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#344:39-344:48 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#344:50-345:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#345:7-345:57 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#345:13-345:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#345:21-345:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#345:37-345:55 :| []) +| | | | | | | +| | | | | | `- (NodeText "DEVRAIT") @(test/Golden/XML/0004.xml#345:47-345:54 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#345:57-346:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#346:16-347:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#347:6-349:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#347:14-347:30 :| []) +| | | | | | | +| | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#347:25-347:29 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#347:31-347:42 :| []) +| | | | | | | +| | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#347:35-347:41 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#347:43-348:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#348:7-348:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#348:13-348:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#348:21-348:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#348:37-348:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#348:44-348:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#348:51-349:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#349:16-350:6 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#350:17-351:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#351:16-352:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#352:4-388:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#352:14-352:32 :| []) +| | | | | +| | | | `- (NodeText "Financi\232res") @(test/Golden/XML/0004.xml#352:20-352:31 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#352:33-353:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#353:5-379:17 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#353:15-353:41 :| []) +| | | | | | +| | | | | `- (NodeText "DocumentsComptables") @(test/Golden/XML/0004.xml#353:21-353:40 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#353:42-354:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#354:6-356:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#354:14-354:30 :| []) +| | | | | | | +| | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#354:25-354:29 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#354:31-354:45 :| []) +| | | | | | | +| | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#354:35-354:44 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#354:46-355:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#355:7-355:54 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#355:13-355:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#355:21-355:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#355:37-355:52 :| []) +| | | | | | | +| | | | | | `- (NodeText "DEVRAIT") @(test/Golden/XML/0004.xml#355:44-355:51 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#355:54-356:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#356:16-357:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#357:6-359:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#357:14-357:32 :| []) +| | | | | | | +| | | | | | `- (NodeText "\201crire") @(test/Golden/XML/0004.xml#357:25-357:31 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#357:33-357:48 :| []) +| | | | | | | +| | | | | | `- (NodeText "Comptables") @(test/Golden/XML/0004.xml#357:37-357:47 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#357:49-358:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#358:7-358:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#358:13-358:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#358:21-358:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#358:37-358:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#358:44-358:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#358:51-359:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#359:16-360:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#360:6-367:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#360:16-360:37 :| []) +| | | | | | | +| | | | | | `- (NodeText "BilanComptable") @(test/Golden/XML/0004.xml#360:22-360:36 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#360:38-361:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#361:7-363:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#361:15-361:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#361:26-361:30 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#361:32-361:43 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#361:36-361:42 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#361:44-362:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#362:8-362:52 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#362:14-362:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#362:22-362:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#362:38-362:50 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#362:45-362:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#362:52-363:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#363:17-364:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#364:7-366:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#364:15-364:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Commenter") @(test/Golden/XML/0004.xml#364:26-364:35 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#364:37-364:51 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#364:41-364:50 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#364:52-365:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#365:8-365:58 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#365:14-365:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#365:22-365:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#365:38-365:56 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "DEVRAIT") @(test/Golden/XML/0004.xml#365:48-365:55 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#365:58-366:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#366:17-367:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#367:18-368:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#368:6-378:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#368:16-368:41 :| []) +| | | | | | | +| | | | | | `- (NodeText "Compte de r\233sultat") @(test/Golden/XML/0004.xml#368:22-368:40 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#368:42-369:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#369:7-371:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#369:15-369:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#369:26-369:30 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#369:32-369:43 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#369:36-369:42 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#369:44-370:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#370:8-370:55 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#370:14-370:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#370:22-370:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#370:38-370:53 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#370:48-370:52 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#370:55-371:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#371:17-372:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#372:7-374:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#372:15-372:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#372:26-372:30 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#372:32-372:46 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#372:36-372:45 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#372:47-373:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#373:8-373:55 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#373:14-373:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#373:22-373:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#373:38-373:53 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "DEVRAIT") @(test/Golden/XML/0004.xml#373:45-373:52 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#373:55-374:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#374:17-375:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#375:7-377:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#375:15-375:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Commenter") @(test/Golden/XML/0004.xml#375:26-375:35 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#375:37-375:51 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Assembl\233e") @(test/Golden/XML/0004.xml#375:41-375:50 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#375:52-376:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#376:8-376:55 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#376:14-376:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#376:22-376:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#376:38-376:53 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "DEVRAIT") @(test/Golden/XML/0004.xml#376:45-376:52 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#376:55-377:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#377:17-378:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#378:18-379:6 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#379:17-380:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#380:5-387:17 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#380:15-380:36 :| []) +| | | | | | +| | | | | `- (NodeText "Compte courant") @(test/Golden/XML/0004.xml#380:21-380:35 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#380:37-381:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#381:6-383:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#381:14-381:30 :| []) +| | | | | | | +| | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#381:25-381:29 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#381:31-381:44 :| []) +| | | | | | | +| | | | | | `- (NodeText "Finances") @(test/Golden/XML/0004.xml#381:35-381:43 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#381:45-382:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#382:7-382:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#382:13-382:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#382:21-382:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#382:37-382:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#382:44-382:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#382:51-383:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#383:16-384:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#384:6-386:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#384:14-384:30 :| []) +| | | | | | | +| | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#384:25-384:29 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#384:31-384:50 :| []) +| | | | | | | +| | | | | | `- (NodeText "Administration") @(test/Golden/XML/0004.xml#384:35-384:49 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#384:51-385:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#385:7-385:54 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#385:13-385:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#385:21-385:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr gradeMin) @(test/Golden/XML/0004.xml#385:37-385:52 :| []) +| | | | | | | +| | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#385:47-385:51 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#385:54-386:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#386:16-387:6 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#387:17-388:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#388:16-389:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#389:4-460:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#389:14-389:34 :| []) +| | | | | +| | | | `- (NodeText "Informatiques") @(test/Golden/XML/0004.xml#389:20-389:33 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#389:35-390:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#390:5-391:17 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#390:15-390:33 :| []) +| | | | | | +| | | | | `- (NodeText "Ordinateurs") @(test/Golden/XML/0004.xml#390:21-390:32 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#390:34-391:6 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#391:17-392:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#392:5-438:17 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#392:15-392:30 :| []) +| | | | | | +| | | | | `- (NodeText "Services") @(test/Golden/XML/0004.xml#392:21-392:29 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#392:31-393:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#393:6-395:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#393:14-393:34 :| []) +| | | | | | | +| | | | | | `- (NodeText "AdminSys") @(test/Golden/XML/0004.xml#393:25-393:33 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#393:35-393:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "InfraInfo") @(test/Golden/XML/0004.xml#393:39-393:48 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#393:50-394:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#394:7-394:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#394:13-394:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#394:21-394:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#394:37-394:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#394:44-394:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#394:51-395:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#395:16-396:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#396:6-398:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#396:14-396:33 :| []) +| | | | | | | +| | | | | | `- (NodeText "Support") @(test/Golden/XML/0004.xml#396:25-396:32 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#396:34-396:48 :| []) +| | | | | | | +| | | | | | `- (NodeText "InfraInfo") @(test/Golden/XML/0004.xml#396:38-396:47 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#396:49-397:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#397:7-397:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#397:13-397:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#397:21-397:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#397:37-397:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#397:44-397:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#397:51-398:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#398:16-399:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#399:6-401:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#399:14-399:33 :| []) +| | | | | | | +| | | | | | `- (NodeText "Mod\233rer") @(test/Golden/XML/0004.xml#399:25-399:32 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#399:34-399:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "Mod\233ration") @(test/Golden/XML/0004.xml#399:38-399:48 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#399:50-400:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#400:7-400:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#400:13-400:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#400:21-400:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#400:37-400:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#400:44-400:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#400:51-401:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#401:16-402:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#402:6-415:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#402:16-402:34 :| []) +| | | | | | | +| | | | | | `- (NodeText "Boites m\232ls") @(test/Golden/XML/0004.xml#402:22-402:33 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#402:35-403:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#403:7-414:19 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#403:17-403:38 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "commonsoft.org") @(test/Golden/XML/0004.xml#403:23-403:37 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#403:39-404:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#404:8-408:20 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#404:18-404:30 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "julm@") @(test/Golden/XML/0004.xml#404:24-404:29 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#404:31-405:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#405:9-407:19 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#405:17-405:33 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#405:28-405:32 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#405:34-405:43 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#405:38-405:42 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#405:44-406:10 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#406:10-406:54 :| []) +| | | | | | | | | | +| | | | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#406:16-406:39 :| []) +| | | | | | | | | | | +| | | | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#406:24-406:38 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#406:40-406:52 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#406:47-406:51 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#406:54-407:10 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#407:19-408:9 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#408:20-409:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#409:8-413:20 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#409:18-409:30 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "sevy@") @(test/Golden/XML/0004.xml#409:24-409:29 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#409:31-410:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#410:9-412:19 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#410:17-410:33 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#410:28-410:32 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#410:34-410:43 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#410:38-410:42 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#410:44-411:10 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#411:10-411:54 :| []) +| | | | | | | | | | +| | | | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#411:16-411:39 :| []) +| | | | | | | | | | | +| | | | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#411:24-411:38 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#411:40-411:52 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#411:47-411:51 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#411:54-412:10 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#412:19-413:9 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#413:20-414:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#414:19-415:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#415:18-416:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#416:6-422:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#416:16-416:38 :| []) +| | | | | | | +| | | | | | `- (NodeText "Noms de domaine") @(test/Golden/XML/0004.xml#416:22-416:37 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#416:39-417:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#417:7-419:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#417:15-417:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#417:26-417:30 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#417:32-417:43 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#417:36-417:42 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#417:44-418:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#418:8-418:52 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#418:14-418:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#418:22-418:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#418:38-418:50 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#418:45-418:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#418:52-419:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#419:17-420:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#420:7-421:19 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#420:17-420:38 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "commonsoft.org") @(test/Golden/XML/0004.xml#420:23-420:37 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#420:39-421:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#421:19-422:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#422:18-423:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#423:6-437:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#423:16-423:29 :| []) +| | | | | | | +| | | | | | `- (NodeText "Forums") @(test/Golden/XML/0004.xml#423:22-423:28 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#423:30-424:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#424:7-436:19 :| []) +| | | | | | | +| | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#424:17-424:38 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "commonsoft.org") @(test/Golden/XML/0004.xml#424:23-424:37 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#424:39-425:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#425:8-435:20 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#425:18-425:30 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "forum") @(test/Golden/XML/0004.xml#425:24-425:29 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#425:31-426:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#426:9-428:19 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#426:17-426:33 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#426:28-426:32 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#426:34-426:45 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#426:38-426:44 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#426:46-427:10 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#427:10-427:54 :| []) +| | | | | | | | | | +| | | | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#427:16-427:39 :| []) +| | | | | | | | | | | +| | | | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#427:24-427:38 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#427:40-427:52 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#427:47-427:51 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#427:54-428:10 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#428:19-429:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#429:9-431:19 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#429:17-429:35 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "\201crire") @(test/Golden/XML/0004.xml#429:28-429:34 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#429:36-429:47 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#429:40-429:46 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#429:48-430:10 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#430:10-430:54 :| []) +| | | | | | | | | | +| | | | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#430:16-430:39 :| []) +| | | | | | | | | | | +| | | | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#430:24-430:38 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#430:40-430:52 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#430:47-430:51 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#430:54-431:10 :| []) +| | | | | | | | +| | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#431:19-432:9 :| []) +| | | | | | | | +| | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#432:9-434:19 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#432:17-432:36 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Mod\233rer") @(test/Golden/XML/0004.xml#432:28-432:35 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#432:37-432:52 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Mod\233ration") @(test/Golden/XML/0004.xml#432:41-432:51 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeAttr toward) @(test/Golden/XML/0004.xml#432:53-432:68 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#432:61-432:67 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeText "\n\t\t\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#432:69-433:10 :| []) +| | | | | | | | | +| | | | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#433:10-433:54 :| []) +| | | | | | | | | | +| | | | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#433:16-433:39 :| []) +| | | | | | | | | | | +| | | | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#433:24-433:38 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#433:40-433:52 :| []) +| | | | | | | | | | +| | | | | | | | | `- (NodeText "DOIT") @(test/Golden/XML/0004.xml#433:47-433:51 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#433:54-434:10 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\n\t\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#434:19-435:9 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#435:20-436:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#436:19-437:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#437:18-438:6 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#438:17-439:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#439:5-459:17 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#439:15-439:31 :| []) +| | | | | | +| | | | | `- (NodeText "Logiciels") @(test/Golden/XML/0004.xml#439:21-439:30 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#439:32-440:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#440:6-442:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#440:14-440:30 :| []) +| | | | | | | +| | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#440:25-440:29 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#440:31-440:42 :| []) +| | | | | | | +| | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#440:35-440:41 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#440:43-441:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#441:7-441:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#441:13-441:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#441:21-441:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#441:37-441:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#441:44-441:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#441:51-442:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#442:16-443:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#443:6-445:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#443:14-443:35 :| []) +| | | | | | | +| | | | | | `- (NodeText "Commenter") @(test/Golden/XML/0004.xml#443:25-443:34 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#443:36-443:47 :| []) +| | | | | | | +| | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#443:40-443:46 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#443:48-444:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#444:7-444:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#444:13-444:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#444:21-444:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#444:37-444:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#444:44-444:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#444:51-445:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#445:16-446:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#446:6-450:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#446:16-446:30 :| []) +| | | | | | | +| | | | | | `- (NodeText "hcompta") @(test/Golden/XML/0004.xml#446:22-446:29 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#446:31-447:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#447:7-449:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#447:15-447:33 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\201crire") @(test/Golden/XML/0004.xml#447:26-447:32 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#447:34-447:43 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#447:38-447:42 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#447:44-448:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#448:8-448:55 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#448:14-448:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#448:22-448:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#448:38-448:53 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "DEVRAIT") @(test/Golden/XML/0004.xml#448:45-448:52 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#448:55-449:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#449:17-450:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#450:18-451:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#451:6-458:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#451:16-451:27 :| []) +| | | | | | | +| | | | | | `- (NodeText "hdoc") @(test/Golden/XML/0004.xml#451:22-451:26 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#451:28-452:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#452:7-454:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#452:15-452:31 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Lire") @(test/Golden/XML/0004.xml#452:26-452:30 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#452:32-452:43 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "Public") @(test/Golden/XML/0004.xml#452:36-452:42 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#452:44-453:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#453:8-453:52 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#453:14-453:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#453:22-453:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#453:38-453:50 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#453:45-453:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#453:52-454:8 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#454:17-455:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#455:7-457:17 :| []) +| | | | | | | +| | | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#455:15-455:33 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "\201crire") @(test/Golden/XML/0004.xml#455:26-455:32 :| []) +| | | | | | | +| | | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#455:34-455:43 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#455:38-455:42 :| []) +| | | | | | | +| | | | | | +- (NodeText "\n\t\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#455:44-456:8 :| []) +| | | | | | | +| | | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#456:8-456:55 :| []) +| | | | | | | | +| | | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#456:14-456:37 :| []) +| | | | | | | | | +| | | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#456:22-456:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#456:38-456:53 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "DEVRAIT") @(test/Golden/XML/0004.xml#456:45-456:52 :| []) +| | | | | | | +| | | | | | `- (NodeText "\n\t\t\t\t\t\t ") @(test/Golden/XML/0004.xml#456:55-457:8 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#457:17-458:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#458:18-459:6 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#459:17-460:5 :| []) +| | | +| | +- (NodeText "\n\t\t\t") @(test/Golden/XML/0004.xml#460:16-461:4 :| []) +| | | +| | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#461:4-476:16 :| []) +| | | | +| | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#461:14-461:28 :| []) +| | | | | +| | | | `- (NodeText "Bureaux") @(test/Golden/XML/0004.xml#461:20-461:27 :| []) +| | | | +| | | +- (NodeText "\n\t\t\t\t") @(test/Golden/XML/0004.xml#461:29-462:5 :| []) +| | | | +| | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#462:5-475:17 :| []) +| | | | | +| | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#462:15-462:32 :| []) +| | | | | | +| | | | | `- (NodeText "La Renou\233e") @(test/Golden/XML/0004.xml#462:21-462:31 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#462:33-463:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#463:6-465:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#463:14-463:34 :| []) +| | | | | | | +| | | | | | `- (NodeText "Utiliser") @(test/Golden/XML/0004.xml#463:25-463:33 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#463:35-463:44 :| []) +| | | | | | | +| | | | | | `- (NodeText "julm") @(test/Golden/XML/0004.xml#463:39-463:43 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#463:45-464:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#464:7-464:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#464:13-464:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#464:21-464:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#464:37-464:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#464:44-464:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#464:51-465:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#465:16-466:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}policy) @(test/Golden/XML/0004.xml#466:6-468:16 :| []) +| | | | | | +| | | | | +- (NodeAttr operation) @(test/Golden/XML/0004.xml#466:14-466:34 :| []) +| | | | | | | +| | | | | | `- (NodeText "Utiliser") @(test/Golden/XML/0004.xml#466:25-466:33 :| []) +| | | | | | +| | | | | +- (NodeAttr by) @(test/Golden/XML/0004.xml#466:35-466:44 :| []) +| | | | | | | +| | | | | | `- (NodeText "s\233vy") @(test/Golden/XML/0004.xml#466:39-466:43 :| []) +| | | | | | +| | | | | +- (NodeText "\n\t\t\t\t\t\t") @(test/Golden/XML/0004.xml#466:45-467:7 :| []) +| | | | | | +| | | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}rule) @(test/Golden/XML/0004.xml#467:7-467:51 :| []) +| | | | | | | +| | | | | | +- (NodeAttr grades) @(test/Golden/XML/0004.xml#467:13-467:36 :| []) +| | | | | | | | +| | | | | | | `- (NodeText "R\232glementation") @(test/Golden/XML/0004.xml#467:21-467:35 :| []) +| | | | | | | +| | | | | | `- (NodeAttr grade) @(test/Golden/XML/0004.xml#467:37-467:49 :| []) +| | | | | | | +| | | | | | `- (NodeText "PEUT") @(test/Golden/XML/0004.xml#467:44-467:48 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#467:51-468:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#468:16-469:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#469:6-470:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#469:16-469:31 :| []) +| | | | | | | +| | | | | | `- (NodeText "Internet") @(test/Golden/XML/0004.xml#469:22-469:30 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#469:32-470:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#470:18-471:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#471:6-472:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#471:16-471:34 :| []) +| | | | | | | +| | | | | | `- (NodeText "\201lectricit\233") @(test/Golden/XML/0004.xml#471:22-471:33 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#471:35-472:7 :| []) +| | | | | +| | | | +- (NodeText "\n\t\t\t\t\t") @(test/Golden/XML/0004.xml#472:18-473:6 :| []) +| | | | | +| | | | +- (NodeElem {http://commonsoft.org/xml/2018/commoning.rnc}resource) @(test/Golden/XML/0004.xml#473:6-474:18 :| []) +| | | | | | +| | | | | +- (NodeAttr name) @(test/Golden/XML/0004.xml#473:16-473:39 :| []) +| | | | | | | +| | | | | | `- (NodeText "Bureaux partag\233s") @(test/Golden/XML/0004.xml#473:22-473:38 :| []) +| | | | | | +| | | | | `- (NodeText "\n\t\t\t\t\t ") @(test/Golden/XML/0004.xml#473:40-474:7 :| []) +| | | | | +| | | | `- (NodeText "\n\t\t\t\t ") @(test/Golden/XML/0004.xml#474:18-475:6 :| []) +| | | | +| | | `- (NodeText "\n\t\t\t ") @(test/Golden/XML/0004.xml#475:17-476:5 :| []) +| | | +| | `- (NodeText "\n\t\t ") @(test/Golden/XML/0004.xml#476:16-477:4 :| []) +| | +| `- (NodeText "\n\t ") @(test/Golden/XML/0004.xml#477:16-478:3 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/0004.xml#478:16-479:1 :| []) + diff --git a/test/Golden/XML/NS/0001.xml b/test/Golden/XML/NS/0001.xml new file mode 100644 index 0000000..315faf8 --- /dev/null +++ b/test/Golden/XML/NS/0001.xml @@ -0,0 +1,2 @@ + + diff --git a/test/Golden/XML/NS/0001.xml.ast b/test/Golden/XML/NS/0001.xml.ast new file mode 100644 index 0000000..dc1b7f9 --- /dev/null +++ b/test/Golden/XML/NS/0001.xml.ast @@ -0,0 +1,8 @@ +(NodeElem x) @(test/Golden/XML/NS/0001.xml#1:1-2:5 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}edi) @(test/Golden/XML/NS/0001.xml#1:4-1:51 :| []) +| | +| `- (NodeText "http://ecommerce.example.org/schema") @(test/Golden/XML/NS/0001.xml#1:15-1:50 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/NS/0001.xml#1:52-2:1 :| []) + diff --git a/test/Golden/XML/NS/0002.xml b/test/Golden/XML/NS/0002.xml new file mode 100644 index 0000000..ecbcf88 --- /dev/null +++ b/test/Golden/XML/NS/0002.xml @@ -0,0 +1,2 @@ + +32.18 diff --git a/test/Golden/XML/NS/0002.xml.ast b/test/Golden/XML/NS/0002.xml.ast new file mode 100644 index 0000000..838851f --- /dev/null +++ b/test/Golden/XML/NS/0002.xml.ast @@ -0,0 +1,14 @@ +(NodeComment " the 'price' element's namespace is http://ecommerce.example.org/schema ") @(test/Golden/XML/NS/0002.xml#1:1-1:80 :| []) + +(NodeElem {http://ecommerce.example.org/schema}price) @(test/Golden/XML/NS/0002.xml#2:1-2:90 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}edi) @(test/Golden/XML/NS/0002.xml#2:12-2:59 :| []) +| | +| `- (NodeText "http://ecommerce.example.org/schema") @(test/Golden/XML/NS/0002.xml#2:23-2:58 :| []) +| ++- (NodeAttr units) @(test/Golden/XML/NS/0002.xml#2:60-2:72 :| []) +| | +| `- (NodeText "Euro") @(test/Golden/XML/NS/0002.xml#2:67-2:71 :| []) +| +`- (NodeText "32.18") @(test/Golden/XML/NS/0002.xml#2:73-2:78 :| []) + diff --git a/test/Golden/XML/NS/0003.xml b/test/Golden/XML/NS/0003.xml new file mode 100644 index 0000000..465c4bd --- /dev/null +++ b/test/Golden/XML/NS/0003.xml @@ -0,0 +1,4 @@ + + + Baby food + diff --git a/test/Golden/XML/NS/0003.xml.ast b/test/Golden/XML/NS/0003.xml.ast new file mode 100644 index 0000000..01d02ba --- /dev/null +++ b/test/Golden/XML/NS/0003.xml.ast @@ -0,0 +1,22 @@ +(NodeElem x) @(test/Golden/XML/NS/0003.xml#1:1-4:5 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}edi) @(test/Golden/XML/NS/0003.xml#1:4-1:51 :| []) +| | +| `- (NodeText "http://ecommerce.example.org/schema") @(test/Golden/XML/NS/0003.xml#1:15-1:50 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0003.xml#1:52-2:3 :| []) +| ++- (NodeComment " the 'taxClass' attribute's namespace is http://ecommerce.example.org/schema ") @(test/Golden/XML/NS/0003.xml#2:3-2:87 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0003.xml#2:87-3:3 :| []) +| ++- (NodeElem lineItem) @(test/Golden/XML/NS/0003.xml#3:3-3:55 :| []) +| | +| +- (NodeAttr {http://ecommerce.example.org/schema}taxClass) @(test/Golden/XML/NS/0003.xml#3:13-3:34 :| []) +| | | +| | `- (NodeText "exempt") @(test/Golden/XML/NS/0003.xml#3:27-3:33 :| []) +| | +| `- (NodeText "Baby food") @(test/Golden/XML/NS/0003.xml#3:35-3:44 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/NS/0003.xml#3:55-4:1 :| []) + diff --git a/test/Golden/XML/NS/0004.xml b/test/Golden/XML/NS/0004.xml new file mode 100644 index 0000000..3a084e9 --- /dev/null +++ b/test/Golden/XML/NS/0004.xml @@ -0,0 +1,8 @@ + + + + + Frobnostication + Moved to + here. + diff --git a/test/Golden/XML/NS/0004.xml.ast b/test/Golden/XML/NS/0004.xml.ast new file mode 100644 index 0000000..abf34d7 --- /dev/null +++ b/test/Golden/XML/NS/0004.xml.ast @@ -0,0 +1,38 @@ +(NodePI xml "") @(test/Golden/XML/NS/0004.xml#1:1-1:22 :| []) +| +`- (NodeAttr version) @(test/Golden/XML/NS/0004.xml#1:6-1:20 :| []) + | + `- (NodeText "1.0") @(test/Golden/XML/NS/0004.xml#1:16-1:19 :| []) + +(NodeElem {http://www.w3.org/1999/xhtml}html) @(test/Golden/XML/NS/0004.xml#3:1-8:13 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}html) @(test/Golden/XML/NS/0004.xml#3:12-3:53 :| []) +| | +| `- (NodeText "http://www.w3.org/1999/xhtml") @(test/Golden/XML/NS/0004.xml#3:24-3:52 :| []) +| ++- (NodeText "\n\n ") @(test/Golden/XML/NS/0004.xml#3:54-5:3 :| []) +| ++- (NodeElem {http://www.w3.org/1999/xhtml}head) @(test/Golden/XML/NS/0004.xml#5:3-5:66 :| []) +| | +| `- (NodeElem {http://www.w3.org/1999/xhtml}title) @(test/Golden/XML/NS/0004.xml#5:14-5:54 :| []) +| | +| `- (NodeText "Frobnostication") @(test/Golden/XML/NS/0004.xml#5:26-5:41 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0004.xml#5:66-6:3 :| []) +| ++- (NodeElem {http://www.w3.org/1999/xhtml}body) @(test/Golden/XML/NS/0004.xml#6:3-7:79 :| []) +| | +| `- (NodeElem {http://www.w3.org/1999/xhtml}p) @(test/Golden/XML/NS/0004.xml#6:14-7:67 :| []) +| | +| +- (NodeText "Moved to \n ") @(test/Golden/XML/NS/0004.xml#6:22-7:5 :| []) +| | +| `- (NodeElem {http://www.w3.org/1999/xhtml}a) @(test/Golden/XML/NS/0004.xml#7:5-7:58 :| []) +| | +| +- (NodeAttr href) @(test/Golden/XML/NS/0004.xml#7:13-7:43 :| []) +| | | +| | `- (NodeText "http://frob.example.com") @(test/Golden/XML/NS/0004.xml#7:19-7:42 :| []) +| | +| `- (NodeText "here.") @(test/Golden/XML/NS/0004.xml#7:44-7:49 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/NS/0004.xml#7:79-8:1 :| []) + diff --git a/test/Golden/XML/NS/0005.xml b/test/Golden/XML/NS/0005.xml new file mode 100644 index 0000000..8b419c6 --- /dev/null +++ b/test/Golden/XML/NS/0005.xml @@ -0,0 +1,7 @@ + + + + Cheaper by the Dozen + 1568491379 + diff --git a/test/Golden/XML/NS/0005.xml.ast b/test/Golden/XML/NS/0005.xml.ast new file mode 100644 index 0000000..3651840 --- /dev/null +++ b/test/Golden/XML/NS/0005.xml.ast @@ -0,0 +1,32 @@ +(NodePI xml "") @(test/Golden/XML/NS/0005.xml#1:1-1:22 :| []) +| +`- (NodeAttr version) @(test/Golden/XML/NS/0005.xml#1:6-1:20 :| []) + | + `- (NodeText "1.0") @(test/Golden/XML/NS/0005.xml#1:16-1:19 :| []) + +(NodeComment " both namespace prefixes are available throughout ") @(test/Golden/XML/NS/0005.xml#2:1-2:58 :| []) + +(NodeElem {urn:loc.gov:books}book) @(test/Golden/XML/NS/0005.xml#3:1-7:11 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}bk) @(test/Golden/XML/NS/0005.xml#3:10-3:38 :| []) +| | +| `- (NodeText "urn:loc.gov:books") @(test/Golden/XML/NS/0005.xml#3:20-3:37 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}isbn) @(test/Golden/XML/NS/0005.xml#4:10-4:45 :| []) +| | +| `- (NodeText "urn:ISBN:0-395-36341-6") @(test/Golden/XML/NS/0005.xml#4:22-4:44 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0005.xml#4:46-5:5 :| []) +| ++- (NodeElem {urn:loc.gov:books}title) @(test/Golden/XML/NS/0005.xml#5:5-5:46 :| []) +| | +| `- (NodeText "Cheaper by the Dozen") @(test/Golden/XML/NS/0005.xml#5:15-5:35 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0005.xml#5:46-6:5 :| []) +| ++- (NodeElem {urn:ISBN:0-395-36341-6}number) @(test/Golden/XML/NS/0005.xml#6:5-6:42 :| []) +| | +| `- (NodeText "1568491379") @(test/Golden/XML/NS/0005.xml#6:18-6:28 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/NS/0005.xml#6:42-7:1 :| []) + diff --git a/test/Golden/XML/NS/0006.xml b/test/Golden/XML/NS/0006.xml new file mode 100644 index 0000000..cea0dbe --- /dev/null +++ b/test/Golden/XML/NS/0006.xml @@ -0,0 +1,7 @@ + + + + Frobnostication +

Moved to + here.

+ diff --git a/test/Golden/XML/NS/0006.xml.ast b/test/Golden/XML/NS/0006.xml.ast new file mode 100644 index 0000000..0a591b2 --- /dev/null +++ b/test/Golden/XML/NS/0006.xml.ast @@ -0,0 +1,42 @@ +(NodePI xml "") @(test/Golden/XML/NS/0006.xml#1:1-1:22 :| []) +| +`- (NodeAttr version) @(test/Golden/XML/NS/0006.xml#1:6-1:20 :| []) + | + `- (NodeText "1.0") @(test/Golden/XML/NS/0006.xml#1:16-1:19 :| []) + +(NodeComment " elements are in the HTML namespace, in this case by default ") @(test/Golden/XML/NS/0006.xml#2:1-2:69 :| []) + +(NodeElem {http://www.w3.org/1999/xhtml}html) @(test/Golden/XML/NS/0006.xml#3:1-7:8 :| []) +| ++- (NodeAttr xmlns) @(test/Golden/XML/NS/0006.xml#3:7-3:43 :| []) +| | +| `- (NodeText "http://www.w3.org/1999/xhtml") @(test/Golden/XML/NS/0006.xml#3:14-3:42 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0006.xml#3:44-4:3 :| []) +| ++- (NodeElem {http://www.w3.org/1999/xhtml}head) @(test/Golden/XML/NS/0006.xml#4:3-4:46 :| []) +| | +| `- (NodeElem {http://www.w3.org/1999/xhtml}title) @(test/Golden/XML/NS/0006.xml#4:9-4:39 :| []) +| | +| `- (NodeText "Frobnostication") @(test/Golden/XML/NS/0006.xml#4:16-4:31 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0006.xml#4:46-5:3 :| []) +| ++- (NodeElem {http://www.w3.org/1999/xhtml}body) @(test/Golden/XML/NS/0006.xml#5:3-6:59 :| []) +| | +| `- (NodeElem {http://www.w3.org/1999/xhtml}p) @(test/Golden/XML/NS/0006.xml#5:9-6:52 :| []) +| | +| +- (NodeText "Moved to \n ") @(test/Golden/XML/NS/0006.xml#5:12-6:5 :| []) +| | +| +- (NodeElem {http://www.w3.org/1999/xhtml}a) @(test/Golden/XML/NS/0006.xml#6:5-6:47 :| []) +| | | +| | +- (NodeAttr href) @(test/Golden/XML/NS/0006.xml#6:8-6:38 :| []) +| | | | +| | | `- (NodeText "http://frob.example.com") @(test/Golden/XML/NS/0006.xml#6:14-6:37 :| []) +| | | +| | `- (NodeText "here") @(test/Golden/XML/NS/0006.xml#6:39-6:43 :| []) +| | +| `- (NodeText ".") @(test/Golden/XML/NS/0006.xml#6:47-6:48 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/NS/0006.xml#6:59-7:1 :| []) + diff --git a/test/Golden/XML/NS/0007.xml b/test/Golden/XML/NS/0007.xml new file mode 100644 index 0000000..b661923 --- /dev/null +++ b/test/Golden/XML/NS/0007.xml @@ -0,0 +1,7 @@ + + + + Cheaper by the Dozen + 1568491379 + diff --git a/test/Golden/XML/NS/0007.xml.ast b/test/Golden/XML/NS/0007.xml.ast new file mode 100644 index 0000000..3d96538 --- /dev/null +++ b/test/Golden/XML/NS/0007.xml.ast @@ -0,0 +1,32 @@ +(NodePI xml "") @(test/Golden/XML/NS/0007.xml#1:1-1:22 :| []) +| +`- (NodeAttr version) @(test/Golden/XML/NS/0007.xml#1:6-1:20 :| []) + | + `- (NodeText "1.0") @(test/Golden/XML/NS/0007.xml#1:16-1:19 :| []) + +(NodeComment " unprefixed element types are from \"books\" ") @(test/Golden/XML/NS/0007.xml#2:1-2:51 :| []) + +(NodeElem {urn:loc.gov:books}book) @(test/Golden/XML/NS/0007.xml#3:1-7:8 :| []) +| ++- (NodeAttr xmlns) @(test/Golden/XML/NS/0007.xml#3:7-3:32 :| []) +| | +| `- (NodeText "urn:loc.gov:books") @(test/Golden/XML/NS/0007.xml#3:14-3:31 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}isbn) @(test/Golden/XML/NS/0007.xml#4:7-4:42 :| []) +| | +| `- (NodeText "urn:ISBN:0-395-36341-6") @(test/Golden/XML/NS/0007.xml#4:19-4:41 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0007.xml#4:43-5:5 :| []) +| ++- (NodeElem {urn:loc.gov:books}title) @(test/Golden/XML/NS/0007.xml#5:5-5:40 :| []) +| | +| `- (NodeText "Cheaper by the Dozen") @(test/Golden/XML/NS/0007.xml#5:12-5:32 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0007.xml#5:40-6:5 :| []) +| ++- (NodeElem {urn:ISBN:0-395-36341-6}number) @(test/Golden/XML/NS/0007.xml#6:5-6:42 :| []) +| | +| `- (NodeText "1568491379") @(test/Golden/XML/NS/0007.xml#6:18-6:28 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/NS/0007.xml#6:42-7:1 :| []) + diff --git a/test/Golden/XML/NS/0008.xml b/test/Golden/XML/NS/0008.xml new file mode 100644 index 0000000..d48e7a1 --- /dev/null +++ b/test/Golden/XML/NS/0008.xml @@ -0,0 +1,13 @@ + + + + Cheaper by the Dozen + 1568491379 + + +

+ This is a funny book! +

+
+
diff --git a/test/Golden/XML/NS/0008.xml.ast b/test/Golden/XML/NS/0008.xml.ast new file mode 100644 index 0000000..fc6f83e --- /dev/null +++ b/test/Golden/XML/NS/0008.xml.ast @@ -0,0 +1,58 @@ +(NodePI xml "") @(test/Golden/XML/NS/0008.xml#1:1-1:22 :| []) +| +`- (NodeAttr version) @(test/Golden/XML/NS/0008.xml#1:6-1:20 :| []) + | + `- (NodeText "1.0") @(test/Golden/XML/NS/0008.xml#1:16-1:19 :| []) + +(NodeComment " initially, the default namespace is \"books\" ") @(test/Golden/XML/NS/0008.xml#2:1-2:53 :| []) + +(NodeElem {urn:loc.gov:books}book) @(test/Golden/XML/NS/0008.xml#3:1-13:8 :| []) +| ++- (NodeAttr xmlns) @(test/Golden/XML/NS/0008.xml#3:7-3:32 :| []) +| | +| `- (NodeText "urn:loc.gov:books") @(test/Golden/XML/NS/0008.xml#3:14-3:31 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}isbn) @(test/Golden/XML/NS/0008.xml#4:7-4:42 :| []) +| | +| `- (NodeText "urn:ISBN:0-395-36341-6") @(test/Golden/XML/NS/0008.xml#4:19-4:41 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0008.xml#4:43-5:5 :| []) +| ++- (NodeElem {urn:loc.gov:books}title) @(test/Golden/XML/NS/0008.xml#5:5-5:40 :| []) +| | +| `- (NodeText "Cheaper by the Dozen") @(test/Golden/XML/NS/0008.xml#5:12-5:32 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0008.xml#5:40-6:5 :| []) +| ++- (NodeElem {urn:ISBN:0-395-36341-6}number) @(test/Golden/XML/NS/0008.xml#6:5-6:42 :| []) +| | +| `- (NodeText "1568491379") @(test/Golden/XML/NS/0008.xml#6:18-6:28 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0008.xml#6:42-7:5 :| []) +| ++- (NodeElem {urn:loc.gov:books}notes) @(test/Golden/XML/NS/0008.xml#7:5-12:13 :| []) +| | +| +- (NodeText "\n ") @(test/Golden/XML/NS/0008.xml#7:12-8:7 :| []) +| | +| +- (NodeComment " make HTML the default namespace for some commentary ") @(test/Golden/XML/NS/0008.xml#8:7-8:67 :| []) +| | +| +- (NodeText "\n ") @(test/Golden/XML/NS/0008.xml#8:67-9:7 :| []) +| | +| +- (NodeElem {http://www.w3.org/1999/xhtml}p) @(test/Golden/XML/NS/0008.xml#9:7-11:11 :| []) +| | | +| | +- (NodeAttr xmlns) @(test/Golden/XML/NS/0008.xml#9:10-9:46 :| []) +| | | | +| | | `- (NodeText "http://www.w3.org/1999/xhtml") @(test/Golden/XML/NS/0008.xml#9:17-9:45 :| []) +| | | +| | +- (NodeText "\n This is a ") @(test/Golden/XML/NS/0008.xml#9:47-10:21 :| []) +| | | +| | +- (NodeElem {http://www.w3.org/1999/xhtml}i) @(test/Golden/XML/NS/0008.xml#10:21-10:33 :| []) +| | | | +| | | `- (NodeText "funny") @(test/Golden/XML/NS/0008.xml#10:24-10:29 :| []) +| | | +| | `- (NodeText " book!\n ") @(test/Golden/XML/NS/0008.xml#10:33-11:7 :| []) +| | +| `- (NodeText "\n ") @(test/Golden/XML/NS/0008.xml#11:11-12:5 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/NS/0008.xml#12:13-13:1 :| []) + diff --git a/test/Golden/XML/NS/0009.xml b/test/Golden/XML/NS/0009.xml new file mode 100644 index 0000000..6ffe234 --- /dev/null +++ b/test/Golden/XML/NS/0009.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + +
NameOriginDescription
HuntsmanBath, UK +
BitterFuggles + Wonderful hop, light alcohol, good summer beer + Fragile; excessive variance pub to pub +
+
+
diff --git a/test/Golden/XML/NS/0009.xml.ast b/test/Golden/XML/NS/0009.xml.ast new file mode 100644 index 0000000..6ad09b1 --- /dev/null +++ b/test/Golden/XML/NS/0009.xml.ast @@ -0,0 +1,110 @@ +(NodePI xml "") @(test/Golden/XML/NS/0009.xml#1:1-1:22 :| []) +| +`- (NodeAttr version) @(test/Golden/XML/NS/0009.xml#1:6-1:20 :| []) + | + `- (NodeText "1.0") @(test/Golden/XML/NS/0009.xml#1:16-1:19 :| []) + +(NodeElem Beers) @(test/Golden/XML/NS/0009.xml#2:1-18:11 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#2:8-3:3 :| []) +| ++- (NodeComment " the default namespace inside tables is that of HTML ") @(test/Golden/XML/NS/0009.xml#3:3-3:63 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#3:63-4:3 :| []) +| ++- (NodeElem {http://www.w3.org/1999/xhtml}table) @(test/Golden/XML/NS/0009.xml#4:3-17:13 :| []) +| | +| +- (NodeAttr xmlns) @(test/Golden/XML/NS/0009.xml#4:10-4:46 :| []) +| | | +| | `- (NodeText "http://www.w3.org/1999/xhtml") @(test/Golden/XML/NS/0009.xml#4:17-4:45 :| []) +| | +| +- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#4:47-5:4 :| []) +| | +| +- (NodeElem {http://www.w3.org/1999/xhtml}th) @(test/Golden/XML/NS/0009.xml#5:4-5:61 :| []) +| | | +| | +- (NodeElem {http://www.w3.org/1999/xhtml}td) @(test/Golden/XML/NS/0009.xml#5:8-5:21 :| []) +| | | | +| | | `- (NodeText "Name") @(test/Golden/XML/NS/0009.xml#5:12-5:16 :| []) +| | | +| | +- (NodeElem {http://www.w3.org/1999/xhtml}td) @(test/Golden/XML/NS/0009.xml#5:21-5:36 :| []) +| | | | +| | | `- (NodeText "Origin") @(test/Golden/XML/NS/0009.xml#5:25-5:31 :| []) +| | | +| | `- (NodeElem {http://www.w3.org/1999/xhtml}td) @(test/Golden/XML/NS/0009.xml#5:36-5:56 :| []) +| | | +| | `- (NodeText "Description") @(test/Golden/XML/NS/0009.xml#5:40-5:51 :| []) +| | +| +- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#5:61-6:4 :| []) +| | +| +- (NodeElem {http://www.w3.org/1999/xhtml}tr) @(test/Golden/XML/NS/0009.xml#6:4-16:12 :| []) +| | | +| | +- (NodeText " \n ") @(test/Golden/XML/NS/0009.xml#6:8-7:6 :| []) +| | | +| | +- (NodeComment " no default namespace inside table cells ") @(test/Golden/XML/NS/0009.xml#7:6-7:54 :| []) +| | | +| | +- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#7:54-8:6 :| []) +| | | +| | +- (NodeElem {http://www.w3.org/1999/xhtml}td) @(test/Golden/XML/NS/0009.xml#8:6-8:55 :| []) +| | | | +| | | `- (NodeElem brandName) @(test/Golden/XML/NS/0009.xml#8:10-8:50 :| []) +| | | | +| | | +- (NodeAttr xmlns) @(test/Golden/XML/NS/0009.xml#8:21-8:29 :| []) +| | | | | +| | | | `- (NodeText "") @(test/Golden/XML/NS/0009.xml#8:28-8:28 :| []) +| | | | +| | | `- (NodeText "Huntsman") @(test/Golden/XML/NS/0009.xml#8:30-8:38 :| []) +| | | +| | +- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#8:55-9:6 :| []) +| | | +| | +- (NodeElem {http://www.w3.org/1999/xhtml}td) @(test/Golden/XML/NS/0009.xml#9:6-9:49 :| []) +| | | | +| | | `- (NodeElem origin) @(test/Golden/XML/NS/0009.xml#9:10-9:44 :| []) +| | | | +| | | +- (NodeAttr xmlns) @(test/Golden/XML/NS/0009.xml#9:18-9:26 :| []) +| | | | | +| | | | `- (NodeText "") @(test/Golden/XML/NS/0009.xml#9:25-9:25 :| []) +| | | | +| | | `- (NodeText "Bath, UK") @(test/Golden/XML/NS/0009.xml#9:27-9:35 :| []) +| | | +| | +- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#9:49-10:6 :| []) +| | | +| | +- (NodeElem {http://www.w3.org/1999/xhtml}td) @(test/Golden/XML/NS/0009.xml#10:6-15:14 :| []) +| | | | +| | | +- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#10:10-11:8 :| []) +| | | | +| | | +- (NodeElem details) @(test/Golden/XML/NS/0009.xml#11:8-14:20 :| []) +| | | | | +| | | | +- (NodeAttr xmlns) @(test/Golden/XML/NS/0009.xml#11:17-11:25 :| []) +| | | | | | +| | | | | `- (NodeText "") @(test/Golden/XML/NS/0009.xml#11:24-11:24 :| []) +| | | | | +| | | | +- (NodeElem class) @(test/Golden/XML/NS/0009.xml#11:26-11:47 :| []) +| | | | | | +| | | | | `- (NodeText "Bitter") @(test/Golden/XML/NS/0009.xml#11:33-11:39 :| []) +| | | | | +| | | | +- (NodeElem hop) @(test/Golden/XML/NS/0009.xml#11:47-11:65 :| []) +| | | | | | +| | | | | `- (NodeText "Fuggles") @(test/Golden/XML/NS/0009.xml#11:52-11:59 :| []) +| | | | | +| | | | +- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#11:65-12:10 :| []) +| | | | | +| | | | +- (NodeElem pro) @(test/Golden/XML/NS/0009.xml#12:10-12:67 :| []) +| | | | | | +| | | | | `- (NodeText "Wonderful hop, light alcohol, good summer beer") @(test/Golden/XML/NS/0009.xml#12:15-12:61 :| []) +| | | | | +| | | | +- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#12:67-13:10 :| []) +| | | | | +| | | | +- (NodeElem con) @(test/Golden/XML/NS/0009.xml#13:10-13:59 :| []) +| | | | | | +| | | | | `- (NodeText "Fragile; excessive variance pub to pub") @(test/Golden/XML/NS/0009.xml#13:15-13:53 :| []) +| | | | | +| | | | `- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#13:59-14:10 :| []) +| | | | +| | | `- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#14:20-15:9 :| []) +| | | +| | `- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#15:14-16:7 :| []) +| | +| `- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#16:12-17:5 :| []) +| +`- (NodeText "\n ") @(test/Golden/XML/NS/0009.xml#17:13-18:3 :| []) + diff --git a/test/Golden/XML/NS/0010.xml b/test/Golden/XML/NS/0010.xml new file mode 100644 index 0000000..ad15dd6 --- /dev/null +++ b/test/Golden/XML/NS/0010.xml @@ -0,0 +1,6 @@ + + + + + diff --git a/test/Golden/XML/NS/0010.xml.ast b/test/Golden/XML/NS/0010.xml.ast new file mode 100644 index 0000000..eef4ee2 --- /dev/null +++ b/test/Golden/XML/NS/0010.xml.ast @@ -0,0 +1,2 @@ +test/Golden/XML/NS/0010.xml:4:24: +Error_Attribute_collision a diff --git a/test/Golden/XML/NS/0011.xml b/test/Golden/XML/NS/0011.xml new file mode 100644 index 0000000..45b73a4 --- /dev/null +++ b/test/Golden/XML/NS/0011.xml @@ -0,0 +1,6 @@ + + + + + diff --git a/test/Golden/XML/NS/0011.xml.ast b/test/Golden/XML/NS/0011.xml.ast new file mode 100644 index 0000000..17a77d3 --- /dev/null +++ b/test/Golden/XML/NS/0011.xml.ast @@ -0,0 +1,38 @@ +(NodeComment " http://www.w3.org is bound to n1 and is the default ") @(test/Golden/XML/NS/0011.xml#1:1-1:61 :| []) + +(NodeElem {http://www.w3.org}x) @(test/Golden/XML/NS/0011.xml#2:1-6:5 :| []) +| ++- (NodeAttr {http://www.w3.org/2000/xmlns/}n1) @(test/Golden/XML/NS/0011.xml#2:4-2:32 :| []) +| | +| `- (NodeText "http://www.w3.org") @(test/Golden/XML/NS/0011.xml#2:14-2:31 :| []) +| ++- (NodeAttr xmlns) @(test/Golden/XML/NS/0011.xml#3:4-3:29 :| []) +| | +| `- (NodeText "http://www.w3.org") @(test/Golden/XML/NS/0011.xml#3:11-3:28 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0011.xml#3:31-4:3 :| []) +| ++- (NodeElem {http://www.w3.org}good) @(test/Golden/XML/NS/0011.xml#4:3-4:27 :| []) +| | +| +- (NodeAttr a) @(test/Golden/XML/NS/0011.xml#4:9-4:14 :| []) +| | | +| | `- (NodeText "1") @(test/Golden/XML/NS/0011.xml#4:12-4:13 :| []) +| | +| `- (NodeAttr b) @(test/Golden/XML/NS/0011.xml#4:19-4:24 :| []) +| | +| `- (NodeText "2") @(test/Golden/XML/NS/0011.xml#4:22-4:23 :| []) +| ++- (NodeText "\n ") @(test/Golden/XML/NS/0011.xml#4:27-5:3 :| []) +| ++- (NodeElem {http://www.w3.org}good) @(test/Golden/XML/NS/0011.xml#5:3-5:30 :| []) +| | +| +- (NodeAttr a) @(test/Golden/XML/NS/0011.xml#5:9-5:14 :| []) +| | | +| | `- (NodeText "1") @(test/Golden/XML/NS/0011.xml#5:12-5:13 :| []) +| | +| `- (NodeAttr {http://www.w3.org}a) @(test/Golden/XML/NS/0011.xml#5:19-5:27 :| []) +| | +| `- (NodeText "2") @(test/Golden/XML/NS/0011.xml#5:25-5:26 :| []) +| +`- (NodeText "\n") @(test/Golden/XML/NS/0011.xml#5:30-6:1 :| []) + diff --git a/test/Main.hs b/test/Main.hs new file mode 100644 index 0000000..d1afa09 --- /dev/null +++ b/test/Main.hs @@ -0,0 +1,15 @@ +module Main where + +import System.IO (IO) +import Data.Function (($)) + +import Test.Tasty +import Golden + +main :: IO () +main = do + goldens <- goldensIO + defaultMain $ + testGroup "Language.Symantic" + [ goldens + ] -- 2.42.0