...
In this element, you define 3 groups of visibility;
- allowed : user inside are "allowed" to subscribe to a categoryusers are not automatically subscribed to this category, but are allowed to subscribe.
autoSubscribed : user inside users are auto automatically subscribed to this category and is are allowed to unsubscribe
obliged : user inside users are automatically subscribe to this category and can't unsubscribe - for the moment, it is the only way for users to see category -
A user is in a visibility group by two ways :
...
described by dtd category.dtd), provided by remote server, requested by urlCategory of esup-lecture.xml
...
mappings.xml: it describes a list of mappings used to parse xml stream of a source in a html content (see mappings.dtd) :
| Bloc de code |
|---|
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mappings SYSTEM "mappings.dtd" > <mappings> <mapping> ... </mapping> <mapping> ... </mapping> ... </mappings> |
A source is composed of a list of items that will be parsed to be all displayed on interface . A mapping is used to define xsltFile and itemXPath to apply on a source. Sometimes, to define itemXPath, namespaces definition are required.
Here is a an example of mapping :
| Bloc de code |
|---|
<mapping sourceURL="http://info.cri.univ-rennes1.fr/rss/rss.php" xsltFile="http://partages.univ-rennes1.fr/files/partages/Services/CRI/SI/conf_lecture_gwe_ray/stylesheet01.xsl" itemXPath="/rdf:RDF/default:item"> <XPathNameSpace prefix="rdf" uri="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/> <XPathNameSpace prefix="default" uri="http://purl.org/rss/1.0/" /> </mapping> |
...