XSLT doesn't work on big XML file

Oxygen general issues.
birgitstrackenbrock
Posts: 15
Joined: Tue Apr 09, 2024 5:25 pm

XSLT doesn't work on big XML file

Post by birgitstrackenbrock »

Why doe the attached XSLT do not work on the attached XML file?
When I use it for a small XML file with only 5 terms it works ok.
What can/must I do?
legacytermid.zip
You do not have the required permissions to view the files attached to this post.
tavy
Posts: 393
Joined: Thu Jul 01, 2004 12:29 pm

Re: XSLT doesn't work on big XML file

Post by tavy »

Hello,

Which version of Oxygen are you using?
Which engine do you use to perform the transformation?
Do you encounter any errors?

Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
birgitstrackenbrock
Posts: 15
Joined: Tue Apr 09, 2024 5:25 pm

Re: XSLT doesn't work on big XML file

Post by birgitstrackenbrock »

I use Oxygen 27, Saxon EE 12.5
En als ik een klein XML file als input heb, ja, dan werkt het en ik krijg hits.
tavy
Posts: 393
Joined: Thu Jul 01, 2004 12:29 pm

Re: XSLT doesn't work on big XML file

Post by tavy »

The transformation seems to be working fine.
I'm not sure what you are trying to achieve. Maybe the problem is that the condition @value = following::vma:prop[@name = 'legacytermid']/@value is always false. You don't have a following vma:prop element with the same @value.
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
birgitstrackenbrock
Posts: 15
Joined: Tue Apr 09, 2024 5:25 pm

Re: XSLT doesn't work on big XML file

Post by birgitstrackenbrock »

I find out the the problem is not the big XML file but the content in @value.
The script cannot find values with an underscore like this:
<vma:prop name="legacytermid" value="cwf_Leerdoelen_8raob1"/>
What do I have to change?
birgitstrackenbrock
Posts: 15
Joined: Tue Apr 09, 2024 5:25 pm

Re: XSLT doesn't work on big XML file

Post by birgitstrackenbrock »

If have seen, there is nothing wrong with the XSLT, there is really no dubbel value in the XML. Sorry for all the work.
Post Reply