Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
Repository configuration
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==XML Config Files in EPrints== This section contains some general information about the XML archive config files: template, phrases, ruler and citations. metadata-types.xml uses XML but these comments do not apply. ===XHTML=== These files use HTML elements (and other elements too). XHTML is a fairly new version of HTML which is backwards compatable with HTML 4 but written using XML, not SGML. This means that it is much stricter but less ambiguous and easier to parse and modify. Assuming you know HTML, the main differences are as follows: ; All tags must be closed : All elements must be closed, even ones such as <li>. Tags which do not have a close tag in HTML, like <tt><br></tt> or <tt><img src="foo"></tt> still must be closed eg. <tt><img src="foo"></img></tt> - this can be abbreviated as: <tt> <img src="foo" /></tt> ; All tags and attributes must be lower case : Self explanitary. ; Strict definition of what tags may appear within others : Not actually checked by EPrints. It will let any rubbish past as long as it's valid XML. But that's no reason to be naughty. ; All attributes must be wrapped in quotes : In HTML the values of attributes do not have to be wrapped in quotes, but in XML (and therefore XHTML) they do. ; All attributes must have a value : In HTML some attribues do not require a value, for example <tt><hr noshade></tt> In XHTML it is represented as <tt> <hr noshade="noshade" /> </tt> So in summary, the HTML: <code> <img SRC=someurl> <hr NOSHADE WIDTH=2> <P>Foo bar</P> </code> should become in XHTML: <code> <img src="someurl" /> <hr noshade="noshade" width="2" /> <p>Foo bar</p> </code> And that's more or less it. See http://www.w3c.org/ for a complete description. ===Language specific files.=== phrases, templates and citations have one instance per supported language. This allows the system to generate pages and emails in more than one language. Supporting a new language will require translating all the english config files currently shipped. If you do intend to do this (lots of work!) please get in touch with the eprints admin so that we can avoid duplicated effort. ===Extra Entities=== The XML files all use a DTD which defines a few extra entities. Entities are items in XML (or HTML) which start with "&" and end with ";" like &amp;. These additional entities come from the entities DTD file created by generate_entities. One DTD is created per language, although currently the only variation is the archive name. ; &archivename; : The name of the archive in the current language. ; &adminemail; : The administrators email address. ; &base_url; : The base URL of the system (without a trailing slash) ; &perl_url; : The base URL of the CGI directory (without a trailing slash) ; &frontpage; : The URL of the system homepage. ; &userhome; : The URL of the user homepage. ; &version; : The current EPrints version. ; &ruler; : The XHTML of the standard divider. ; Any XHTML character entity (since EPrints v2.1) : You may now use any XHTML character entity, eg. <tt>&nbsp; &eacute; &euro;</tt>. ; User configured entities : You can generate your own entities by modifying the function which generates them in ArchiveConfig.pm None of these entities are not available in the citations file or the ruler file. ===Name Spaces and XHTML=== These files contain a mixture of custom tags and XHTML. To keep these distinct the XML files contain a name space definition in the first element. The pratical upshot is that all EPrints own tags have the prefix "ep:". The namespace information is actually ignored by the current version of the eprints system. example of mixed tags (and entities): <code> <ep:phrase ref="lib/session:contact"><p>Feel free to contact <a href="mailto:&adminemail;">&archivename; administration</a> with details.</p></ep:phrase> eprints elements: phrase xhtml elements: p, a eprints entities: archiveemail, archivename </code>
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)