[sword-svn] r525 - trunk/modules/conf
refdoc at crosswire.org
refdoc at crosswire.org
Wed May 30 05:38:36 MST 2018
Author: refdoc
Date: 2018-05-30 05:38:35 -0700 (Wed, 30 May 2018)
New Revision: 525
Modified:
trunk/modules/conf/confmaker.pl
Log:
remove header of document prior to seeking certain tags
Modified: trunk/modules/conf/confmaker.pl
===================================================================
--- trunk/modules/conf/confmaker.pl 2018-04-05 02:29:48 UTC (rev 524)
+++ trunk/modules/conf/confmaker.pl 2018-05-30 12:38:35 UTC (rev 525)
@@ -136,6 +136,9 @@
my $doc_text = new Sword::SWBuf($hs->parse($doc->toString()));
## obtain name, type and language
+for my $root ($doc->findnodes(q{/header/})) {
+ $root->unbindNode;
+}
my @elements = $doc->getElementsByTagName('osisText');
@@ -180,7 +183,13 @@
print STDERR "\n";
exit(-1);
}
+#remove <header> tag and child nodes as its presence can cause confusion
+for my $header ($doc->getElementsByTagName('header')) {
+ $header->unbindNode;
+}
+
+
##GlobalOptionsFilter - prepare
my @doc_features = ('title', 'note', 'reference', 'q', 'figure', 'rdg');
@@ -280,6 +289,8 @@
print "Lang=".$doc_lang."\n";
+
+
foreach (@doc_features) {
if ($doc_has_feature{$_}) {
print "GlobalOptionFilter=".$doc_filters{$_}."\n"
More information about the sword-cvs
mailing list