DTD validation?

wxdqz

New Member
Hi DTD experts,why does xalan parse the (short-cut) file shown below at end?in my opinion the tag <Exclusions> should not be allowed at thegiven position (because it should be INside <FunctionBlock>), but xalan reportsno parsing validation errors:"D:\MOSTFCatalogCodeGeneration>xalan\TestXSLT -in D:\MOSTFCatalogCodeGeneration\Config\systemDtdTest.xml-validate== Parsing D:\MOSTFCatalogCodeGeneration\Config\systemDtdTest.xml ==Parse of D:\MOSTFCatalogCodeGeneration\Config\systemDtdTest.xml took 0 milliseconds"did I oversee something or is xalan not validating properly?christofhere the contents of systemDtdTest.xml:"<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE system [<!ELEMENT system (FunctionBlock)+ ><!ELEMENT FunctionBlock (NotifiableProperties, Exclusions*) ><!ELEMENT NotifiableProperties (Property*) ><!ELEMENT Property EMPTY ><!ATTLIST Property Name CDATA #IMPLIED><!ELEMENT Exclusions (Function*) ><!ELEMENT Function (#PCDATA) >]><system><Exclusions><Function>GetInterface</Function></Exclusions><FunctionBlock><NotifiableProperties><Property Name="Mute"/></NotifiableProperties></FunctionBlock></system>"
 
Back
Top