Adam Henderson wrote:
I've got an XML file which is similar to XHTML but also has jps tags ( c:if
test="blah...") embedded. When I do my transformation I get:
org.dom4j.DocumentException: Error on line 439 of document:
The prefix "c" for element "c:if" is not bound. Nested exception: The prefix "c"
for element "c:if" is not bound.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
You are using elements that are in namespaces. You need to declare those
on the root or where they are used. You probably want something like:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jstl/core_rt">
<c:set var="something" value="${somethingService.something}" />
<head>
<title>${something.title}</title>
</head>
etc...
Using JSP and especially taglibs with XML is a pain. I started out using
JSP, but have since switched to Velocity.
best,
-Rob
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user