Re: LinkSerializer not seeing links (href, src)

2002-08-02 Thread Torsten Knodt

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

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
> > recognised,
> > 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.
First, you were right, thanks!
But is this a bug or a feature?
When I create a normal html, translate it to xhtml via tidy, and parse it with 
the FileGenerator, then it looks like my xml source. Shouldn't then 
LinkSerializer react on those links? It was valid against the right dtd.

With kind regards
Torsten Knodt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9SobnvxZktkzSmiwRAmDaAJ9QK3zxQJMKRmQPaYWqbNqsA6WnjwCeNx64
zLLbo51KKpvQpWQdExc+Wn0=
=1VX8
-END PGP SIGNATURE-


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: LinkSerializer not seeing links (href, src)

2002-08-01 Thread Vadim Gritsenko

> From: Torsten Knodt [mailto:[EMAIL PROTECTED]]
> 
> 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
recognised,
> 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):

http://www.w3.org/1999/xhtml";>



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

  'http://www.w3.org/1999/xhtml':img

Then, you are adding *non-namespaced* attribute src (default namespace
does not affect attributes, see
http://www.w3.org/TR/1999/REC-xml-names-19990114/#defaulting):

  '':src

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:

http://www.w3.org/1999/xhtml";
xmlns:ns="http://www.w3.org/1999/xhtml";>



2. Remove namespace from the element:






Regards,
Vadim


> With kind regards
>   Torsten Knodt


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: LinkSerializer not seeing links (href, src)

2002-07-31 Thread Torsten Knodt

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

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 recognised, 
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.

With kind regards
Torsten Knodt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9SAolvxZktkzSmiwRAndYAJ0SgE1mV0heRoaups9ovf3WJrhaVACggrs6
3DDSqIDMr/NU7e38YnQCCQg=
=EMJZ
-END PGP SIGNATURE-



http://apache.org/cocoon/sitemap/1.0";>
  

  



  
true

true

true
  



  
-//W3C//DTD XHTML 1.0 Transitional//EN

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

	iso-8859-1
1
  

  



  

  

  

  

  

  

  

  

  



  

  



Title: Test



  

  

  




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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


RE: LinkSerializer not seeing links (href, src)

2002-07-31 Thread Vadim Gritsenko

> From: Torsten Knodt [mailto:[EMAIL PROTECTED]]
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hello,
> 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.

Vadim


> The cocoon examples work without problems.
> The xhtml output validates against the DTD.
> If this helps you, DOCTYPE isn't in the output of my xhtml (don't know
why).
> 
> Oh yes, tested with cocoon 2.0.3 and cvs-version.
> 
> With kind regards
>   Torsten Knodt


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




LinkSerializer not seeing links (href, src)

2002-07-31 Thread Torsten Knodt

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,
I have a second problem with LinkSerializer. Sometimes I can only see href's 
(no src), sometimes I can't see any links. The cocoon examples work without 
problems.
The xhtml output validates against the DTD.
If this helps you, DOCTYPE isn't in the output of my xhtml (don't know why).

Oh yes, tested with cocoon 2.0.3 and cvs-version.

With kind regards
Torsten Knodt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9R6/HvxZktkzSmiwRAoHoAJ97JjeyPY0mLjHNDs8qrCv6zP5IywCfVyOb
0XtaVCzjHhQ8FlhtJbnuk04=
=Hy4i
-END PGP SIGNATURE-


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>