i v o a . n e t

/ WebHome / IvoaResReg / RegistryImplmentation / RegUpgradeToV10 / IVOA.VoResourceConversionXSL

This Web


Trieste Interop 

WebHome 
WebChanges 
WebTopicList 
WebStatistics

All Webs


Astrodata
IVOA
Know
Sandbox
TWiki
Trash

TWiki intro
TWiki tutorial
User registration
Notify me

W/I Groups


Data Access
Data Model
GWS
Query Language
Registry
Stds&Procs
Semantics
VOEvent
VOTable

Applications
Astro-RG
Data Curation
Theory

ivoa.net


www.ivoa.net
Doc. Repository
Events
Projects
XML Schema
Jumps: reg-dm mail archive :: RegUpgradeToV10 :: ResourceMetadata :: RegistryInterface :: VOResourceV10 :: RegUpgradeSummer2006
Meetings: InterOpMay2006ResReg :: InterOpSep2006ResReg

VOResource XSL Conversion Stylesheets

For v1.02 (Release Cand. 11):

VOResource-v0.10-v1.0.xsl2
XSL stylesheet for converting v0.10 to v1.0 records. (Updated 17 April 2007)

This stylesheet requires an XSLT 2.0 processor, such as the Saxon engine, available in saxon8.jar. To run, type:

java -jar saxon8.jar resource-v0.10.xml VOResource-v0.10-v1.0.xsl2 > resource-v1.0.xml

where resource-v0.10.xml is the v0.10 resource record to convert.

Caveats

Input Parameters

The stylesheet supports a number of input parameters that can be set on the saxon command line, for example,

java -jar saxon8.jar resource-v0.10.xml VOResource-v0.10-v1.0.xsl2 setSchemaLocation=1 schemaLocationPrefix=/home/user/schemas/ > resource-v1.0.xml

The parameters are as follows:

prettyPrint
If true, insert carriage returns and indentation to produce a neatly formatted output. If false, any spacing between tags in the source document will be preserved. (default: false).
indent
the per-level indentation. Set this to a sequence of spaces when pretty printing is turned on.
schemaLocationPrefix
The prefix to prepend to schema files listed in the xsi:schemaLocation(if used). The value should include a trailing slash as necessary. The default is an empty string, which indicates the current working directory (where output is used). Note that the xsi:schemaLocation is only set if it is set on the input.
setSchemaLocation
Set to 1 if the xsi:schemaLocation should be set or zero if it should not be. If not set at all (default), xsi:schemaLocation is only set if it is set on the input.
validationLevel
Set to 0 or greater if a default validationLevel should set as all possible locations. If greater than -1, the value will be the value of the validationLevel. You must also provide an ID to the validatedBy parameter below in order for the level to be set.
today
If set, the updated atribute will be set to this value
resourceElement
If set, the output document will have a root element of this name and a namespace given by $resourceNS and it will contain the VOResource metadata; all other wrapping elements from the input will be filtered out. The default setting will produce records that can be inserted directly into a Harvest response record.
resourceNS
If resourceName is set (with an non-empty value), the output document will have a root element of $resourceName and a this namespace. It will contain the VOResource metadata; all other wrapping elements from the input will be filtered out.

Release Notes: Changes since Dec 2006 release

Deprecated Versions

An update of the earlier released XSLTv1.0 stylesheet is also available, but deprecated as it does not set namespace declarations properly (and includes no

-- RayPlante - 17 April 2007


Attachment sort Action Size Date Uploaded by Comment
CEA_UpdateTo1.0.xsl manage 11.8 K 23 Apr 2007 - 13:06 PaulHarrison xslt stylesheet to convert CEA instances from V.10

 
 
© 2003-2007 by the contributing authors.  - You are TWikiGuest