#564 bug in convert tei to xhtml with <divGen />

GREEN
closed-fixed
None
5
2013-04-15
2013-04-15
javad
No

hello
I want to become xhtml tei document. (convert tei to xhtml)
But when the tag " divGen / " in the document I error is happening.
Why this error occurs? And how this error can be resolved?

Discussion

  • Can you tell us what the error is? and provide a test file which makes the error happen?

     
  • javad
    javad
    2013-04-15

    for example :
    <TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="d10e1">
    <teiHeader xml:id="d10e2">
    <fileDesc xml:id="d10e3">
    <titleStmt xml:id="d10e4">
    <br> <author xml:id="d10e6">javad</author><br> </titleStmt><br> <editionStmt xml:id="d10e8"><br> <edition xml:id="d10e9"><br> <date xml:id="d10e10">2013-04-10</date><br> </edition><br> </editionStmt><br> <publicationStmt xml:id="d10e12"><br> <p xml:id="d10e13">unknown</p><br> </publicationStmt><br> <sourceDesc xml:id="d10e15"><br> <p xml:id="d10e16">Converted from a Word document </p><br> </sourceDesc><br> </fileDesc><br> <encodingDesc xml:id="d10e18"><br> <appInfo xml:id="d10e19"><br> <application xml:id="d10e20" ident="TEI_fromDOCX" version="2.15.0"><br> <label xml:id="d10e21">DOCX to TEI</label><br> <tei:p xmlns:tei="http://www.tei-c.org/ns/1.0" xml:id="d10e23"><br> <tei:note xml:id="d10e24" type="DBPath">a8c47058-f692-4a26-8a9e-d096ad1d2601.xml</tei:note><br> <tei:note xml:id="d10e26" type="extension">xml</tei:note><br> <tei:note xml:id="d10e28" type="originalFileName">6c23933f-d050-46be-8531-3820b860571a.xml</tei:note><br> <tei:note xml:id="d10e30" type="MimeType">TEI</tei:note><br> <tei:note xml:id="d10e32" type="DocID">t_43206739-9e9c-4ae7-9801-842297393166</tei:note><br> </tei:p><br> </application><br> </appInfo><br> </encodingDesc><br> <revisionDesc xml:id="d10e34"><br> <change xml:id="d10e35"><br> <date xml:id="d10e36">$LastChangedDate: 2013-04-15T11:45:54Z$</date><br> <name xml:id="d10e38">nasirpour</name><br> </change><br> </revisionDesc><br> </teiHeader><br> <text xml:id="d10e40"><br> <body xml:id="d10e41"><br> <div xml:id="d10e42"><br> <head xml:id="d10e43"/><br> <divGen xml:id="d10e44" type="toc"/><br> <p xml:id="d10e45" rend="HTML Top of Form">Top of Form</p><br> </div><br> <div xml:id="Toc343424980"><br> <head xml:id="d10e48">test</head><br> <p xml:id="d10e50"><br> <hi xml:id="d10e51" rend="color(2E6089)">aaaaaaaaaaaaa</hi><br> </p><br> <div xml:id="Toc343424981"><br> <head xml:id="d10e54">‌one</head><br> <p xml:id="d10e56"><br> <hi xml:id="d10e57" rend="color(2E6089)">« ‌مصوب 1307.2.20 »</hi><br> </p><br> </div><br> </div><br> </body><br> </text><br> </TEI></p> <p>this is a document with <divGen /> and this document can not convert to xhtml.</p>

     
  • javad
    javad
    2013-04-15

    this is a test file

     
    Attachments
  • javad
    javad
    2013-04-15

    this is error :
    Exception while transforming node: Too many nested apply-templates calls. The stylesheet may be looping.

     
  • thank you. I do see the error now. I will have to think about that.

     
    • status: open --> closed-fixed
    • Group: RED --> GREEN
     
  • this is now fixed in the version in Subversion. The problem was caused by the empty <head> element.