You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2004/03/07 17:43:03 UTC
Re: Status on Woody-->CocoonForms renaming
On 06.03.2004 19:09, Reinhard Pötz wrote:
> The first part is done - which means:
> - renaming of all Java classes
> - reflect changes within Flowscripts
> - first run on updating all samples
>
> open
> - Stylesheet for namespace change and change the
> namespaces
As nagoya seems to down at the moment you can find the stylesheet
attached. 2 minor issues does it have:
- the old problem of namespace clean up. It copies all namespace
declarations from input to output, so also the old woody one's. Instead
of using <xsl:copy> I could have used <xsl:element>, but you need to
define then all needed namespaces in the stylesheet additionally
starting with i18n, maybe xhtml and so on. I prefer the post-processing
(removing the superflouos woody namespaces) over the pre-processing of
the stylesheet as adding additional namespace declarations is more error
prone than removing the old ones.
- whitespace-only text nodes (other must not be there) between comment
nodes are removed when they occur outside the root element. That's a
problem of Xalan. Inside the root element those text nodes are copied to
the output too. I saw this for form1-bind-bean.xml.
Joerg
Re: Status on Woody-->CocoonForms renaming
Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.03.2004 17:43, Joerg Heinicke wrote:
> As nagoya seems to down at the moment
Seemed to be a temporary issue with the ISP, other sites did neither
work. Closing and reopening a connection helped.
Joerg
Re: Status on Woody-->CocoonForms renaming
Posted by Reinhard Pötz <re...@apache.org>.
Bruno Dumon wrote:
>On Sun, 2004-03-07 at 17:43, Joerg Heinicke wrote:
>
>
>>On 06.03.2004 19:09, Reinhard Pötz wrote:
>>
>>
>>
>>>The first part is done - which means:
>>>- renaming of all Java classes
>>>- reflect changes within Flowscripts
>>>- first run on updating all samples
>>>
>>>open
>>>- Stylesheet for namespace change and change the
>>> namespaces
>>>
>>>
>>As nagoya seems to down at the moment you can find the stylesheet
>>attached. 2 minor issues does it have:
>>
>>- the old problem of namespace clean up. It copies all namespace
>>declarations from input to output, so also the old woody one's. Instead
>>of using <xsl:copy> I could have used <xsl:element>, but you need to
>>define then all needed namespaces in the stylesheet additionally
>>starting with i18n, maybe xhtml and so on. I prefer the post-processing
>>(removing the superflouos woody namespaces) over the pre-processing of
>>the stylesheet as adding additional namespace declarations is more error
>>prone than removing the old ones.
>>
>>- whitespace-only text nodes (other must not be there) between comment
>>nodes are removed when they occur outside the root element. That's a
>>problem of Xalan. Inside the root element those text nodes are copied to
>>the output too. I saw this for form1-bind-bean.xml.
>>
>>
>
>Wouldn't a simple text based search-and-replace be simpler then an XSLT?
>
>
>
Yes, but I want to provide an Ant task for our users which will do the
transformation. This can also be the infrastructure for future updates
between different CocoonForms versions.
Ant the stylesheet written by Jörg looks pretty simple ;-)
--
Reinhard
Re: Status on Woody-->CocoonForms renaming
Posted by Bruno Dumon <br...@outerthought.org>.
On Sun, 2004-03-07 at 17:43, Joerg Heinicke wrote:
> On 06.03.2004 19:09, Reinhard Pötz wrote:
>
> > The first part is done - which means:
> > - renaming of all Java classes
> > - reflect changes within Flowscripts
> > - first run on updating all samples
> >
> > open
> > - Stylesheet for namespace change and change the
> > namespaces
>
> As nagoya seems to down at the moment you can find the stylesheet
> attached. 2 minor issues does it have:
>
> - the old problem of namespace clean up. It copies all namespace
> declarations from input to output, so also the old woody one's. Instead
> of using <xsl:copy> I could have used <xsl:element>, but you need to
> define then all needed namespaces in the stylesheet additionally
> starting with i18n, maybe xhtml and so on. I prefer the post-processing
> (removing the superflouos woody namespaces) over the pre-processing of
> the stylesheet as adding additional namespace declarations is more error
> prone than removing the old ones.
>
> - whitespace-only text nodes (other must not be there) between comment
> nodes are removed when they occur outside the root element. That's a
> problem of Xalan. Inside the root element those text nodes are copied to
> the output too. I saw this for form1-bind-bean.xml.
Wouldn't a simple text based search-and-replace be simpler then an XSLT?
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org bruno@apache.org