Print

Print


Hi, I am new to this list, and maybe this list is not the right forum. If so, my apologies.

I just started trying to use the marc2bibframe conversion scripts and I am trying to convert a batch of RDA records using the saxon xquery tool, however I keep running into bad records that cause run-time errors. I was wondering if anyone else has tried to do this and had the same problems, and if so, could give me a clue how to make these records process.

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=badrecord.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

Error on line 1047 of module.MARCXML-2-MADSRDF.xqy:
  XPTY0004: An empty sequence is not allowed as the @name attribute of element
  at marcxml2madsrdf:create-element() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#1117)
  at marcxml2madsrdf:create-elements-from-DFxx() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#498)
  at marcxml2madsrdf:marcxml2madsrdf() 
  at marcbib2bibframe:get-subject() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1358)
  at marcbib2bibframe:generate-work() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#372)
  at marcbib2bibframe:marcbib2bibframe() 
Query processing failed: Run-time errors were reported


Thanks!

Josh


Joshua Greben
Library Systems Programmer & Analyst
Stanford University Libraries                
(650) 714-1937