Changes between Version 3 and Version 4 of S3/S3XML/Transformation


Ignore:
Timestamp:
10/27/10 09:37:43 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3XML/Transformation

    v3 v4  
    99[[Image(s3xml.png)]]
    1010
    11 The XSLT stylesheets to use for this transformation can be either:
     11The XSLT stylesheets to use for this transformation can be either (fallback cascade in this order):
    1212
    13   - integrated in Eden (folder static/xslt)
    14   - in a static file elsewhere on the server
    15   - anywhere on the web
    16   - attached to the request (at import)
     13  - a static file on the server or a web URL
     14  - a file attached to the request (at import)
     15  - an integrated stylesheet of Eden (folder static/xslt)
     16
     17Note that formats *.xml and *.json will not be attempted to transform.
    1718
    1819== Integrated Stylesheets ==
    1920
    20 These will automatically used if no other stylesheet is specified. The integrated stylesheets reside in:
     21These will automatically used if no other stylesheet is specified (fallback). The integrated stylesheets reside in:
    2122
    2223  - static/xslt/export for export transformation (S3XML into other format)
     
    2728  - pfif.xsl transforms from/to *.pfif from *.xml
    2829
    29 Formats *.xml and *.json will not be transformed.
    30 
    3130== XSLT Stylesheets on the Server ==
    3231
    33   - ''coming soon...''
     32You can use the URL variable ?transform= to specify a transformation stylesheet at a file location on the server, e.g.:
     33
     34{{{
     35http://127.0.0.1:8000/vita/pr/person.pfif?transform=/home/me/stylesheets/export.pfif
     36}}}
     37
     38...to use the stylesheet {{{/home/me/stylesheets/export.pfif}}} for this export.
     39
     40Note that you must not specify "xml" or "json" as data format of the resource, because that will suppress any transformation attempt. Also note that this currently assumes that the data format is an XML format and not JSON (subject to change in the near future).
    3441
    3542== XSLT Stylesheets on the Web ==
    3643
    37   - ''coming soon...''
     44You can use the URL variable ?transform= to specify a transformation stylesheet at a web URL to be used at import, e.g.:
     45
     46{{{
     47http://127.0.0.1:8000/vita/pr/person.pfif?transform=http://vita.sahanafoundation.org/eden/static/xslt/export/pfif.xsl
     48}}}
     49
     50...to use the stylesheet {{{http://vita.sahanafoundation.org/eden/static/xslt/export/pfif.xsl}}} for this export.
     51
     52Note that you must not specify "xml" or "json" as data format of the resource, because that will suppress any transformation attempt. Also note that this currently assumes that the data format is an XML format and not JSON (subject to change in the near future).
    3853
    3954== Attached XSLT Stylesheets ==
    4055
    41   - ''coming soon...''
     56For data import, an XSLT stylesheet to transform foreign XML into S3XML can be attached to the request. The filename of the attached stylesheet is expected to be <resourcename>.xsl, where <resourcename> is the name of the target resource (without application prefix, e.g. "person" or "hospital").
    4257
    4358----