Author: mcbrown
Date: 2007-11-27 11:29:48 +0100 (Tue, 27 Nov 2007)
New Revision: 8905
Log:
Updating arby to write back to a single file instead of multiple ones. This introduces
some limitations in terms of entity expansion, but simplifies the generation and
dependencies for current documents
Modified:
trunk/tools/MySQL/XML/Arbitrary.pm
Modified: trunk/tools/MySQL/XML/Arbitrary.pm
===================================================================
--- trunk/tools/MySQL/XML/Arbitrary.pm 2007-11-27 08:23:44 UTC (rev 8904)
+++ trunk/tools/MySQL/XML/Arbitrary.pm 2007-11-27 10:29:48 UTC (rev 8905)
Changed blocks: 1, Lines Added: 18, Lines Deleted: 11; 1594 bytes
@@ -576,19 +576,26 @@
}
my $inplacefile = join("\n",@{$spec->{lines}});
-
- my $fh = new IO::File($destfile,'w') or die "Couldn't open the section file
($destfile: $!)\n";
- binmode($fh,':utf8');
- print $fh (inplace_parse($inplacefile,
- {srcdir => $self->{srcdir},
- infile => $destfile,
- }));
- $fh->close();
- $self->print_error("********\n********\n*******\n\n");
+ $inplacefile =~ s/<\?xml.*?]>//ms;
- return sprintf('<xi:include href="%s"
xmlns:xi="http://www.w3.org/2001/XInclude"/>',
- $destfile);
+ return(inplace_parse($inplacefile,
+ {srcdir => $self->{srcdir},
+ infile => '',
+ }));
+
+# my $fh = new IO::File($destfile,'w') or die "Couldn't open the section file
($destfile: $!)\n";
+# binmode($fh,':utf8');
+# print $fh (inplace_parse($inplacefile,
+# {srcdir => $self->{srcdir},
+# infile => $destfile,
+# }));
+# $fh->close();
+#
+# $self->print_error("********\n********\n*******\n\n");
+#
+# return sprintf('<xi:include href="%s"
xmlns:xi="http://www.w3.org/2001/XInclude"/>',
+# $destfile);
}
1;
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r8905 - trunk/tools/MySQL/XML | mcbrown | 27 Nov |