Back Forum Reply New

does SWF 1.0.1 support DTD

Hi,

My environment is WSAD 5.1.2 (that means servlet 2.3, JSP 1.2, and jdk 1.3)... :-(

I'm trying to validate the SWF 1.0.1 snapshot in my environment with the birthdate example.

Look like for birthdate.xml is now in XML Schema:

lt;flow xmlns=quot;schema/webflowquot; xmlns:xsi=quot;2001/XMLSchema-instancequot; xsi:schemaLocation=quot;schema/webflow
schema/webflow/spring-webflow-1.0.xsdquot;gt;              
lt;start-state idref=quot;enterBirthdatequot; /gt;

lt;view-state id=quot;enterBirthdatequot; view=quot;birthdateFormquot;gt;
...

Used to be that the DTD defined file the start-state is an attribute of the lt;flowgt; tag:

lt;!DOCTYPE flow PUBLIC quot;-//SPRING//DTD WEBFLOW 1.0//ENquot; quot;dtd/spring-webflow-1.0.dtdquot;gt;

lt;flow start-state=quot;setupFormquot;gt;
...

I checked but seem like spring-webflow-1.0.dtd does not support lt;start-state/gt; as a separate tag.

Unfortunately it is not possible for me to change this old xerces for the near future. Can I still define the flow using DTD instead of xml-schema for SWF 1.0.1?

No, starting with RC4 Spring Web Flow has been using a Schema. The DTD is no longer supported.
You can get XML Schema support on JDK 1.3 by adding xercesImpl-2.8.0.jar and xml-apis-1.3.03.jar to your classpath.

Erwin
¥
Back Forum Reply New