Skip to content

XSLT to turn VOResource documents into HTML landing pages

Notifications You must be signed in to change notification settings

ivoa/vor-to-landing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HTML Landing Pages From VOResource

This is an XSLT stylesheet to turn VOResource into an HTML-formatted landing page accessible to non-VO users (but still useful to people knowledgeable about the VO). It can be, in particular, used to make IVOA Identifiers resolve to something usable in non-VO contexts.

A service in which this is live is GAVO's ivo landing page service: If you have an ivoid like, for instance, ivo://cds.vizier/j/apj/852/48, you can just replace the schema part with http://dc.g-vo.org/LP/ and feed the result to a commen web browser. In the example, this yields http://dc.g-vo.org/LP/cds.vizier/j/apj/852/48.

Deployment

The stylesheet should work client-side, so you will probably get away by prepending a:

<?xml-stylesheet href='/PATH/TO/XSLT' type='text/xsl'?>

to a VOResource file. Note that some browsers will only process XSLT stylesheets when delivered over https, and a same-origin policy is typically enforced. This means that when transforming on the client side, the stylesheet needs to be served from within your web server.

You will also have to make the landingpages.css file accessible somewhere in you webserver and adapt the string /ADAPT/FOR/YOUR/SITE/ within vor-to-landing.xslt accordingly (though that could be a cross-server link).

An example deployment with server-site rendering is in the GAVO voidoi service (this link will only work if your browser does not wantonly change http to https); see res/landingpage.py there.

Public Domain Dedication

This material is distributed under CC0.

About

XSLT to turn VOResource documents into HTML landing pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published