Difference between revisions of "XPAGE Format"

From EPrints Documentation
Jump to: navigation, search
m
m
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[http://www.freewebtown.com/boogiejames/topic/offerta-cellulare.htm offerta cellulare mms] [http://failtoexpress.freehostia.com/html/yumen.htm yumen] [http://saline-joy.freehostia.com/web/enel-d.htm en-el d70] [http://wainfan.t35.com/view/new/adama.htm adama] [http://mcwardlo.t35.com/library/html/volvo-s/ volvo s80 diesel] [http://getraylo.freeweb7.com/img/styles/cantantes-italianos.htm cantantes italianos] [http://flheddin.125mb.com/content/view/nino-d.htm nino d angelo senza giacca e c] [http://scaleslea.freewebpage.org/text/directory/notebook-multimediali/ notebook multimediali] [http://www.freewebtown.com/starbriteyellow/resources/articles/pino-daniele.htm pino daniele quando] [http://zoelverd.freeweb7.com/description/lib/agp-slot/ agp slot] [http://www.freewebtown.com/prncessprncipe/library/html/video-costantino.htm video costantino] [http://failtoexpress.freehostia.com/html/plasma-xr.htm plasma 42xr3] [http://greensticky.freehostia.com/library/html/gsm-palmari/ gsm palmari] [http://www.freewebtown.com/boogiejames/topic/maldini-coppa.htm maldini coppa campioni] [http://huruple.125mb.com/text/directory/divieto-di/ divieto di fumare] [http://getraylo.freeweb7.com/img/styles/vivitar.htm vivitar] [http://oedi.freehostia.com/text/directory/moon/ moon] [http://beshennayabelka.freehostia.com/content/view/teatro-sistina.htm teatro sistina] [http://benevolently.freehostia.com/content/view/italiano-per/ italiano per gli stranieri angelo] [http://failtoexpress.freehostia.com/html/hauppauge-ci.htm hauppauge ci] [http://benevolently.freehostia.com/content/view/disney-sexy/ disney sexy xxx] [http://beshennayabelka.freehostia.com/content/view/km-fiat.htm km0 fiat multipla gpl auto km 0] [http://flheddin.125mb.com/content/view/normas-midi.htm normas midi] [http://grahrens.125mb.com/view/new/inculata-dal/ inculata dal cavallo] [http://boreldar.t35.com/text/directory/drogheda.htm drogheda] [http://gawelzba.t35.com/library/html/johnny-west.htm johnny west il mancino] [http://licohwar.homeblock.com/library/html/wireless-adsl/ wireless adsl router 108] [http://getraylo.freeweb7.com/img/styles/thermaltake-orb.htm thermaltake orb ii] [http://mauballe.125mb.com/web/cablecrypt/ cablecrypt] [http://wainfan.t35.com/view/new/lg-driver.htm lg driver masterizzatore] [http://getraylo.freeweb7.com/img/styles/i-don.htm i don t wanna know p diddy enya] [http://oedi.freehostia.com/text/directory/automobile-rivista/ automobile rivista] [http://boreldar.t35.com/text/directory/fernando-carrilo.htm fernando carrilo] [http://coarmago.t35.com/content/view/volpe-nuda/ volpe nuda] [http://getraylo.freeweb7.com/img/styles/videocamera-con.htm videocamera con scheda di memoria] [http://kopapguw.homeblock.com/topic/robertson-august/ robertson, august] [http://beshennayabelka.freehostia.com/content/view/bipielle-ducato.htm bipielle ducato it] [http://grahrens.125mb.com/view/new/www-http/ www http 212 239 154 g girls] [http://lorcaxon.homeblock.com/data/tu-corazon/ tu corazon lo sabe] [http://lorcaxon.homeblock.com/data/acer-notebook/ acer notebook centrino] [http://gawelzba.t35.com/library/html/autopsia-di.htm autopsia di un mostro] [http://boreldar.t35.com/text/directory/infinity-sw.htm infinity sw10] [http://kopapguw.homeblock.com/topic/free-sex/ free sex] [http://boreldar.t35.com/text/directory/occhio-per.htm occhio per occhio] [http://saline-joy.freehostia.com/web/italo-calvino.htm italo calvino] [http://kopapguw.homeblock.com/topic/transex-/ transex  dotati attivi] [http://beshennayabelka.freehostia.com/content/view/uomini-uomini.htm uomini uomini uomini] [http://saline-joy.freehostia.com/web/hotel-playa.htm hotel playa real] [http://kopapguw.homeblock.com/topic/prestito-san/ prestito san benedetto del tronto] [http://getraylo.freeweb7.com/img/styles/nokia-auricolare.htm nokia auricolare bluetooth hs 36w] [http://mcwardlo.t35.com/library/html/lei/ lei 52] [http://wainfan.t35.com/view/new/telefonini-benq.htm telefonini benq] [http://gawelzba.t35.com/library/html/fujifilm-np.htm fujifilm np-40] [http://failtoexpress.freehostia.com/html/karaoka-vanbascos.htm karaoka vanbascos] [http://zoelverd.freeweb7.com/description/lib/disco-zone/ disco zone o zone] [http://gawelzba.t35.com/library/html/disonesti.htm disonesti] [http://coarmago.t35.com/content/view/frasi-per/ frasi per auguri di capodanno] [http://oedi.freehostia.com/text/directory/the-kids/ the kids aren t alright] [http://kopapguw.homeblock.com/topic/trans-card/ trans card] [http://boreldar.t35.com/text/directory/maceo-parker.htm maceo parker] [http://flheddin.125mb.com/content/view/tomtom-antenna.htm tomtom antenna] [http://mauballe.125mb.com/web/il-calendario/ il calendario sexi di paola perego del 2] [http://www.freewebtown.com/boogiejames/topic/black-code.htm black code armani] [http://wainfan.t35.com/view/new/nudiste-anni.htm nudiste anni 80] [http://oedi.freehostia.com/text/directory/flinstones-nudi/ flinstones nudi] [http://www.freewebtown.com/starbriteyellow/resources/articles/regno-unito.htm regno unito hotel] [http://gawelzba.t35.com/library/html/sandal.htm sandal] [http://flheddin.125mb.com/content/view/never-never.htm never never never giuliano palma] [http://gawelzba.t35.com/library/html/fiera-della.htm fiera della cioccolata] [http://huruple.125mb.com/text/directory/michelangelo/ michelangelo] [http://mauballe.125mb.com/web/breda-di/ breda di piave] [http://greensticky.freehostia.com/library/html/lavagne-a/ lavagne a fogli mobili] [http://beshennayabelka.freehostia.com/content/view/testo-della.htm testo della canzone dei blue a chi mi di] [http://kopapguw.homeblock.com/topic/volare-midi/ volare midi] [http://coarmago.t35.com/content/view/labase/ labase] [http://grahrens.125mb.com/view/new/dc-c/ dc c51 benq] [http://boreldar.t35.com/text/directory/il-cane.htm il cane delle praterie] [http://lorcaxon.homeblock.com/data/enter-the/ enter the matrix vende bene anche in italia] [http://saline-joy.freehostia.com/web/fujifilm-xdpicture.htm fujifilm xd-picture] [http://coarmago.t35.com/content/view/pachelbell/ pachelbell] [http://saline-joy.freehostia.com/web/wet-jet.htm wet jet tet skis] [http://licohwar.homeblock.com/library/html/vitamina-b/ vitamina b] [http://gawelzba.t35.com/library/html/follow-me.htm follow me] [http://wainfan.t35.com/view/new/gan-bang.htm gan bang] [http://huruple.125mb.com/text/directory/ci-vuole/ ci vuole un fisico bestiale] [http://flheddin.125mb.com/content/view/calendari-porno.htm calendari porno star] [http://mauballe.125mb.com/web/inflatable/ inflatable] [http://huruple.125mb.com/text/directory/second-sight/ second sight] [http://greensticky.freehostia.com/library/html/le-memorie/ le memorie di adriano] [http://www.freewebtown.com/prncessprncipe/library/html/cover-mucche.htm cover mucche alla riscossa] [http://oedi.freehostia.com/text/directory/umberto-poli/ umberto poli] [http://saline-joy.freehostia.com/web/seagate-sata.htm seagate sata 250gb] [http://huruple.125mb.com/text/directory/grottammare/ grottammare] [http://zoelverd.freeweb7.com/description/lib/globalsat-star/ globalsat star] [http://getm0ney.freewebpage.org/lib/ferrino-pangea/ ferrino pangea 5] [http://mcwardlo.t35.com/library/html/lotus-esprit/ lotus esprit 2.2] [http://lorcaxon.homeblock.com/data/il-santo/ il santo del 6 novembre] [http://scaleslea.freewebpage.org/text/directory/eko/ eko] [http://failtoexpress.freehostia.com/html/dlp.htm dlp 1280] [http://licohwar.homeblock.com/library/html/opel-astra/ opel astra 2005] [http://getm0ney.freewebpage.org/lib/farfe/ farfe] [http://beshennayabelka.freehostia.com/content/view/www-imbio.htm www imbio it] [http://benevolently.freehostia.com/content/view/bobbi-brown/ bobbi brown] [http://mauballe.125mb.com/web/tuareg/ tuareg] [http://greensticky.freehostia.com/library/html/raf-copertina/ raf copertina] [http://getm0ney.freewebpage.org/lib/panca-ab/ panca ab king pro] [http://benevolently.freehostia.com/content/view/master-of/ master of disguise] [http://mcwardlo.t35.com/library/html/il-canto/ il canto della creazione] [http://mcwardlo.t35.com/library/html/tutto-sulla/ tutto sulla piccola e media traina] [http://huruple.125mb.com/text/directory/maraton/ maraton] [http://selemku.t35.com/text/directory/film-la.htm film la calda vita] [http://lorcaxon.homeblock.com/data/qtek-palmare/ qtek palmare 9090] [http://benevolently.freehostia.com/content/view/gigi-de/ gigi de agostino] [http://coarmago.t35.com/content/view/gerg/ gerg] [http://huruple.125mb.com/text/directory/asus-ansli/ asus a8n-sli deluxe socket 939 nvidia] [http://boreldar.t35.com/text/directory/pointenoire.htm pointe-noire] [http://scaleslea.freewebpage.org/text/directory/handjobs/ handjobs] [http://greensticky.freehostia.com/library/html/morelli/ morelli] [http://kopapguw.homeblock.com/topic/thekkekara/ thekkekara] [http://grahrens.125mb.com/view/new/jbl-scs/ jbl scs] [http://lorcaxon.homeblock.com/data/inviare-sms/ inviare sms gratis internet] [http://mcwardlo.t35.com/library/html/joyce-kelvin/ joyce kelvin irish lottery] [http://failtoexpress.freehostia.com/html/forno-a.htm forno a microonde whirlpool ad incasso] [http://huruple.125mb.com/text/directory/vellezzo-bellini/ vellezzo bellini] [http://kopapguw.homeblock.com/topic/i-dont/ i dont wanna know mario winans p diddy] [http://mauballe.125mb.com/web/canon/ canon 17- 85] [http://zoelverd.freeweb7.com/description/lib/justin-timberlake/ justin timberlake like i love you] [http://www.freewebtown.com/prncessprncipe/library/html/last-minute.htm last minute venezia] [http://failtoexpress.freehostia.com/html/masterizzatori-philips.htm masterizzatori philips] [http://failtoexpress.freehostia.com/html/violent-comic.htm violent comic] [http://lorcaxon.homeblock.com/data/moster-jame/ moster jame] [http://selemku.t35.com/text/directory/affitto-ufficio.htm affitto ufficio chieti] [http://huruple.125mb.com/text/directory/maranata/ maranata] [http://oedi.freehostia.com/text/directory/jennifer-connelly/ jennifer connelly nuda] [http://mauballe.125mb.com/web/video-gratis/ video gratis eva henger] [http://failtoexpress.freehostia.com/html/cassia-eller.htm cassia eller] [http://www.freewebtown.com/boogiejames/topic/momenti-preziosi.htm momenti preziosi] [http://huruple.125mb.com/text/directory/peaches/ peaches] [http://huruple.125mb.com/text/directory/santa-marta/ santa marta] [http://lorcaxon.homeblock.com/data/olmo-/ olmo 6 friends] [http://mcwardlo.t35.com/library/html/adattatori-prese/ adattatori prese corrente] [http://greensticky.freehostia.com/library/html/touch-down/ touch down] [http://boreldar.t35.com/text/directory/imagenes-de.htm imagenes de rosas] [http://selemku.t35.com/text/directory/settimanale-oggi.htm settimanale oggi] [http://failtoexpress.freehostia.com/html/dragoste-hai.htm dragoste hai] [http://licohwar.homeblock.com/library/html/cybershot-dscw/ cybershot dsc-w5] [http://getm0ney.freewebpage.org/lib/rocca-di/ rocca di papa] [http://scaleslea.freewebpage.org/text/directory/fashion-com/ fashion com] [http://getraylo.freeweb7.com/img/styles/eliano.htm eliano] [http://saline-joy.freehostia.com/web/di-calcio.htm di calcio e di sparo] [http://zoelverd.freeweb7.com/description/lib/manu/ manu] [http://scaleslea.freewebpage.org/text/directory/stefio/ stefio] [http://www.freewebtown.com/starbriteyellow/resources/articles/placcato.htm placcato] [http://mcwardlo.t35.com/library/html/mirino-angolare/ mirino angolare] [http://getraylo.freeweb7.com/img/styles/cavallieri-zodiaco.htm cavallieri zodiaco] [http://beshennayabelka.freehostia.com/content/view/usb-flash.htm usb flash drive] [http://licohwar.homeblock.com/library/html/la-buona/ la buona novella ravasi gianfranco] [http://coarmago.t35.com/content/view/batman/ batman 3] [http://selemku.t35.com/text/directory/mikonos-alberghi.htm mikonos alberghi e hotel] [http://beshennayabelka.freehostia.com/content/view/garbagna.htm garbagna] [http://getraylo.freeweb7.com/img/styles/benni-benassi.htm benni benassi bros] [http://mauballe.125mb.com/web/too-much/ too much heaven] [http://getraylo.freeweb7.com/img/styles/juliana-do.htm juliana do bbb4] [http://zoelverd.freeweb7.com/description/lib/altoparlanti-/ altoparlanti 5 1 wireless] [http://mcwardlo.t35.com/library/html/kyocera-yashica/ kyocera yashica s4] [http://gawelzba.t35.com/library/html/multifunzione-wifi.htm multifunzione wi-fi] [http://grahrens.125mb.com/view/new/tesine-per/ tesine per la maturita] [http://beshennayabelka.freehostia.com/content/view/stampante-cd.htm stampante cd dvd getto inchiostro] [http://grahrens.125mb.com/view/new/la-a/ la 5a estacion] [http://greensticky.freehostia.com/library/html/ragazzo-montebelluna/ ragazzo montebelluna] [http://beshennayabelka.freehostia.com/content/view/acer-al.htm acer al 1511] [http://licohwar.homeblock.com/library/html/auto-toscana/ auto toscana] [http://huruple.125mb.com/text/directory/testo-della/ testo della canzone universal prayer] [http://coarmago.t35.com/content/view/vendita-videocamere/ vendita videocamere digitali] [http://beshennayabelka.freehostia.com/content/view/usb-dock.htm usb dock] [http://failtoexpress.freehostia.com/html/emporio-armani.htm emporio armani nero] [http://mcwardlo.t35.com/library/html/decorare-dolci/ decorare dolci] [http://huruple.125mb.com/text/directory/avventura-a/ avventura a bombay] [http://zoelverd.freeweb7.com/description/lib/fear/ fear] [http://getm0ney.freewebpage.org/lib/istituto-d/ istituto d arte di catania] [http://saline-joy.freehostia.com/web/portatile-centrino.htm portatile centrino 12] [http://coarmago.t35.com/content/view/invece/ invece] [http://www.freewebtown.com/prncessprncipe/library/html/fantasie-impromptu.htm fantasie impromptu] [http://www.freewebtown.com/starbriteyellow/resources/articles/seal.htm seal 2004] [http://saline-joy.freehostia.com/web/playstation-interactive.htm playstation interactive sampler vol. 5] [http://www.freewebtown.com/prncessprncipe/library/html/traduzione-di.htm traduzione di don t tell me di avril] [http://flheddin.125mb.com/content/view/se-no.htm se no che vita e] [http://huruple.125mb.com/text/directory/batterie-/ batterie 6310 nokia] [http://mcwardlo.t35.com/library/html/mar-rosso/ mar rosso] [http://saline-joy.freehostia.com/web/dupond-patrick.htm dupond, patrick] [http://www.freewebtown.com/starbriteyellow/resources/articles/divina-creatura.htm divina creatura] [http://selemku.t35.com/text/directory/calci-di.htm calci di] [http://saline-joy.freehostia.com/web/winaspi.htm winaspi32] [http://selemku.t35.com/text/directory/anatomia-dell.htm anatomia dell apparato genitale femminil] [http://selemku.t35.com/text/directory/brasile-fortaleza.htm brasile fortaleza] [http://saline-joy.freehostia.com/web/batterie-sony.htm batterie sony np-fm50] [http://beshennayabelka.freehostia.com/content/view/mario-rusca.htm mario rusca] [http://failtoexpress.freehostia.com/html/hyundai-lt.htm hyundai l19t 19] [http://scaleslea.freewebpage.org/text/directory/mappa-percorso/ mappa percorso] [http://greensticky.freehostia.com/library/html/pump-up/ pump up to jam] {{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