EPrints Technical Mailing List Archive

Message: #07896


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Insert an html to dom (HIERARCHY_REQUEST_ERR) in eprint_render

  • To: "EPrints.org Technical List" <eprints-tech@ecs.soton.ac.uk>
  • Subject: [EP-tech] Insert an html to dom (HIERARCHY_REQUEST_ERR) in eprint_render
  • From: Yuri <yurj@alfa.it>
  • Date: Wed, 26 Jun 2019 11:42:52 +0200

Hi!

 eprint_render here.

 I'm really bored of doing ->make_element ->appendChild to create an
html, so long and takes ages for a programmer (impossible for a
user/integrator). Is there another way? I've tried with

 my $citehtml = "<html here>";
 my $citexml = EPrints::XML::parse_string( undef, $citehtml );
 $citfrag->appendChild($citexml);

but it returns

appendChild: HIERARCHY_REQUEST_ERR

is there a way, for example to render something (xpage like) and insert
it in the dom?