Re: [xslt] problem with special carater in CDATA [ending]



On Wed, Feb 12, 2003 at 08:26:52PM +0100, Arnaud Blancher wrote:
> eillard wrote:
> 
> >  I asked one questions, obviously you did not event tried to answer it
> >Seems you're of the kind of users "I don't care about the technical reasons,
> >I just want my pre-cooked answer", which also mean the next time you
> >have a trouble you won't take the time of understanding the problem.
> >I'm not very interested in answering those kind of users, especially
> >for free. So I will ask you the question:
> >  "why your stylesheets used <![CDATA[<]]><![CDATA[br />]]> ?"
> >If you can't answer, well you have a problem. I think I know the answer
> >and that what I suggested + a trivial change in your stylesheet will
> >get to the desired effect. But I won't give you the answer directly
> >because I prefer to spend time answering users who know what they are
> >doing (i.e. I spend less time answering question and more time coding
> >and improving the software).
> >  I hope you can understand my viewpoint.
> >
> not really
> of course i know you ll prefer anybody understand at the fisrt time.
> i'have read books on xml and xslt (not parse your code, it's too heavy 
> for me)
> 
> i think your play with my mind.
> 
> you use time to write me, but can't tell me exactly what wrong !

  The use of CDATA sections in your stylesheet where using a bug in
xsltproc (or libxslt) which allowed you to insert spaces in markup
at places where they are not significant. I had a bug in my code
but you did not check (against a book or the spec or another processor)
that your code was correct. Of cource once I corrected my code
your broke.
  Now to go back to your initial problem it was to get XHTML1 formating
(i.e. those extra rules in the XHTML1 spec that I pointed you to),
those rules are now implemented automatically by libxml2 if you
asked for the correct doctype (i.e. <br/> in the stylesheet will
output <br /> for XHTML1 and a dozen of other rules like that).
But apparently you didn't tried that keeping to your bizarre escaping
tricks which I told you too were wrong.
  Most of your examples were resulting in element being defined outside
the structure as escaped text. A typical example was:

>   <![CDATA[<textarea class="p" name="]]><xsl:call-template
> name="fabriquechemin" /><![CDATA[">]]>

  rather than doing the right thing (by reading and understanding 
XSLT rules) you applied blindly that (broken) mechanism.
  Yes I would have prefered if you had checked your code first, or
if you had tried to understand why I suggested that you change the system
and public id. Ideally I would never have made the initial bug that
yor reused, sorry I make mistakes or bugs too, but I do my job of learning
to try to correct them.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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