cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken C <aeolus...@yahoo.com>
Subject Re: XMLForm hello world in the works
Date Thu, 13 Jun 2002 01:54:05 GMT
Andrew,
Your action needs the Cocoon XMLForm classes, don't
comment them out. Also note the 'components' is
missing in each 'imports'. Thus it should read,

// Schematron classes
import
org.apache.cocoon.components.validation.SchemaFactory;
import org.apache.cocoon.components.validation.Schema;
import
org.apache.cocoon.components.validation.Validator;
import
org.apache.cocoon.components.validation.Violation;

====================
Also, for your sitemap, I have modified it a bit for
your reference, 

   
      <map:match pattern="hello.html">
        <map:act type="HelloAction">          
          <map:parameter
name="xmlform-validator-schema-ns"
value="http://www.ascc.net/xml/schematron"/>
          <map:parameter
name="xmlform-validator-schema"
value="schematron/job-seeker-sch.xml"/>
          <map:parameter name="xmlform-id"
value="hello-form"/>
          <map:parameter name="xmlform-scope"
value="session"/>
          <map:parameter name="xmlform-model"
value="HelloBean"/>

          <!-- Content transformation logic -->
          <map:generate
src="content/form/{page}.xml"/>
          <map:transform type="xmlform" label="xml"/> 
        
          <map:transform
src="stylesheets/wizard2html.xsl"/>
          <map:transform
src="context://stylesheets/xmlform/xmlform2html.xsl"/>
         
          <map:serialize type="html"/>
        </map:act>
      </map:match>  
...
 
Note that I am using the given stylesheets, they are
good and working. Just an opinion. 

Kenny

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message