File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 31
31
indent =" yes"
32
32
encoding =" UTF-8" />
33
33
34
- <xsl : param name =" meta" as =" xs:string" required =" yes" />
35
- <!-- <xsl:variable name="metafile" select="parse-xml($meta)"/> --> <!-- use this for command line testing/requires saxon 9.3 or greater -->
36
- <xsl : variable name =" metafile" select =" document($meta)" /> <!-- use this for systemp processing/works with 8.5.1 curently in CS -->
34
+ <!-- One of these two fields must be populated -->
35
+ <xsl : param name =" metaContents" as =" node()*" />
36
+ <xsl : param name =" meta" as =" xs:string" select =" ''" />
37
+ <xsl : variable name =" metafile" >
38
+ <xsl : if test =" empty($metaContents) and $meta=''" >
39
+ <xsl : message terminate =" yes" >Must specify meta information - either as a nodeset in 'metaContents' or as a filename via 'meta'</xsl : message >
40
+ </xsl : if >
41
+ <xsl : sequence select =" if (not(empty($metaContents))) then $metaContents else document($meta)" />
42
+ </xsl : variable >
43
+
37
44
<xsl : variable name =" date" select =" adjust-date-to-timezone(current-date(), ())" />
38
45
<xsl : variable name =" time" select =" format-time(current-time(),'[H01][m01][s01]')" />
39
46
<xsl : variable name =" tempdatetime" select =" concat($date,'',$time)" />
You can’t perform that action at this time.
0 commit comments