Hello,
I hope someone can help me with this one. I'm rather new to jstl to maybe it's a no-problem, but anyway I'm stuck.
I have this foxmarks.xml file:
=== foxmarks.xml ===============================================================
=== foxmarks.xml =======================================================
I've shortened it up a bit (...)
It contains information about my firefox bookmarks that I want to present in a webpage.
So I'm trying to read the data with a c:forEach but I don't know how to handle the namespace prefixes.
This is what I've tried:
=== fox.jsp ====================================================================
=== fox.jsp ============================================================
1) The above code gives zero output and no errors. Maybe it can't find any "Folder" tags?
2) So I try to add the namespace
<x:forEach var="n" select="$doc//NC:Folder">
<x:out select="$n/NC:URL" />
It doesn't work either.
javax.xml.transform.TransformerException: Prefix must resolve to a namespace: NC
3) If I try to define it as a namespace using the definition from the foxmarks.xml file:
<%@ taglib prefix="NC" uri="http://home.netscape.com/WEB-rdf#" %>
org.apache.jasper.JasperException: The absolute uri:
http://home.netscape.com/WEB-rdf# cannot be resolved in either web.xml or the jar files deployed with this application ...
I thought a namespace was just a definition, not something physically existing.
Thank you for your patience.
Can someone help me please
I don't know where the problem is.
Is it the namespace, is it rdf?