Revision 294, 1.7 kB
(checked in by lhella, 13 years ago)
|
|
Line | |
---|
1 | RUNNING THE TRANSFORMATION |
---|
2 | ***************************** |
---|
3 | Store the ddr_HTMLReport_transformation.xsl, the .css and the schema at some location. Include the processing instruction in the xml to be transformed: |
---|
4 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
5 | <?xml-stylesheet type="text/xsl" href="ddr_PDFReport_transformation.xsl"?> |
---|
6 | <witsml:drillReports |
---|
7 | version="1.4.0.0" |
---|
8 | xsi:schemaLocation="http://www.witsml.org/schemas/1series WITSML_drillReport_profiled_schema_2011_01_29.xsd" |
---|
9 | xmlns:witsml="http://www.witsml.org/schemas/1series" |
---|
10 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
11 | |
---|
12 | For reports generated before 1.2.0 use |
---|
13 | |
---|
14 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
15 | <?xml-stylesheet type="text/xsl" href="ddr_PDFReport_transformation.xsl"?> |
---|
16 | <witsml:drillReports |
---|
17 | version="1.4.0.0" |
---|
18 | xsi:schemaLocation="http://www.witsml.org/schemas/1series WITSML_drillReport_profiled_schema_2011_05_07.xsd" |
---|
19 | xmlns:witsml="http://www.witsml.org/schemas/1series" |
---|
20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
21 | |
---|
22 | Run the document with a software that converts XML, XSL-FO to PDF. |
---|
23 | |
---|
24 | |
---|
25 | TECHNICAL DETAILS |
---|
26 | ******************* |
---|
27 | The transformation file has reference to and imports the drill report schema. The reason for this is to enable lookup of element definitions via the RDS URL. |
---|
28 | |
---|
29 | So, the drill report schema must be imported and the schamaLocation (in the import element) has to reflect the location of the file. Furthermore, this file is used when retreiving the RDS reference. As the schema file name might changes when NPD/Ptil is issuing their new official verison, we have introduced a global variable to hold the file name. Thus, if the file name changes, updating the value (i.e. select) of the variable "ddrSchema" should be ok. |
---|