Hello,
I have a pipeline which transform an XML file into a Woody template file. (I
need to do this because of "migration to Woody reasons") When I try to use
this pipeline in another pipeline to show a "Woody" form than I get an
exception:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException: org.xml.sax.SAXException: wt:widget-label cannot
be used outside a wt:form-template element
However I do not generate a template file with wt:widget-label tags outside
wt:form-template file.
The pipeline which transform an XML to an template file looks like:
<map:match pattern="toWT/*.xml">
<map:generate src="{1}.xml"/>
<map:transform src="toWT.xslt"/>
<map:serialize type="xml"/>
</map:match>
The pipeline which shows my form:
<map:match pattern="original">
<map:call function="original"/>
</map:match>
<map:match pattern="originalForm">
<map:generate src="cocoon:/toWT/test.xml"/>
<map:transform type="woody"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<map:transform src="resources/woody-samples-styling.xsl"/-->
<map:serialize/>
</map:match>
The remarkable thing is that when I first invoke in a browser the "toWT"
pipeline , save the generated Woody template file into "temp.xml" and then
modify the pipeline above to use that file instead of calling the "toWT"
pipeline like
<map:match pattern="originalForm">
<map:generate src="temp.xml"/>
<map:transform type="woody"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<map:transform src="resources/woody-samples-styling.xsl"/-->
<map:serialize/>
</map:match>
everything works fine..
any help is appreciated ???
wouter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]