Difference between revisions of "XPAGE Format"

From EPrints Documentation
Jump to: navigation, search
m
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[http://voltia.ifrance.com/content/view/calcio-mercato.htm calcio mercato] [http://broadwaylili.ifrance.com/content/view/pc-acer.htm pc acer aspire t310] [http://oiyaoi.ifrance.com/images/small/povero-cristo/ povero cristo] [http://oiyaoi.ifrance.com/images/small/faro-ricaricabile/ faro ricaricabile] [http://highbulp.ifrance.com/images/small/foto-sexi/ foto sexi cellulare] [http://highbulp.ifrance.com/images/small/lg-fotocamera/ lg fotocamera] [http://noxuhax.ifrance.com/content/view/galatone.htm galatone] [http://oiyaoi.ifrance.com/images/small/natural-point/ natural point] [http://kalian42.ifrance.com/text/directory/internet-dating/ internet dating] [http://voltia.ifrance.com/content/view/dat.htm dat 24] [http://lordsander.ifrance.com/topic/pollo-al.htm pollo al curry] [http://highbulp.ifrance.com/images/small/condizionatori-multisplit/ condizionatori multisplit] [http://oiyaoi.ifrance.com/images/small/banca-fineco/ banca fineco] [http://akmokanzen.ifrance.com/images/small/www-tarjetas.htm www tarjetas com] [http://noxuhax.ifrance.com/content/view/annuncio-immobiliare.htm annuncio immobiliare privati] [http://deviantrus.ifrance.com/topic/gps-v/ gps v] [http://toofarfrommaybe.ifrance.com/view/new/occhiali-rosa/ occhiali rosa] [http://yeeden.ifrance.com/img/styles/punto-/ punto 1200 16v elx] [http://igaros.ifrance.com/lib/borges/ borges] [http://singaporepets.ifrance.com/library/html/noleggio-porsche.htm noleggio porsche roma] [http://yeeden.ifrance.com/img/styles/vecchia-zoccola/ vecchia zoccola] [http://noxuhax.ifrance.com/content/view/misstress.htm misstress] [http://speedofsoun.ifrance.com/text/directory/svezia.htm svezia] [http://jdawsona.ifrance.com/data/strutt-jedediah/ strutt, jedediah] [http://akmokanzen.ifrance.com/images/small/nissan-micra.htm nissan micra 2000] [http://highbulp.ifrance.com/images/small/drivers-nec/ drivers nec e228] [http://kalian42.ifrance.com/text/directory/ponferrada-org/ ponferrada org] [http://yeeden.ifrance.com/img/styles/ristoranti-erotici/ ristoranti erotici] [http://deviantrus.ifrance.com/topic/julie-andrews/ julie andrews le jazz hot] [http://igaros.ifrance.com/lib/bastera-db/ bastera db boulevard] [http://deviantrus.ifrance.com/topic/last-minute/ last minute dolomiti] [http://voltia.ifrance.com/content/view/agenzia-immobiliare.htm agenzia immobiliare varese] [http://voltia.ifrance.com/content/view/masterizzatore-dvd.htm masterizzatore dvd esterno sony] [http://lordsander.ifrance.com/topic/rimini-hotel.htm rimini hotel] [http://jdawsona.ifrance.com/data/pux-fsb/ p4u800-x fsb800] [http://deviantrus.ifrance.com/topic/nilo-egitto/ nilo egitto] [http://toofarfrommaybe.ifrance.com/view/new/voli-per/ voli per cancun] [http://lovereceier.ifrance.com/lib/monster-cable.htm monster cable scart] [http://voltia.ifrance.com/content/view/gepe-extreme.htm gepe extreme] [http://deviantrus.ifrance.com/topic/grigia/ grigia] [http://tat-ooin.ifrance.com/resources/articles/video-benny.htm video benny hill] [http://kalian42.ifrance.com/text/directory/gayboys/ gayboys] [http://speedofsoun.ifrance.com/text/directory/arbalete-in.htm arbalete in offerta] [http://speedofsoun.ifrance.com/text/directory/knocking-on.htm knocking on even] [http://oiyaoi.ifrance.com/images/small/golf-iv/ golf iv gti 150 tdi] [http://lordsander.ifrance.com/topic/singoli-in.htm singoli in piemonte] [http://highbulp.ifrance.com/images/small/office-/ office 2003 professional oem] [http://kalian42.ifrance.com/text/directory/erika-eliniak/ erika eliniak] [http://girlwho-is.ifrance.com/img/styles/hdd-.htm hdd 200 gb] [http://demurediablo.ifrance.com/library/html/testo-italiano/ testo italiano this love maroon 5] [http://highbulp.ifrance.com/images/small/traduzione-testo/ traduzione testo last thing on my mind] [http://broadwaylili.ifrance.com/content/view/custodia-sub.htm custodia sub olympus] [http://singaporepets.ifrance.com/library/html/san-donato.htm san donato milanese radio terapia] [http://highbulp.ifrance.com/images/small/edoardo-scappa/ edoardo scappa] [http://broadwaylili.ifrance.com/content/view/www-isola.htm www isola it] [http://kalian42.ifrance.com/text/directory/girl-siena/ girl siena] [http://igaros.ifrance.com/lib/tarzan-disney/ tarzan disney film dvd] [http://speedofsoun.ifrance.com/text/directory/il-problema.htm il problema droga] [http://jdawsona.ifrance.com/data/cabo-san/ cabo san lucas] [http://tizolaa.ifrance.com/web/uomini-porci/ uomini porci] [http://lordsander.ifrance.com/topic/libreria-e.htm libreria e sassari] [http://jdawsona.ifrance.com/data/creative-zen/ creative zen 5gb] [http://deviantrus.ifrance.com/topic/i-c/ i c baer] [http://oiyaoi.ifrance.com/images/small/contesti-organizzativi/ contesti organizzativi] [http://akmokanzen.ifrance.com/images/small/dolomiti-sul.htm dolomiti sul mare] [http://singaporepets.ifrance.com/library/html/in-those.htm in those jeans] [http://yeeden.ifrance.com/img/styles/www-cacchiate/ www cacchiate com] [http://oiyaoi.ifrance.com/images/small/jedem-osiem/ jedem osiem] [http://broadwaylili.ifrance.com/content/view/edgar-oceransky.htm edgar oceransky] [http://broadwaylili.ifrance.com/content/view/entregame-tu.htm entregame tu amor] [http://jdawsona.ifrance.com/data/skywards/ skywards] [http://toofarfrommaybe.ifrance.com/view/new/auto-fiat/ auto fiat idea] [http://girlwho-is.ifrance.com/img/styles/hard-disk.htm hard disk ata 2 5] [http://demurediablo.ifrance.com/library/html/sementi-ortaggi/ sementi ortaggi] [http://oiyaoi.ifrance.com/images/small/un-angelo/ un angelo per satana] [http://voltia.ifrance.com/content/view/pioneer-sintonizzatore.htm pioneer sintonizzatore] [http://lordsander.ifrance.com/topic/ntv.htm ntv] [http://girlwho-is.ifrance.com/img/styles/rayados-de.htm rayados de mty] [http://igaros.ifrance.com/lib/fiche-pelose/ fiche pelose] [http://girlwho-is.ifrance.com/img/styles/out-of.htm out of order - fuori servizio] [http://demurediablo.ifrance.com/library/html/video-fish/ video fish esa] [http://jdawsona.ifrance.com/data/filmati-storici/ filmati storici] [http://singaporepets.ifrance.com/library/html/calcio-serie.htm calcio serie b] [http://lovereceier.ifrance.com/lib/scopate-perverse.htm scopate perverse] [http://jdawsona.ifrance.com/data/monica-te/ monica te amo] [http://lordsander.ifrance.com/topic/gazetta-dello.htm gazetta dello sport] [http://jdawsona.ifrance.com/data/calendario-con/ calendario con evidenziate le festivita italiane] [http://noxuhax.ifrance.com/content/view/knightly.htm knightly] [http://igaros.ifrance.com/lib/crack-certus/ crack certus] [http://oiyaoi.ifrance.com/images/small/halifax-shopping/ halifax shopping] [http://voltia.ifrance.com/content/view/telo-proiezione.htm telo proiezione] [http://highbulp.ifrance.com/images/small/franciasing/ franciasing] [http://toofarfrommaybe.ifrance.com/view/new/senza-rimorso/ senza rimorso] [http://highbulp.ifrance.com/images/small/max-calendario/ max calendario 2005] [http://tizolaa.ifrance.com/web/mag/ mag 19 2] [http://lovereceier.ifrance.com/lib/yes-car.htm yes car credit] [http://girlwho-is.ifrance.com/img/styles/amore-provinciale.htm amore provinciale] [http://tat-ooin.ifrance.com/resources/articles/forte-dei.htm forte dei marmi alberghi e hotel] [http://kalian42.ifrance.com/text/directory/taranto-sera/ taranto sera dell ultimo mese] [http://deviantrus.ifrance.com/topic/universita-di/ universita di medicina bologna] [http://oiyaoi.ifrance.com/images/small/infiniti/ infiniti 35] [http://speedofsoun.ifrance.com/text/directory/canon-efs.htm canon ef-s 17-85 4-5 6 is usm] [http://singaporepets.ifrance.com/library/html/www-ver.htm www ver sexso] [http://tizolaa.ifrance.com/web/camballa-balla/ cam-balla balla] [http://lordsander.ifrance.com/topic/per-sempre.htm per sempre celentano] [http://lovereceier.ifrance.com/lib/scheda-video.htm scheda video ati x800] [http://highbulp.ifrance.com/images/small/loreto-ristorante/ loreto ristorante] [http://girlwho-is.ifrance.com/img/styles/giochi-flash.htm giochi flash tutto gratis] [http://lovereceier.ifrance.com/lib/televisori-al.htm televisori al plasma lg] [http://kalian42.ifrance.com/text/directory/frigorifero-/ frigorifero 188 cm] [http://demurediablo.ifrance.com/library/html/manuali-on/ manuali on line] [http://girlwho-is.ifrance.com/img/styles/fi.htm f-i] [http://noxuhax.ifrance.com/content/view/modem-adsl.htm modem adsl pppoa] [http://toofarfrommaybe.ifrance.com/view/new/oh-happy/ oh happy day] [http://tat-ooin.ifrance.com/resources/articles/jumpstart-gadget.htm jumpstart gadget] [http://singaporepets.ifrance.com/library/html/suonerie-cellulari.htm suonerie cellulari samsung] [http://lovereceier.ifrance.com/lib/jonis-bascir.htm jonis bascir] [http://lordsander.ifrance.com/topic/culle-pali.htm culle pali] [http://deviantrus.ifrance.com/topic/le-calde/ le calde labbra di emanuelle] [http://kalian42.ifrance.com/text/directory/il-prato/ il prato macchiato di rosso] [http://tizolaa.ifrance.com/web/basti-distretto/ basti (distretto)] [http://highbulp.ifrance.com/images/small/kalat/ kalat] [http://lovereceier.ifrance.com/lib/vacanza-studio.htm vacanza studio in spagna] [http://voltia.ifrance.com/content/view/mandaryna-drifting.htm mandaryna drifting] [http://akmokanzen.ifrance.com/images/small/juliana-paz.htm juliana paz] [http://demurediablo.ifrance.com/library/html/annuncio/ annuncio 15889] [http://igaros.ifrance.com/lib/merdo/ merdo] [http://toofarfrommaybe.ifrance.com/view/new/no-perditempo/ no perditempo] [http://igaros.ifrance.com/lib/bejewlled/ bejewlled] [http://kalian42.ifrance.com/text/directory/telecom-/ telecom 187 sirio] [http://yeeden.ifrance.com/img/styles/la-comessa/ la comessa] [http://noxuhax.ifrance.com/content/view/sailor-moon.htm sailor moon s da scaricare] [http://lovereceier.ifrance.com/lib/recavo.htm recavo] [http://toofarfrommaybe.ifrance.com/view/new/hd-/ hd 160 gb esterno hard disk e floppy] [http://highbulp.ifrance.com/images/small/giannetto-giuseppe/ giannetto giuseppe] [http://igaros.ifrance.com/lib/paul-marshal/ paul marshal johnson jr] [http://oiyaoi.ifrance.com/images/small/sistema-babilonico/ sistema babilonico] [http://voltia.ifrance.com/content/view/www-figclnd.htm www figclnd it] [http://demurediablo.ifrance.com/library/html/la-strana/ la strana societa] [http://lordsander.ifrance.com/topic/primi-dettagli.htm primi dettagli su crackdown per xbox 360] [http://singaporepets.ifrance.com/library/html/lcd-.htm lcd 17 tv televisori] [http://highbulp.ifrance.com/images/small/everybody-gotta/ everybody gotta] [http://noxuhax.ifrance.com/content/view/principe-coraggioso.htm principe coraggioso] [http://tat-ooin.ifrance.com/resources/articles/modelle-nude.htm modelle nude] [http://tizolaa.ifrance.com/web/rebuffo/ rebuffo] [http://singaporepets.ifrance.com/library/html/bah.htm bah7] [http://highbulp.ifrance.com/images/small/tristeza-vai/ tristeza vai via] [http://lordsander.ifrance.com/topic/abbreviatura.htm abbreviatura] [http://highbulp.ifrance.com/images/small/famiglie-a/ famiglie a canazei] [http://lovereceier.ifrance.com/lib/la-voce.htm la voce del diavolo] [http://highbulp.ifrance.com/images/small/garou-esmeralda/ garou esmeralda] [http://toofarfrommaybe.ifrance.com/view/new/houston-tapis/ houston tapis roulant] [http://lordsander.ifrance.com/topic/black-or.htm black or white] [http://deviantrus.ifrance.com/topic/kotto-basse/ kotto, basse-] [http://akmokanzen.ifrance.com/images/small/amstrad-dvix.htm amstrad dvix] [http://deviantrus.ifrance.com/topic/anticipazioni-sul/ anticipazioni sul telefilm the o c] [http://lovereceier.ifrance.com/lib/sound-blaster.htm sound blaster usb] [http://girlwho-is.ifrance.com/img/styles/canon-ef.htm canon ef 24-85mm f 3 5-4 5 usm] [http://yeeden.ifrance.com/img/styles/escort-spagna/ escort spagna] [http://singaporepets.ifrance.com/library/html/last-minute.htm last minute lignano] [http://tizolaa.ifrance.com/web/mamme-porche/ mamme porche gratis] [http://akmokanzen.ifrance.com/images/small/escuchar-la.htm escuchar la hormiguita] [http://deviantrus.ifrance.com/topic/acer-travelmate/ acer travelmate tablet pc] [http://lordsander.ifrance.com/topic/voli-croazia.htm voli croazia] [http://yeeden.ifrance.com/img/styles/effetti-sonori/ effetti sonori per teatro] [http://tizolaa.ifrance.com/web/airline/ airline69] [http://akmokanzen.ifrance.com/images/small/renault-clio.htm renault clio 1994] [http://lordsander.ifrance.com/topic/san-mateo.htm san mateo] [http://kalian42.ifrance.com/text/directory/denon-avr/ denon avr 2105] [http://jdawsona.ifrance.com/data/inglesina-emma/ inglesina emma] [http://toofarfrommaybe.ifrance.com/view/new/hotel-lignano/ hotel lignano] [http://yeeden.ifrance.com/img/styles/scaricare-disco/ scaricare disco di ripristino] [http://tat-ooin.ifrance.com/resources/articles/i-feel.htm i feel you] [http://lovereceier.ifrance.com/lib/operazione-segreta.htm operazione segreta - operazione droga] [http://singaporepets.ifrance.com/library/html/panis-angelicus.htm panis angelicus di haendel] [http://deviantrus.ifrance.com/topic/societa-di/ societa di lavoro interinale] [http://jdawsona.ifrance.com/data/kasprzycki/ kasprzycki] [http://speedofsoun.ifrance.com/text/directory/bambole-gonfiabili.htm bambole gonfiabili] [http://voltia.ifrance.com/content/view/val-belluna.htm val belluna] [http://girlwho-is.ifrance.com/img/styles/lbp.htm lbp 1120] [http://speedofsoun.ifrance.com/text/directory/galleria-colombo.htm galleria colombo] [http://voltia.ifrance.com/content/view/vocabolario.htm vocabolario] [http://igaros.ifrance.com/lib/sarazza/ sarazza] [http://singaporepets.ifrance.com/library/html/resident-evil.htm resident evil 4] [http://demurediablo.ifrance.com/library/html/oggetti-the/ oggetti the sims] [http://jdawsona.ifrance.com/data/julian-beck/ julian beck] [http://highbulp.ifrance.com/images/small/ricerca-cuochi/ ricerca cuochi] [http://highbulp.ifrance.com/images/small/blenders/ blenders] [http://lovereceier.ifrance.com/lib/quattro-mosche.htm quattro mosche di velluto grigio argento] [http://lovereceier.ifrance.com/lib/description-realtek.htm description realtek rtl8139 810x family] [http://tizolaa.ifrance.com/web/tavoli-sedia/ tavoli sedia] [http://tat-ooin.ifrance.com/resources/articles/o-pson.htm o pson e cas] [http://broadwaylili.ifrance.com/content/view/e.htm e 380] [http://noxuhax.ifrance.com/content/view/d-g.htm d g profumi] [http://lordsander.ifrance.com/topic/pagate.htm pagate] [http://tat-ooin.ifrance.com/resources/articles/condizionatori-.htm condizionatori 3 split] [http://speedofsoun.ifrance.com/text/directory/keys-c.htm keys 007c00] [http://tizolaa.ifrance.com/web/deux-freres/ deux freres] [http://noxuhax.ifrance.com/content/view/nissan-x.htm nissan 4x4] [http://demurediablo.ifrance.com/library/html/prolunga-scart/ prolunga scart] {{formats}}
+
{{formats}}
 +
 
 +
'''See [[API:EPrints/Apache/Template#Static_HTML_Pages]] for a list of the pins you can use in an xpage'''
  
 
Stored in the [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/lang/en/static|static]] folder, xpage files are portions of HTML that are rendered into static files when generate_static is run. Three tags are in the xpage namespace: xpage:page, xpage:title, and xpage:body.
 
Stored in the [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/lang/en/static|static]] folder, xpage files are portions of HTML that are rendered into static files when generate_static is run. Three tags are in the xpage namespace: xpage:page, xpage:title, and xpage:body.
  
The beginning of index.xpage (which generates the site's index page) is as follows - the three tags are analogous to the html, title, and body tags of an HTML document, except the body is included within the site's template. It is recommended to use xhtml as the default namespace to ease writing. As with templates, [[EPrints Control Format]] tags may be used.  
+
The beginning of index.xpage (which generates the site's index page) is as follows - the three tags are analogous to the html, title, and body tags of an HTML document, except the body is included within the site's template. It is recommended to use xhtml as the default namespace to ease writing. As with templates, [[EPrints Control Format]] tags may be used.
  
 +
<source lang="xml">
 
  <?xml version="1.0" encoding="iso-8859-1" standalone="no"  ?>
 
  <?xml version="1.0" encoding="iso-8859-1" standalone="no"  ?>
 
  <!DOCTYPE page SYSTEM "entities.dtd" >
 
  <!DOCTYPE page SYSTEM "entities.dtd" >
Line 11: Line 14:
 
   <xpage:body>Some example body text.</xpage:body>
 
   <xpage:body>Some example body text.</xpage:body>
 
  </xpage:page>
 
  </xpage:page>
 +
</source>
 +
When generate_statics is run, four static files are created for each xpage file. For index.xpage, these would be index.html (the HTML page), index.page (the contents of the xpage:body tag), index.title (the contents of the xpage:title tag), and index.title.textonly (the contents of the xpage:title with HTML tags stripped out). Note that these files are generated by generate_static, and shouldn't be edited by hand.
  
When generate_statics is run, four static files are created for each xpage file. For index.xpage, these would be index.html (the HTML page), index.page (the contents of the xpage:body tag), index.title (the contents of the xpage:title tag), and index.title.textonly (the contents of the xpage:title with HTML tags stripped out). Note that these files are generated by generate_static, and shouldn't be edited by hand.
+
2013-10-21 NOTE: Some versions of EPrints (3.3.10 and lower?) don't process phrases with pins in them properly from xpages. Whitespace in the phrase tag breaks the processor, resulting in a '[error in script]' message in the page, and something like ' EPScript error: Can't locate object method "tagName" via package "XML::LibXML::Text" at /usr/share/eprints/perl_lib/EPrints/XML/EPC.pm line 204' in the apache error logs.
 +
This can be fixed by removing the whitespace:
 +
<source lang="xml">
 +
<!-- BROKEN -->
 +
        <epc:phrase ref="lib/searchexpression:results_for">
 +
            <epc:param name='title'>Test</epc:param>
 +
        </epc:phrase>
 +
<!-- OK -->
 +
        <epc:phrase ref="lib/searchexpression:results_for"><epc:param name='title'>Test</epc:param></epc:phrase>
 +
</source>
 +
or possibly patching ~/perl_lib/EPrints/XML/EPC.pm with https://github.com/eprints/eprints/commit/10fc4e67fac54dc87c6968ac3be79c4cb121efcf

Latest revision as of 16:04, 8 November 2013

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


XML Configuration: EPScript - Control Format (EPC) - Citation - Workflow - Phrase - Template - XPAGE (static pages)

See API:EPrints/Apache/Template#Static_HTML_Pages for a list of the pins you can use in an xpage

Stored in the static folder, xpage files are portions of HTML that are rendered into static files when generate_static is run. Three tags are in the xpage namespace: xpage:page, xpage:title, and xpage:body.

The beginning of index.xpage (which generates the site's index page) is as follows - the three tags are analogous to the html, title, and body tags of an HTML document, except the body is included within the site's template. It is recommended to use xhtml as the default namespace to ease writing. As with templates, EPrints Control Format tags may be used.

 <?xml version="1.0" encoding="iso-8859-1" standalone="no"  ?>
 <!DOCTYPE page SYSTEM "entities.dtd" >
 <xpage:page xmlns="http://www.w3.org/1999/xhtml" xmlns:xpage="http://eprints.org/ep3/xpage" xmlns:epc="http://eprints.org/ep3/control">
   <xpage:title>Welcome to <epc:phrase ref="archive_name" /></xpage:title>
   <xpage:body>Some example body text.</xpage:body>
 </xpage:page>

When generate_statics is run, four static files are created for each xpage file. For index.xpage, these would be index.html (the HTML page), index.page (the contents of the xpage:body tag), index.title (the contents of the xpage:title tag), and index.title.textonly (the contents of the xpage:title with HTML tags stripped out). Note that these files are generated by generate_static, and shouldn't be edited by hand.

2013-10-21 NOTE: Some versions of EPrints (3.3.10 and lower?) don't process phrases with pins in them properly from xpages. Whitespace in the phrase tag breaks the processor, resulting in a '[error in script]' message in the page, and something like ' EPScript error: Can't locate object method "tagName" via package "XML::LibXML::Text" at /usr/share/eprints/perl_lib/EPrints/XML/EPC.pm line 204' in the apache error logs. This can be fixed by removing the whitespace:

<!-- BROKEN -->
        <epc:phrase ref="lib/searchexpression:results_for">
            <epc:param name='title'>Test</epc:param>
        </epc:phrase>
<!-- OK -->
        <epc:phrase ref="lib/searchexpression:results_for"><epc:param name='title'>Test</epc:param></epc:phrase>

or possibly patching ~/perl_lib/EPrints/XML/EPC.pm with https://github.com/eprints/eprints/commit/10fc4e67fac54dc87c6968ac3be79c4cb121efcf