Re: [xslt] libxslt escaping urls when outputting HTML



On Tue, Sep 17, 2002 at 02:23:55AM +0200, Philipp Dunkel wrote:
>
> [...]
>
> Different serialisation for html seems to be a common request. 
> This request is always responded to with "That not standard" 
> I think not standard is not an excuse because it hampers invention 
> 

Well, i see the real-life problems as well (after all, i write software
for webservers and i have seen the problems many browsers seem to have
with "correct" output. 

> On the point of globals I have to agree and retract my solution. It's OK
> for me for the time being. This is the reason I didn't publish it. I had
> a feeling, that it was a horrible hack, and should not really be used.
> It was actually more of an experiment than anything useful. 
> 
> The serialisation idea sounds good. How about <xsl:output
> method="html-with-illegal-hrefs"/> 

Yes, to me it looks like the cleanest solution -- unfortunately, after
browsing the sources for a while i got the impression that it's not that
trivial to extend the set of output methods. To me it looks like the
existing methods are pretty much hardcoded into libxslt :-( 
<Daniel, please correct me if i'm wrong>
As a long-term solution it might be interessting to have 'plugable' serializers,
but otoh there might be little common code left to serialisation once you have
plugins, so maybe you realy need to write your own serializer (the only benefit
speaking for the plugin aproach would be the ability to set the serializer from
within the stylesheet).


> Just thinking out loud. This could be included without doing any harm,
> wouldn't cause any standards problem, since I think someone writing an
> xsl with an output method named like that will know that they are doing
> something quite unstandard. 
> 
> Well I play the though through and might act on it if I needit. 

Lookin' forward to see the outcome ;-)



 Ralf 

> P.S.: As always everyone is invited (and to some degree expected) to
> disagree with me, since I see this as a valuable way of learning (at
> least for me) 

P.S.: i fully agree with that ;-)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]