OVH Cloud OVH Cloud

Gros problème de XML-XSLT

1 réponse
Avatar
mw
Bonjour,

J'avais écris mon message au préalable et ne pensant pas trouver un forum en
français, j'ai écris en Anglais... Si quelqu'un pouvait m'aider, ça serait
génial.

Cordialement,

Michel W.




Hello everybody,

I have quite a problem with the Perl XML-XSLT module.

All the files can be found at : http://mwpoub.free.fr/test.zip
(made a link since I can(t post a zip file)
You just need for example Active Perl on windows with the XML-XSLT module.

If you double click on the reprints.xml, you get the result in Internet
Explorer using the microsoft parser. The result is great. Just check "wished
result.gif".

But if I use XML-XSLT to parse the XML file, the result is very bad (see
transformed.htm).

In fact, in the element called "original", instead of taking the elements
called "ligne", it takes some elements called "l" !!! No sense... Moreover,
the "article" element doesn't give any good result...

XML Spy gives the same result as Microsoft IE.

Could you please indicate to me what's happening ???

If I activate the debug mode in XML-XSLT, I see for example :

selecting template original for child type XML::DOM::Element of
"/livre[3]":

matching template for "original" with count 6

and path "/livre[3]/original":

#19 "p" did not match

found #18 with "l" in "l"

So, in the element "original", it finds "l" elements ! There's NO "l"
element in "original" ! There are only "ligne" elements !

Thank you very much in advance. Please help me if you can, or if you know
any module that works better, I'd be really thankful.

Note : I tried to be fully W3C compliant with the DTD, XML and XSLT files.

Michel W.

1 réponse

Avatar
beline.jesson
le forum Perl du site de developpez.com pourront répondre à vos soucis :
Voici l'adresse :
http://www.developpez.net/forums/viewforum.php?fƒ&sid&ae6e86c76d62cb7230a7b15f71bc04

Un cours pour débutant et connaisseur a été conçu et j'ai participé à la
rédaction de la FAQ perl.
voici les adresses :
Faq : http://perl.developpez.com/faq/?page=sommaire
cours : http://perl.developpez.com/