ncbi / DtdAnalyzer

Other
34 stars 11 forks source link

DtdAnalyzer-0.5/dtd2xml2json: Need to tell me what to do with element #56

Closed pdc-kaminaga closed 7 years ago

pdc-kaminaga commented 7 years ago

I tried DtdAnalyzer-0.5/dtd2xml2json. (a) pattern succeeded. But (b) pattern output "Need to tell me what to do with element" message. Please tell me how to solve the problem.

(input .dtd file)  <!ELEMENT conference (text | (conftitle,confplace)) > ・ ・  <!ELEMENT conftitle (#PCDATA) > --- (a) ・ ・  <!ELEMENT confplace (#PCDATA | address)* > --- (b)

(output .xsl file)

・ ・ (console) Need to tell me what to do with element confplace
Klortho commented 7 years ago

This tool doesn't provide a complete out-of-the-box solution. It automatically generates XSLT templates for elements that have a very simple content model, but for anything complex, you have to decide what the JSON will look like, and write your own template.

So, because confplace has mixed content, it falls into this category.

pdc-kaminaga commented 7 years ago

I will try to create a template. Thank you.