ncbi / DtdAnalyzer

Other
34 stars 11 forks source link

dtdschematron.xsl generate attribute checks even when complete = no #40

Open demianhess opened 11 years ago

demianhess commented 11 years ago

I used dtdschematron.xsl and specific complete = no. The resulting output included DTD Attribute Checks.

It looks like the problem might be line 46, which look like this: <xsl:if test="$complete='yes' and attribute[attributeDeclaration[@mode='#REQUIRED']] or attribute[attributeDeclaration[@mode='#FIXED']] or attribute[attributeDeclaration[starts-with(@type, '(') and @mode!='#FIXED']]">

Should that have parentheses after the first "and"?: <xsl:if test="$complete='yes' and (attribute[attributeDeclaration[@mode='#REQUIRED']] or attribute[attributeDeclaration[@mode='#FIXED']] or attribute[attributeDeclaration[starts-with(@type, '(') and @mode!='#FIXED']])">