You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Antonio Gallardo <ag...@agsoftware.dnsalias.com> on 2002/12/06 10:45:32 UTC
[Input-xsl] - Mixing concepts between Attribute and Parameter
Hi.
I was currently checking the source code for the new XSP logicsheet
input.xsl. Yesterday was proposed by Piroumian to change the name of all
elements from "parameter" to "attributes". The change was correct from the
user view.
>From the developer view there are still the "old" functions names with
"parameter" concept.
I think now this is very easy to know, but maybe when someone will try to
update or extend this code will have problem with the concepts.
For example, check this comment:
<!-- parameter name, no default, required -->
<xsl:variable name="name">
<xsl:call-template name="get-string-attribute">
<xsl:with-param name="name">name</xsl:with-param>
<xsl:with-param name="required">true</xsl:with-param>
</xsl:call-template>
</xsl:variable>
maybe
<!-- attribute name, no default, required -->
<xsl:variable name="name">
<xsl:call-template name="get-string-attribute">
<xsl:with-param name="name">name</xsl:with-param>
<xsl:with-param name="required">true</xsl:with-param>
</xsl:call-template>
</xsl:variable>
Also, there are some bad functions names with "parameters":
<xsl:when test="$as = 'object'">
<xsp:expr>this._xsp_module_helper.getParameter(objectModel,
<xsl:copy-of select="$module"/>,<xsl:copy-of
select="$name"/>,<xsl:copy-of select="$default"/>)</xsp:expr>
</xsl:when>
Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [Input-xsl] - Mixing concepts between Attribute and Parameter
Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 06.Dec.2002 -- 03:45 AM, Antonio Gallardo wrote:
> Hi.
>
> I was currently checking the source code for the new XSP logicsheet
> input.xsl. Yesterday was proposed by Piroumian to change the name of all
> elements from "parameter" to "attributes". The change was correct from the
> user view.
>
> >From the developer view there are still the "old" functions names with
> "parameter" concept.
>
> I think now this is very easy to know, but maybe when someone will try to
> update or extend this code will have problem with the concepts.
Thanks for pointing this out. I've just changed all references from
parameter to attribute.
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org