Nokogiri XSLT

35 views
Skip to first unread message

Feargal Hogan

unread,
Mar 7, 2011, 8:49:21 AM3/7/11
to nokogiri-talk
We have an online XSLT process using Nokogiri (libxslt) on Ruby-on-
Rails and have a problem with one of our XSLT docs. It's a very
recursive process turning 'flat' XML into neatly nested XML. The
document runs fine offline in Oxygen under Saxon 6.x, 9.x and XSLTProc
(libxslt), and fine under Saxon 9.x in the online environment.

But once we introduce Nokogiri into the mix, it falls over with:
runtime error: file /Users/<pathtotrunk>/data/xsl/v1/TextSections.xsl
line 324 element param
xsltApplyXSLTTemplate: A potential infinite template recursion was
detected.
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum
number of nested template calls and variables/params (currently set to
3000).

We have tried increasing xsltMaxDepth without success

Has anyone any suggestions on stuff to check/test?

TIA

Aaron Patterson

unread,
Mar 7, 2011, 11:45:51 AM3/7/11
to nokogi...@googlegroups.com

Do you have to pass any special options to xsltproc to get it to work?
Theoretically that should be the same as nokogiri (since both are
just using libxml2 / libxslt).

Can you possibly provide is with a test script and xml / xslt docs?

--
Aaron Patterson
http://tenderlovemaking.com/

Reply all
Reply to author
Forward
0 new messages