wiki:Cmdi2Html

Version 4 (modified by dietuyt, 12 years ago) (diff)

--

intro

Some applications (e.g. the VLO) could benefit from an XSLT stylesheet that transforms CMDI instances to HTML. The idea is to create a generic XSLT that addresses this. This can then also be the starting point for some profile-dependent derivatives (if that turns out to be unaivoidable). This XSLT will be used to address ticket 151

other inpsiration

the VLO, epscially for the ResourceProxy? rendering

example

The output of the XSLT could be as follows (for http://www.clarin.eu/cmd/example/example-md-instance.cmdi):

Link part (= ResourceProxyList?)

Resources (= ResourceType == Resource):

 * hdl:1839/00-0000-0000-0009-3C7E-F
 * http://www.clarin.eu/sometext.txt

Metadata subnodes: (= ResourceType == Metadata):

 * http://www.clarin.eu/cmd/example/example-phonological-corpus.cmdi

Metadata part (= Components)

plain HTML rendering of the XML nodes, with indentation:

Example_Profile_Instance   
  example-component-text (a href to resourceproxy with HTML anchor)
    example-component-texttype>
      TextTypeDescription: print
       
  example-component-photo 
    description: a suitable textual description of this photo
         
  example-component-actor
     title (English): mister
     title (French): monsieur
     title (Dutch): mijnheer
     firstName: Foo
     lastName: Bar
     sex: female
     age: 55
     ActorLanguage
       ActorLanguageName: Dutch

Footer part (= MdHeader?)

Created by <MdCreator/> on <MdCreationDate/> 
Located at <MdSelfLink/>
Belongs to <MdCollectionDisplayName>
Based on the http://catalog.clarin.eu/ds/ComponentRegistry?item=<MdProfile/> profile