JSP XML Notation

W

Wendy S

Marc Twain said:
When declaring jsp:root, I always see this attribute:
xmlns:jsp="http://java.sun.com/JSP/Page"
But http://java.sun.com/JSP/Page is not a valid page ("Document not
found"). Is this normal or should I point to a proper URL, maybe one
under http://java.sun.com/dtd/*

It's fine the way it is. It's a URI (as opposed to a URL) and doesn't have
to point at anything 'real'.

http://www.w3.org/TR/REC-xml-names/

[Definition:] The attribute's value, a URI reference, is the namespace name
identifying the namespace. The namespace name, to serve its intended
purpose, should have the characteristics of uniqueness and persistence. It
is not a goal that it be directly usable for retrieval of a schema (if any
exists). An example of a syntax that is designed with these goals in mind is
that for Uniform Resource Names [RFC2141]. However, it should be noted that
ordinary URLs can be managed in such a way as to achieve these same goals.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top