Changeset 23824 for main/trunk/greenstone2/perllib/plugouts/BasePlugout.pm
- Timestamp:
- 2011-03-28T10:41:58+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugouts/BasePlugout.pm
r23387 r23824 368 368 my ($handle,$docroot,$nondoctype) = @_; 369 369 370 print $handle '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . "\n"; 370 371 #print $handle '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . "\n"; 372 373 #For Dspace must be UTF in lower case 374 print $handle '<?xml version="1.0" encoding="utf-8" standalone="no"?>' . "\n"; 371 375 372 376 if (!defined $nondoctype){ … … 386 390 print $handle "</$docroot>\n" if defined $docroot; 387 391 } 392 393 394 sub output_general_xml_header 395 { 396 my $self = shift (@_); 397 my ($handle,$docroot,$opt_attributes,$opt_dtd, $opt_doctype) = @_; 398 399 print $handle '<?xml version="1.0" encoding="utf-8" standalone="no"?>' . "\n"; 400 401 if (defined $opt_dtd) { 402 my $doctype = (defined $opt_doctype) ? $opt_doctype : $docroot; 403 print $handle "<!DOCTYPE $doctype SYSTEM \"$opt_dtd\">\n"; 404 } 405 406 if (defined $docroot) { 407 my $full_docroot = $docroot; 408 if (defined $opt_attributes) { 409 $full_docroot .= " $opt_attributes"; 410 } 411 412 print $handle "<$full_docroot>\n" 413 } 414 } 415 416 sub output_general_xml_footer 417 { 418 output_xml_footer(@_); 419 } 420 388 421 389 422 sub process {
Note:
See TracChangeset
for help on using the changeset viewer.