JSTL XML taglib not supported in CQ5.6.1 | Community
Skip to main content
Level 2
October 16, 2015
Solved

JSTL XML taglib not supported in CQ5.6.1

  • October 16, 2015
  • 1 reply
  • 646 views

Is there a way to get CQ to include jstl xml to traverse xml in jsp files?  On a howto page someone mentioned that the current jstl taglibs did not include the XML taglib and possibly CQ only has a stripped down version.  For purposes we need to parse nested XML and using an iterator injects a lot of code overhead.  I tried to include the url for the xml taglibs and was not successful in getting to work.  It would more functional to have couple lines of code to iterate xml node as oppose to 1000s.

 

Here is the link found searching for information on including jstl xml taglibs.

http://dev.day.com/docs/en/cq/5-4/howto/taglib.html

<c:import url="http://localhost:8080/Example/user.xml"
var="inputvalue" />

<c:import url="http://localhost:8080/Example/parameters.xsl"
var="stylesheet" />

<x:transform xml = "${inputvalue}"
xslt = "${stylesheet}">
<x:param name="nameParam" value="ankit" />
</x:transform>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

AFAIK, Unfortunately none of aem version support jstl. As a workaround you need to create a bundle from the jstl implementation.

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

AFAIK, Unfortunately none of aem version support jstl. As a workaround you need to create a bundle from the jstl implementation.