cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <>
Subject RE: LinkSerializer not seeing links (href, src)
Date Thu, 01 Aug 2002 14:13:26 GMT
> From: Torsten Knodt []
> Hello Vadim,
> > > I have a second problem with LinkSerializer. Sometimes I can only
> > > see href's (no src),
> > Give an example (reproducible).
> > > sometimes I can't see any links.
> > Same here.
> I wasn't able to reproduce the version, where only href's where
> but here's a version, which doesn't produce any links.
> It's stripped down as much as possible. When it would work, you should
see a
> broken link to test2.html.
> The error xsl isn't included, it's the sample.

Thanks for the example.

Let me clarify how link serializer works. It react only on elements
which has "href" or "src" or "background" attributes in the *same*
namespace as element.

>From your HTML (skipping unessential stuff):

<html xmlns="">
    <img src="test2.html" alt="" />

You are defining element img in XHTML namespace. I will write this as:


Then, you are adding *non-namespaced* attribute src (default namespace
does not affect attributes, see


The result is that src and img are in *different* namespaces. To make
LinkSerializer work, they must be in the same namespace. This can be
achieved by two ways:

1. Add namespace to the attribute:

<html xmlns=""
    <img ns:src="test2.html" ns:alt="" />

2. Remove namespace from the element:

    <img src="test2.html" alt="" />


> With kind regards
> 	Torsten Knodt

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message