-
Notifications
You must be signed in to change notification settings - Fork 0
/
alto_to_hocr.sef.json
1 lines (1 loc) · 51.1 KB
/
alto_to_hocr.sef.json
1
{"N":"package","version":"20","packageVersion":"1","saxonVersion":"SaxonJS 2.6","target":"JS","targetVersion":"2","name":"TOP-LEVEL","relocatable":"true","buildDateTime":"2023-11-27T09:31:03.742-05:00","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","C":[{"N":"co","id":"0","uniform":"true","binds":"1","C":[{"N":"template","flags":"os","module":"alto__hocr.xsl","slots":"200","name":"Q{}style_and_content","line":"165","expand-text":"false","sType":"* ","C":[{"N":"choose","sType":"* ","type":"item()*","role":"body","line":"167","C":[{"N":"gc","op":"=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"168","C":[{"N":"attVal","name":"Q{}STYLE"},{"N":"str","val":"bold"}]},{"N":"elem","name":"strong","sType":"1NE nQ{http://www.w3.org/1999/xhtml}strong ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"169","C":[{"N":"callT","bSlot":"0","sType":"* ","name":"Q{}content","line":"170"}]},{"N":"gc","op":"=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"173","C":[{"N":"attVal","name":"Q{}STYLE"},{"N":"str","val":"italics"}]},{"N":"elem","name":"em","sType":"1NE nQ{http://www.w3.org/1999/xhtml}em ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"174","C":[{"N":"callT","bSlot":"0","sType":"* ","name":"Q{}content","line":"175"}]},{"N":"gc","op":"=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"178","C":[{"N":"attVal","name":"Q{}STYLE"},{"N":"str","val":"subscript"}]},{"N":"elem","name":"sub","sType":"1NE nQ{http://www.w3.org/1999/xhtml}sub ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"179","C":[{"N":"callT","bSlot":"0","sType":"* ","name":"Q{}content","line":"180"}]},{"N":"gc","op":"=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"183","C":[{"N":"attVal","name":"Q{}STYLE"},{"N":"str","val":"superscript"}]},{"N":"elem","name":"sup","sType":"1NE nQ{http://www.w3.org/1999/xhtml}sup ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"184","C":[{"N":"callT","bSlot":"0","sType":"* ","name":"Q{}content","line":"185"}]},{"N":"gc","op":"=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"188","C":[{"N":"attVal","name":"Q{}STYLE"},{"N":"str","val":"underline"}]},{"N":"elem","name":"u","sType":"1NE nQ{http://www.w3.org/1999/xhtml}u ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"189","C":[{"N":"callT","bSlot":"0","sType":"* ","name":"Q{}content","line":"190"}]},{"N":"gc","op":"=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"193","C":[{"N":"attVal","name":"Q{}STYLE"},{"N":"str","val":"smallcaps"}]},{"N":"elem","name":"span","sType":"1NE nQ{http://www.w3.org/1999/xhtml}span ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"194","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"small-caps"}]},{"N":"callT","bSlot":"0","sType":"* ","name":"Q{}content","line":"195"}]}]},{"N":"true"},{"N":"callT","bSlot":"0","sType":"* ","name":"Q{}content","line":"199"}]}]}]},{"N":"co","binds":"","id":"1","uniform":"true","C":[{"N":"template","flags":"os","module":"alto__hocr.xsl","slots":"200","name":"Q{}content","line":"206","expand-text":"false","sType":"* ","C":[{"N":"choose","sType":"* ","type":"item()*","role":"body","line":"208","C":[{"N":"gc","op":"!=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"209","C":[{"N":"attVal","name":"Q{}CONTENT"},{"N":"str","val":""}]},{"N":"sequence","sType":"* ","C":[{"N":"valueOf","flags":"l","sType":"1NT ","line":"210","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"docOrder","sType":"*NA nQ{}CONTENT","role":"select","line":"210","C":[{"N":"slash","role":"select","simple":"1","sType":"*NA nQ{}CONTENT","C":[{"N":"treat","as":"N","diag":"13|0|XTTE0510|","C":[{"N":"dot"}]},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}CONTENT","sType":"*NA nQ{}CONTENT","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "}]}]}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"choose","sType":"? ","line":"211","C":[{"N":"compareToString","op":"eq","val":"HYP","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"211","C":[{"N":"fn","name":"local-name","C":[{"N":"first","C":[{"N":"axis","name":"following-sibling","nodeTest":"*NE"}]}]}]},{"N":"valueOf","sType":"1NT ","C":[{"N":"str","sType":"1AS ","val":"-"}]},{"N":"true"},{"N":"empty","sType":"0 "}]}]},{"N":"true"},{"N":"valueOf","sType":"1NT ","C":[{"N":"str","sType":"1AS ","val":"\n "}]}]}]}]},{"N":"co","binds":"","id":"2","vis":"PRIVATE","ex:uniform":"true","C":[{"N":"function","name":"Q{http://myfunctions}getBox","as":"* ","slots":"205","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","module":"alto__hocr.xsl","flags":"muu","sig":"1F r[* ] a[* ,* ,* ,* ,* ] ","sType":"1F r[* ] a[* ,* ,* ,* ,* ] ","line":"225","C":[{"N":"arg","slot":"0","name":"Q{}HEIGHT","as":"* ","sType":"* "},{"N":"arg","slot":"1","name":"Q{}WIDTH","as":"* ","sType":"* "},{"N":"arg","slot":"2","name":"Q{}VPOS","as":"* ","sType":"* "},{"N":"arg","slot":"3","name":"Q{}HPOS","as":"* ","sType":"* "},{"N":"arg","slot":"4","name":"Q{}WC","as":"* ","sType":"* "},{"N":"let","var":"Q{}right","slot":"5","sType":"*NT ","line":"232","role":"body","C":[{"N":"arith","op":"+","calc":"d+d","sType":"1AO","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"232","C":[{"N":"fn","name":"number","C":[{"N":"check","card":"?","diag":"0|0||number","C":[{"N":"data","diag":"0|0||number","C":[{"N":"varRef","name":"Q{}WIDTH","slot":"1"}]}]}]},{"N":"fn","name":"number","C":[{"N":"check","card":"?","diag":"0|0||number","C":[{"N":"data","diag":"0|0||number","C":[{"N":"varRef","name":"Q{}HPOS","slot":"3"}]}]}]}]},{"N":"let","var":"Q{}bottom","slot":"6","sType":"*NT ","line":"233","C":[{"N":"arith","op":"+","calc":"d+d","sType":"1AO","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"233","C":[{"N":"fn","name":"number","C":[{"N":"check","card":"?","diag":"0|0||number","C":[{"N":"data","diag":"0|0||number","C":[{"N":"varRef","name":"Q{}HEIGHT","slot":"0"}]}]}]},{"N":"fn","name":"number","C":[{"N":"check","card":"?","diag":"0|0||number","C":[{"N":"data","diag":"0|0||number","C":[{"N":"varRef","name":"Q{}VPOS","slot":"2"}]}]}]}]},{"N":"choose","sType":"*NT ","type":"item()*","line":"235","C":[{"N":"gc","op":"!=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"236","C":[{"N":"data","diag":"1|0||gc","C":[{"N":"varRef","name":"Q{}WC","slot":"4"}]},{"N":"str","val":""}]},{"N":"let","var":"Q{}wconf","slot":"7","sType":"*NT ","line":"237","C":[{"N":"arith","op":"*","calc":"d*d","sType":"1AO","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"237","C":[{"N":"fn","name":"number","C":[{"N":"check","card":"?","diag":"0|0||number","C":[{"N":"data","diag":"0|0||number","C":[{"N":"varRef","name":"Q{}WC","slot":"4"}]}]}]},{"N":"convert","to":"AO","flags":"","C":[{"N":"int","val":"100"}]}]},{"N":"let","var":"Q{}wconfString","slot":"8","sType":"*NT ","line":"238","C":[{"N":"fn","name":"concat","sType":"1AS","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"238","C":[{"N":"str","val":"; x_wconf "},{"N":"fn","name":"string","C":[{"N":"check","card":"?","diag":"0|0||string","C":[{"N":"varRef","name":"Q{}wconf","slot":"7"}]}]}]},{"N":"valueOf","flags":"l","sType":"1NT ","line":"239","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"fn","name":"string-join","sType":"1AS","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"239","C":[{"N":"data","diag":"0|0||string-join","C":[{"N":"sequence","C":[{"N":"str","val":"bbox"},{"N":"varRef","name":"Q{}HPOS","slot":"3"},{"N":"varRef","name":"Q{}VPOS","slot":"2"},{"N":"fn","name":"string","C":[{"N":"check","card":"?","diag":"0|0||string","C":[{"N":"varRef","name":"Q{}right","slot":"5"}]}]},{"N":"fn","name":"string","C":[{"N":"check","card":"?","diag":"0|0||string","C":[{"N":"varRef","name":"Q{}bottom","slot":"6"}]}]},{"N":"varRef","name":"Q{}wconfString","slot":"8"}]}]},{"N":"str","val":" "}]},{"N":"str","sType":"1AS ","val":" "}]}]}]}]},{"N":"true"},{"N":"valueOf","flags":"l","sType":"1NT ","line":"243","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"fn","name":"string-join","sType":"1AS","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"243","C":[{"N":"data","diag":"0|0||string-join","C":[{"N":"sequence","C":[{"N":"str","val":"bbox"},{"N":"varRef","name":"Q{}HPOS","slot":"3"},{"N":"varRef","name":"Q{}VPOS","slot":"2"},{"N":"fn","name":"string","C":[{"N":"check","card":"?","diag":"0|0||string","C":[{"N":"varRef","name":"Q{}right","slot":"5"}]}]},{"N":"fn","name":"string","C":[{"N":"check","card":"?","diag":"0|0||string","C":[{"N":"varRef","name":"Q{}bottom","slot":"6"}]}]}]}]},{"N":"str","val":" "}]},{"N":"str","sType":"1AS ","val":" "}]}]}]}]}]}]}]},{"N":"co","binds":"","id":"3","vis":"PRIVATE","ex:uniform":"true","C":[{"N":"function","name":"Q{http://myfunctions}getId","as":"* ","slots":"203","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","module":"alto__hocr.xsl","flags":"muu","sig":"1F r[* ] a[* ,* ,* ] ","sType":"1F r[* ] a[* ,* ,* ] ","line":"250","C":[{"N":"arg","slot":"0","name":"Q{}ID","as":"* ","sType":"* "},{"N":"arg","slot":"1","name":"Q{}nodetype","as":"* ","sType":"* "},{"N":"arg","slot":"2","name":"Q{}node","as":"* ","sType":"* "},{"N":"choose","sType":"?NT ","type":"item()*","role":"body","line":"255","C":[{"N":"gc","op":"!=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"256","C":[{"N":"data","diag":"1|0||gc","C":[{"N":"varRef","name":"Q{}ID","slot":"0"}]},{"N":"str","val":""}]},{"N":"valueOf","flags":"l","sType":"1NT ","line":"257","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"varRef","sType":"*","name":"Q{}ID","slot":"0","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"257"}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"true"},{"N":"valueOf","flags":"l","sType":"1NT ","line":"261","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"fn","name":"concat","sType":"1AS","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"261","C":[{"N":"check","card":"?","diag":"0|0||concat","C":[{"N":"data","diag":"0|0||concat","C":[{"N":"varRef","name":"Q{}nodetype","slot":"1"}]}]},{"N":"str","val":"_"},{"N":"fn","name":"generate-id","C":[{"N":"treat","as":"N","diag":"0|0||generate-id","C":[{"N":"check","card":"?","diag":"0|0||generate-id","C":[{"N":"varRef","name":"Q{}node","slot":"2"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]}]}]}]},{"N":"co","binds":"","id":"4","vis":"PUBLIC","ex:uniform":"true","C":[{"N":"globalParam","name":"Q{}language","sType":"* ","slots":"200","module":"alto__hocr.xsl","as":"","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","C":[{"N":"str","val":"unknown","sType":"1AS","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"19"}]}]},{"N":"co","id":"5","binds":"3 2 0 5 4","C":[{"N":"mode","onNo":"TC","flags":"","patternSlots":"0","prec":"","C":[{"N":"templateRule","rank":"0","prec":"0","seq":"3","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"56","module":"alto__hocr.xsl","expand-text":"false","match":"*:OCRProcessing/*:ocrProcessingStep|*:Processing/*:processingStep","prio":"0.5","matches":"NE n*:ocrProcessingStep","C":[{"N":"p.withUpper","role":"match","axis":"parent","sType":"1NE n*:ocrProcessingStep","C":[{"N":"p.nodeTest","test":"NE n*:ocrProcessingStep"},{"N":"p.nodeTest","test":"NE n*:OCRProcessing"}]},{"N":"elem","name":"meta","sType":"1NE nQ{http://www.w3.org/1999/xhtml}meta ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"57","C":[{"N":"sequence","sType":"*NA ","C":[{"N":"att","name":"name","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr-system"}]},{"N":"att","name":"content","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"concat","sType":"1AS ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*NE n*:softwareName","C":[{"N":"docOrder","sType":"*NE n*:softwareName","line":"57","C":[{"N":"slash","op":"/","sType":"*NE n*:softwareName","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:processingSoftware"},{"N":"axis","name":"child","nodeTest":"*NE n*:softwareName"}]}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]},{"N":"str","sType":"1AS ","val":" "},{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*NE n*:softwareVersion","C":[{"N":"docOrder","sType":"*NE n*:softwareVersion","line":"57","C":[{"N":"slash","op":"/","sType":"*NE n*:softwareVersion","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:processingSoftware"},{"N":"axis","name":"child","nodeTest":"*NE n*:softwareVersion"}]}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]},{"N":"str","sType":"1AS ","val":""}]}]}]}]}]},{"N":"templateRule","rank":"1","prec":"0","seq":"3","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"56","module":"alto__hocr.xsl","expand-text":"false","match":"*:OCRProcessing/*:ocrProcessingStep|*:Processing/*:processingStep","prio":"0.5","matches":"NE n*:processingStep","C":[{"N":"p.withUpper","role":"match","axis":"parent","sType":"1NE n*:processingStep","C":[{"N":"p.nodeTest","test":"NE n*:processingStep"},{"N":"p.nodeTest","test":"NE n*:Processing"}]},{"N":"elem","name":"meta","sType":"1NE nQ{http://www.w3.org/1999/xhtml}meta ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"57","C":[{"N":"sequence","sType":"*NA ","C":[{"N":"att","name":"name","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr-system"}]},{"N":"att","name":"content","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"concat","sType":"1AS ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*NE n*:softwareName","C":[{"N":"docOrder","sType":"*NE n*:softwareName","line":"57","C":[{"N":"slash","op":"/","sType":"*NE n*:softwareName","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:processingSoftware"},{"N":"axis","name":"child","nodeTest":"*NE n*:softwareName"}]}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]},{"N":"str","sType":"1AS ","val":" "},{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*NE n*:softwareVersion","C":[{"N":"docOrder","sType":"*NE n*:softwareVersion","line":"57","C":[{"N":"slash","op":"/","sType":"*NE n*:softwareVersion","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:processingSoftware"},{"N":"axis","name":"child","nodeTest":"*NE n*:softwareVersion"}]}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]},{"N":"str","sType":"1AS ","val":""}]}]}]}]}]},{"N":"templateRule","rank":"2","prec":"0","seq":"13","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"142","module":"alto__hocr.xsl","expand-text":"false","match":"*:String","prio":"-0.25","matches":"NE n*:String","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:String","sType":"1NE n*:String","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"let","var":"Q{}textstyleid","slot":"0","sType":"*NE ","line":"144","role":"action","C":[{"N":"doc","sType":"1ND ","base":"https://github.com/filak/hOCR-to-ALTO/blob/master/alto__hocr.xsl","role":"select","C":[{"N":"valueOf","flags":"l","sType":"1NT ","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"axis","sType":"*NA nQ{}STYLEREFS","name":"attribute","nodeTest":"*NA nQ{}STYLEREFS","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"3"}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]}]},{"N":"let","var":"Q{}fontfamily","slot":"1","sType":"*NE ","line":"145","C":[{"N":"doc","sType":"1ND ","base":"https://github.com/filak/hOCR-to-ALTO/blob/master/alto__hocr.xsl","role":"select","C":[{"N":"valueOf","flags":"l","sType":"1NT ","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"docOrder","sType":"*NA nQ{}FONTFAMILY","role":"select","line":"5","C":[{"N":"docOrder","sType":"*NA nQ{}FONTFAMILY","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"root"},{"N":"axis","name":"descendant","nodeTest":"*NE n*:alto"}]},{"N":"axis","name":"child","nodeTest":"*NE n*:Styles"}]},{"N":"filter","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:TextStyle"},{"N":"gc","op":"=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","C":[{"N":"attVal","name":"Q{}ID"},{"N":"data","diag":"1|1||gc","C":[{"N":"varRef","name":"Q{}textstyleid","slot":"0"}]}]}]}]},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}FONTFAMILY"}]}]}]}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]}]},{"N":"let","var":"Q{}fontsize","slot":"2","sType":"*NE ","line":"146","C":[{"N":"doc","sType":"1ND ","base":"https://github.com/filak/hOCR-to-ALTO/blob/master/alto__hocr.xsl","role":"select","C":[{"N":"valueOf","flags":"l","sType":"1NT ","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"docOrder","sType":"*NA nQ{}FONTSIZE","role":"select","line":"7","C":[{"N":"docOrder","sType":"*NA nQ{}FONTSIZE","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"root"},{"N":"axis","name":"descendant","nodeTest":"*NE n*:alto"}]},{"N":"axis","name":"child","nodeTest":"*NE n*:Styles"}]},{"N":"filter","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:TextStyle"},{"N":"gc","op":"=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","C":[{"N":"attVal","name":"Q{}ID"},{"N":"data","diag":"1|1||gc","C":[{"N":"varRef","name":"Q{}textstyleid","slot":"0"}]}]}]}]},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}FONTSIZE"}]}]}]}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]}]},{"N":"choose","sType":"?NE ","type":"item()*","line":"148","C":[{"N":"gc","op":"!=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"149","C":[{"N":"data","diag":"1|0||gc","C":[{"N":"varRef","name":"Q{}textstyleid","slot":"0"}]},{"N":"str","val":""}]},{"N":"elem","name":"span","sType":"1NE nQ{http://www.w3.org/1999/xhtml}span ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"150","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocrx_word"}]},{"N":"att","name":"id","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getId","coId":"3","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"150","bSlot":"0","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}ID"},{"N":"str","val":"word"},{"N":"dot"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"title","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getBox","coId":"2","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"150","bSlot":"1","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HEIGHT"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WIDTH"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}VPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WC"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"x_font","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"varRef","name":"Q{}fontfamily","slot":"1","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"150"}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"x_fsize","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"varRef","name":"Q{}fontsize","slot":"2","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"150"}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"callT","bSlot":"2","sType":"* ","name":"Q{}style_and_content","line":"151"}]}]},{"N":"true"},{"N":"elem","name":"span","sType":"1NE nQ{http://www.w3.org/1999/xhtml}span ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"156","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocrx_word"}]},{"N":"att","name":"id","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getId","coId":"3","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"156","bSlot":"0","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}ID"},{"N":"str","val":"word"},{"N":"dot"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"title","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getBox","coId":"2","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"156","bSlot":"1","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HEIGHT"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WIDTH"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}VPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WC"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"callT","bSlot":"2","sType":"* ","name":"Q{}style_and_content","line":"157"}]}]}]}]}]}]}]},{"N":"templateRule","rank":"3","prec":"0","seq":"12","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"135","module":"alto__hocr.xsl","expand-text":"false","match":"*:TextLine","prio":"-0.25","matches":"NE n*:TextLine","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:TextLine","sType":"1NE n*:TextLine","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"elem","name":"span","sType":"1NE nQ{http://www.w3.org/1999/xhtml}span ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"136","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr_line"}]},{"N":"att","name":"id","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getId","coId":"3","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"136","bSlot":"0","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}ID"},{"N":"str","val":"line"},{"N":"dot"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"title","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getBox","coId":"2","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"136","bSlot":"1","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HEIGHT"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WIDTH"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}VPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WC"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"applyT","sType":"* ","line":"137","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:String","sType":"*NE n*:String","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"137"}]}]}]}]},{"N":"templateRule","rank":"4","prec":"0","seq":"11","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"111","module":"alto__hocr.xsl","expand-text":"false","match":"*:TextBlock","prio":"-0.25","matches":"NE n*:TextBlock","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:TextBlock","sType":"1NE n*:TextBlock","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"elem","name":"p","sType":"1NE nQ{http://www.w3.org/1999/xhtml}p ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"112","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr_par"}]},{"N":"att","name":"dir","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ltr"}]},{"N":"att","name":"id","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getId","coId":"3","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"112","bSlot":"0","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}ID"},{"N":"str","val":"par"},{"N":"dot"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"title","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getBox","coId":"2","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"112","bSlot":"1","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HEIGHT"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WIDTH"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}VPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WC"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"let","var":"Q{}lang","slot":"0","sType":"* ","line":"114","C":[{"N":"docOrder","sType":"*NA u[NA nQ{}language,NA nQ{}LANG]","role":"select","line":"114","C":[{"N":"union","op":"|","sType":"*NA u[NA nQ{}language,NA nQ{}LANG]","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}language"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}LANG"}]}]},{"N":"sequence","sType":"* ","C":[{"N":"choose","sType":"? ","type":"item()*","line":"116","C":[{"N":"gc","op":"!=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"117","C":[{"N":"data","diag":"1|0||gc","C":[{"N":"varRef","name":"Q{}lang","slot":"0"}]},{"N":"str","val":""}]},{"N":"att","name":"lang","sType":"1NA ","line":"118","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"valueOf","sType":"1NT ","flags":"l","line":"119","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"varRef","sType":"*","name":"Q{}lang","slot":"0","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"119"}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":""}]}]},{"N":"gc","op":"!=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"123","C":[{"N":"data","diag":"1|0||gc","C":[{"N":"gVarRef","name":"Q{}language","bSlot":"4"}]},{"N":"str","val":"unknown"}]},{"N":"att","name":"lang","sType":"1NA ","line":"124","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"valueOf","sType":"1NT ","flags":"l","line":"125","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"gVarRef","sType":"* ","name":"Q{}language","bSlot":"4","role":"select","line":"125"}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":""}]}]},{"N":"true"},{"N":"empty","sType":"0 "}]},{"N":"applyT","sType":"* ","line":"130","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:TextLine","sType":"*NE n*:TextLine","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"130"}]}]}]}]}]}]},{"N":"templateRule","rank":"5","prec":"0","seq":"10","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"104","module":"alto__hocr.xsl","expand-text":"false","match":"*:ComposedBlock","prio":"-0.25","matches":"NE n*:ComposedBlock","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:ComposedBlock","sType":"1NE n*:ComposedBlock","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"elem","name":"div","sType":"1NE nQ{http://www.w3.org/1999/xhtml}div ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"105","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr_carea"}]},{"N":"att","name":"id","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getId","coId":"3","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"105","bSlot":"0","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}ID"},{"N":"str","val":"block"},{"N":"dot"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"title","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getBox","coId":"2","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"105","bSlot":"1","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HEIGHT"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WIDTH"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}VPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WC"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"applyT","sType":"* ","line":"106","mode":"#unnamed","bSlot":"3","C":[{"N":"docOrder","sType":"*NE u[NE n*:TextBlock,NE n*:ComposedBlock]","role":"select","line":"106","C":[{"N":"union","op":"|","sType":"*NE u[NE n*:TextBlock,NE n*:ComposedBlock]","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:TextBlock"},{"N":"axis","name":"child","nodeTest":"*NE n*:ComposedBlock"}]}]}]}]}]}]},{"N":"templateRule","rank":"6","prec":"0","seq":"9","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"96","module":"alto__hocr.xsl","expand-text":"false","match":"*:BottomMargin","prio":"-0.25","matches":"NE n*:BottomMargin","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:BottomMargin","sType":"1NE n*:BottomMargin","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"elem","name":"div","sType":"1NE nQ{http://www.w3.org/1999/xhtml}div ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"97","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr_footer"}]},{"N":"att","name":"id","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getId","coId":"3","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"97","bSlot":"0","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}ID"},{"N":"str","val":"block"},{"N":"dot"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"title","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getBox","coId":"2","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"97","bSlot":"1","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HEIGHT"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WIDTH"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}VPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WC"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"applyT","sType":"* ","line":"98","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:ComposedBlock","sType":"*NE n*:ComposedBlock","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"98"}]},{"N":"applyT","sType":"* ","line":"99","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:TextBlock","sType":"*NE n*:TextBlock","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"99"}]}]}]}]},{"N":"templateRule","rank":"7","prec":"0","seq":"8","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"90","module":"alto__hocr.xsl","expand-text":"false","match":"*:PrintSpace","prio":"-0.25","matches":"NE n*:PrintSpace","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:PrintSpace","sType":"1NE n*:PrintSpace","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"sequence","role":"action","sType":"* ","C":[{"N":"applyT","sType":"* ","line":"91","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:ComposedBlock","sType":"*NE n*:ComposedBlock","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"91"}]},{"N":"applyT","sType":"* ","line":"92","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:TextBlock","sType":"*NE n*:TextBlock","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"92"}]}]}]},{"N":"templateRule","rank":"8","prec":"0","seq":"7","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"82","module":"alto__hocr.xsl","expand-text":"false","match":"*:TopMargin","prio":"-0.25","matches":"NE n*:TopMargin","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:TopMargin","sType":"1NE n*:TopMargin","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"elem","name":"div","sType":"1NE nQ{http://www.w3.org/1999/xhtml}div ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"83","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr_header"}]},{"N":"att","name":"id","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getId","coId":"3","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"83","bSlot":"0","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}ID"},{"N":"str","val":"block"},{"N":"dot"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"title","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getBox","coId":"2","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"83","bSlot":"1","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HEIGHT"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WIDTH"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}VPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HPOS"},{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WC"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"applyT","sType":"* ","line":"84","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:ComposedBlock","sType":"*NE n*:ComposedBlock","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"84"}]},{"N":"applyT","sType":"* ","line":"85","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:TextBlock","sType":"*NE n*:TextBlock","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"85"}]}]}]}]},{"N":"templateRule","rank":"9","prec":"0","seq":"6","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"72","module":"alto__hocr.xsl","expand-text":"false","match":"*:Page","prio":"-0.25","matches":"NE n*:Page","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:Page","sType":"1NE n*:Page","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"let","var":"Q{}fname","slot":"0","sType":"*NE ","line":"73","role":"action","C":[{"N":"doc","sType":"1ND ","base":"https://github.com/filak/hOCR-to-ALTO/blob/master/alto__hocr.xsl","role":"select","C":[{"N":"valueOf","flags":"l","sType":"1NT ","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"docOrder","sType":"*NE n*:fileName","role":"select","line":"3","C":[{"N":"docOrder","sType":"*NE n*:fileName","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"slash","op":"/","C":[{"N":"root"},{"N":"axis","name":"descendant","nodeTest":"*NE n*:alto"}]},{"N":"axis","name":"child","nodeTest":"*NE n*:Description"}]},{"N":"axis","name":"child","nodeTest":"*NE n*:sourceImageInformation"}]},{"N":"axis","name":"child","nodeTest":"*NE n*:fileName"}]}]}]}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]}]},{"N":"elem","name":"div","sType":"1NE nQ{http://www.w3.org/1999/xhtml}div ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"74","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"class","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr_page"}]},{"N":"att","name":"id","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"ufCall","name":"Q{http://myfunctions}getId","coId":"3","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"74","bSlot":"0","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}ID"},{"N":"str","val":"page"},{"N":"dot"}]}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"title","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"concat","sType":"1AS ","C":[{"N":"str","sType":"1AS ","val":"image "},{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*","C":[{"N":"varRef","name":"Q{}fname","slot":"0","sType":"*","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"74"}]}]}]},{"N":"str","sType":"1AS ","val":" "}]},{"N":"str","sType":"1AS ","val":"; bbox 0 0 "},{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*NA nQ{}WIDTH","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}WIDTH","sType":"*NA nQ{}WIDTH","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"74"}]}]}]},{"N":"str","sType":"1AS ","val":" "}]},{"N":"str","sType":"1AS ","val":" "},{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"*NA nQ{}HEIGHT","C":[{"N":"axis","name":"attribute","nodeTest":"*NA nQ{}HEIGHT","sType":"*NA nQ{}HEIGHT","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"74"}]}]}]},{"N":"str","sType":"1AS ","val":" "}]},{"N":"str","sType":"1AS ","val":"; ppageno 0"},{"N":"str","sType":"1AS ","val":""}]}]},{"N":"applyT","sType":"* ","line":"75","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:TopMargin","sType":"*NE n*:TopMargin","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"75"}]},{"N":"applyT","sType":"* ","line":"76","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:PrintSpace","sType":"*NE n*:PrintSpace","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"76"}]},{"N":"applyT","sType":"* ","line":"77","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:BottomMargin","sType":"*NE n*:BottomMargin","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"77"}]}]}]}]}]},{"N":"templateRule","rank":"10","prec":"0","seq":"5","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"65","module":"alto__hocr.xsl","expand-text":"false","match":"*:Layout","prio":"-0.25","matches":"NE n*:Layout","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:Layout","sType":"1NE n*:Layout","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"elem","name":"body","sType":"1NE nQ{http://www.w3.org/1999/xhtml}body ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"66","C":[{"N":"applyT","sType":"* ","line":"67","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:Page","sType":"*NE n*:Page","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"67"}]}]}]},{"N":"templateRule","rank":"11","prec":"0","seq":"4","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"61","module":"alto__hocr.xsl","expand-text":"false","match":"*:Styles","prio":"-0.25","matches":"NE n*:Styles","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:Styles","sType":"1NE n*:Styles","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"empty","sType":"0 ","role":"action"}]},{"N":"templateRule","rank":"12","prec":"0","seq":"2","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"51","module":"alto__hocr.xsl","expand-text":"false","match":"*:sourceImageInformation","prio":"-0.25","matches":"NE n*:sourceImageInformation","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:sourceImageInformation","sType":"1NE n*:sourceImageInformation","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"valueOf","flags":"l","sType":"1NT ","role":"action","line":"52","C":[{"N":"fn","name":"string-join","role":"select","C":[{"N":"forEach","sType":"*AS ","C":[{"N":"data","sType":"*A ","C":[{"N":"mergeAdj","C":[{"N":"axis","sType":"*NE n*:fileName","name":"child","nodeTest":"*NE n*:fileName","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"52"}]}]},{"N":"fn","name":"string","sType":"1AS ","C":[{"N":"dot"}]}]},{"N":"str","sType":"1AS ","val":" "}]}]}]},{"N":"templateRule","rank":"13","prec":"0","seq":"1","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"41","module":"alto__hocr.xsl","expand-text":"false","match":"*:Description","prio":"-0.25","matches":"NE n*:Description","C":[{"N":"p.nodeTest","role":"match","test":"NE n*:Description","sType":"1NE n*:Description","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"elem","name":"head","sType":"1NE nQ{http://www.w3.org/1999/xhtml}head ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","role":"action","line":"42","C":[{"N":"sequence","sType":"* ","C":[{"N":"elem","name":"title","sType":"1NE nQ{http://www.w3.org/1999/xhtml}title ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"43","C":[{"N":"sequence","sType":"* ","C":[{"N":"valueOf","sType":"1NT ","C":[{"N":"str","sType":"1AS ","val":"Image: "}]},{"N":"applyT","sType":"* ","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:sourceImageInformation","sType":"*NE n*:sourceImageInformation","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"4"}]}]}]},{"N":"elem","name":"meta","sType":"1NE nQ{http://www.w3.org/1999/xhtml}meta ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"44","C":[{"N":"sequence","sType":"*NA ","C":[{"N":"att","name":"http-equiv","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"Content-Type"}]},{"N":"att","name":"content","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"text/html; charset=utf-8"}]}]}]},{"N":"applyT","sType":"* ","line":"45","mode":"#unnamed","bSlot":"3","C":[{"N":"docOrder","sType":"*NE n*:ocrProcessingStep","role":"select","line":"45","C":[{"N":"slash","op":"/","sType":"*NE n*:ocrProcessingStep","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","C":[{"N":"axis","name":"child","nodeTest":"*NE n*:OCRProcessing"},{"N":"axis","name":"child","nodeTest":"*NE n*:ocrProcessingStep"}]}]}]},{"N":"elem","name":"meta","sType":"1NE nQ{http://www.w3.org/1999/xhtml}meta ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"46","C":[{"N":"sequence","sType":"*NA ","C":[{"N":"att","name":"name","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr-capabilities"}]},{"N":"att","name":"content","nsuri":"","sType":"1NA ","C":[{"N":"str","sType":"1AS ","val":"ocr_page ocr_header ocr_footer ocr_carea ocr_par ocr_line ocrx_word"}]}]}]}]}]}]},{"N":"templateRule","rank":"14","prec":"0","seq":"0","ns":"xml=~ =http://www.w3.org/1999/xhtml xsi=~ xsl=~ mf=http://myfunctions","minImp":"0","flags":"s","slots":"200","line":"22","module":"alto__hocr.xsl","expand-text":"false","match":"/","prio":"-0.5","matches":"ND","C":[{"N":"p.nodeTest","role":"match","test":"ND","sType":"1ND","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions "},{"N":"choose","sType":"?NE ","type":"item()*","role":"action","line":"24","C":[{"N":"gc","op":"!=","comp":"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint","card":"1:1","sType":"1AB","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","line":"25","C":[{"N":"data","diag":"1|0||gc","C":[{"N":"gVarRef","name":"Q{}language","bSlot":"4"}]},{"N":"str","val":"unknown"}]},{"N":"elem","name":"html","sType":"1NE nQ{http://www.w3.org/1999/xhtml}html ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"26","C":[{"N":"sequence","sType":"* ","C":[{"N":"att","name":"xml:lang","nsuri":"http://www.w3.org/XML/1998/namespace","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"* ","C":[{"N":"gVarRef","name":"Q{}language","bSlot":"4","sType":"* ","line":"26"}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"att","name":"lang","nsuri":"","sType":"1NA ","C":[{"N":"fn","name":"string-join","sType":"1AS ","C":[{"N":"convert","type":"AS*","from":"AZ","to":"AS","C":[{"N":"data","C":[{"N":"mergeAdj","sType":"* ","C":[{"N":"gVarRef","name":"Q{}language","bSlot":"4","sType":"* ","line":"26"}]}]}]},{"N":"str","sType":"1AS ","val":" "}]}]},{"N":"applyT","sType":"* ","line":"27","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*N u[NT,NP,NC,NE]","sType":"*N u[NT,NP,NC,NE]","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"27"}]}]}]},{"N":"true"},{"N":"elem","name":"html","sType":"1NE nQ{http://www.w3.org/1999/xhtml}html ","nsuri":"http://www.w3.org/1999/xhtml","namespaces":"","line":"32","C":[{"N":"applyT","sType":"* ","line":"33","mode":"#unnamed","bSlot":"3","C":[{"N":"axis","name":"child","nodeTest":"*N u[NT,NP,NC,NE]","sType":"*N u[NT,NP,NC,NE]","ns":"= xml=~ fn=~ xsi=~ xsl=~ mf=http://myfunctions ","role":"select","line":"33"}]}]}]}]}]}]},{"N":"overridden"},{"N":"output","C":[{"N":"property","name":"Q{http://saxon.sf.net/}stylesheet-version","value":"20"},{"N":"property","name":"method","value":"xml"},{"N":"property","name":"encoding","value":"utf-8"},{"N":"property","name":"doctype-system","value":"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"},{"N":"property","name":"doctype-public","value":"-//W3C//DTD XHTML 1.0 Transitional//EN"},{"N":"property","name":"indent","value":"yes"}]},{"N":"decimalFormat"},{"N":"strip","C":[{"N":"s","test":"NE","prec":"0"}]}],"Σ":"364f4699"}