{"id":1964,"date":"2010-12-09T21:00:00","date_gmt":"2010-12-09T21:00:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2010\/12\/09\/editing-jrxml-in-emacs-using-nxml-mode\/"},"modified":"2010-12-09T21:00:00","modified_gmt":"2010-12-09T21:00:00","slug":"editing-jrxml-in-emacs-using-nxml-mode","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2010\/12\/09\/editing-jrxml-in-emacs-using-nxml-mode\/","title":{"rendered":"editing JRXML in emacs using nxml-mode"},"content":{"rendered":"<p>\t\t\t\tJust created an RELAG-NG (&#8220;compact&#8221;) grammar for editing JRXML files.<\/p>\n<p>I used trang for that, and the &#8220;<i>input module<\/i>&#8221; was a sample JRXML file. Yes, that means: occasionally some JRXML file will have tags or attributes, that my <i>jasperreport.rnc<\/i> does not know yet. But then re-running trang on an additional sample file is not really a big job.<\/p>\n<p>I really love editing XML.<\/p>\n<p>I re-ordered and &#8220;grouped&#8221; the XML pieces for the elements in my sample reports. That helps to clean up some things, that got a little messy over the time. In the end you recognize, how much duplicate code you have.<\/p>\n<p><u>You<\/u> may want to fight the redundancy problems through JRXML subreports.<br \/>\n<u>I<\/u> actually made my JRXML a &#8220;<i>here document&#8221;<\/i> for a shell script. A couple of hours later I knew, that a perl script is the better approach. Another couple of hours later there were <u>plenty<\/u> little <u>parameterized<\/u> &#8220;<i>here documents<\/i>&#8220;. I have solved my redundancy problem here through &#8220;looping over lists of configurations&#8221;.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just created an RELAG-NG (&#8220;compact&#8221;) grammar for editing JRXML files. I used trang for that, and the &#8220;input module&#8221; was a sample JRXML file. Yes, that means: occasionally some JRXML file will have tags or attributes, that my jasperreport.rnc does not know yet. But then re-running trang on an additional sample file is not really [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[1360],"class_list":["post-1964","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-trang"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-vG","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/1964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=1964"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/1964\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=1964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=1964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=1964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}