You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by qMax <qm...@mediasoft.ru> on 2005/05/27 14:07:28 UTC
[lenya-1.2.3] bug in menu2xhtml.xsl
In template:
<xsl:template match="menu:item">
<!-- ... -->
<xsl:apply-templates select="@*[local-name() != 'href']"/>
<!-- ... -->
</xsl:template>
When calling <xsl:apply-templates select="@*[local-name() != 'href']"/>
and it applies to attributes other then uc:usecase and uc:step,
the last template
<xsl:template match="menu:item/@*[not(namespace-uri() = 'http://apache.org/cocoon/lenya/usecase/1.0')]"><xsl:copy-of select="."/></xsl:template>
tries to create an attribute inside attribute @href.
These generates WARNING and attributes get ignored.
Patch commited:
http://issues.apache.org/bugzilla/show_bug.cgi?id=35104
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re[2]: [lenya-1.2.3] bug in menu2xhtml.xsl
Posted by qMax <qm...@mediasoft.ru>.
Friday, May 27, 2005, 11:15:56 PM, Gregor J. Rothfuss wrote:
GJR> qMax wrote:
>> In template:
>> <xsl:template match="menu:item">
>> <!-- ... -->
>> <xsl:apply-templates select="@*[local-name() != 'href']"/>
>> <!-- ... -->
>> </xsl:template>
>>
>> When calling <xsl:apply-templates select="@*[local-name() != 'href']"/>
>> and it applies to attributes other then uc:usecase and uc:step,
>> the last template
>> <xsl:template match="menu:item/@*[not(namespace-uri() =
>> 'http://apache.org/cocoon/lenya/usecase/1.0')]"><xsl:copy-of
>> select="."/></xsl:template>
>> tries to create an attribute inside attribute @href.
GJR> i took a look at your patch, but it is against 1.2.3, and not 1.2.4-dev.
GJR> since the menu has changed a lot, can you rediff against 1.2.4-dev?
Nope, i haven't 1.2.4-dev, i use 1.2.3 for "production" server.
If this xslt is gone, tere probably nothing to patch there.
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: [lenya-1.2.3] bug in menu2xhtml.xsl
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
qMax wrote:
> GJR> i took a look at your patch, but it is against 1.2.3, and not 1.2.4-dev.
> GJR> since the menu has changed a lot, can you rediff against 1.2.4-dev?
>
> Is this BRANCH_1_2_X HEAD ?
yes
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re[2]: [lenya-1.2.3] bug in menu2xhtml.xsl
Posted by qMax <qm...@mediasoft.ru>.
Friday, May 27, 2005, 11:15:56 PM, Gregor J. Rothfuss wrote:
GJR> qMax wrote:
>> In template:
>> <xsl:template match="menu:item">
>> <!-- ... -->
>> <xsl:apply-templates select="@*[local-name() != 'href']"/>
>> <!-- ... -->
>> </xsl:template>
>>
>> When calling <xsl:apply-templates select="@*[local-name() != 'href']"/>
>> and it applies to attributes other then uc:usecase and uc:step,
>> the last template
>> <xsl:template match="menu:item/@*[not(namespace-uri() =
>> 'http://apache.org/cocoon/lenya/usecase/1.0')]"><xsl:copy-of
>> select="."/></xsl:template>
>> tries to create an attribute inside attribute @href.
GJR> i took a look at your patch, but it is against 1.2.3, and not 1.2.4-dev.
GJR> since the menu has changed a lot, can you rediff against 1.2.4-dev?
Is this BRANCH_1_2_X HEAD ?
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: [lenya-1.2.3] bug in menu2xhtml.xsl
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
qMax wrote:
> In template:
> <xsl:template match="menu:item">
> <!-- ... -->
> <xsl:apply-templates select="@*[local-name() != 'href']"/>
> <!-- ... -->
> </xsl:template>
>
> When calling <xsl:apply-templates select="@*[local-name() != 'href']"/>
> and it applies to attributes other then uc:usecase and uc:step,
> the last template
> <xsl:template match="menu:item/@*[not(namespace-uri() = 'http://apache.org/cocoon/lenya/usecase/1.0')]"><xsl:copy-of select="."/></xsl:template>
> tries to create an attribute inside attribute @href.
i took a look at your patch, but it is against 1.2.3, and not 1.2.4-dev.
since the menu has changed a lot, can you rediff against 1.2.4-dev?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org