File tree 2 files changed +12
-16
lines changed 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 5
5
#
6
6
# requires Saxon XSLT 2.0 processor from http://saxonica.com (replace SAXONJAR below)
7
7
8
- SAXONJAR=" /Users/philipfearon/Applications/SaxonHE9-6-0-2J/saxon9he.jar "
9
- # entry point is XMLSpectrum's highlight-file xsl stylesheet:
8
+ SAXONJAR=$SAXON_HOME_JAR
9
+ # entry point is basic-wrap. xsl
10
10
XMLSPECTRUM=$( dirname $0 ) /../xsl/basic-wrap.xsl
11
11
12
12
# this script resolves relative paths in the sourcepath based on the current directory
@@ -43,12 +43,14 @@ if [[ $# -eq 0 || $1 == '-?' ]]
43
43
then
44
44
newpath=$( dirname $relpath ) /xms-out
45
45
newfilepath=$newpath /$filename
46
- java -jar $SAXONJAR -xsl:$XMLSPECTRUM -s:$relpath -o:$newfilepath $2 $3 $4 $5 $6 $7 $8 $9
46
+ java -jar $SAXONJAR -xsl:$XMLSPECTRUM -t -s:$relpath -o:$newfilepath $2 $3 $4 $5 $6 $7 $8 $9 & > javalog.log
47
+ echo " ---- Saxon log ---------"
48
+ cat javalog.log
49
+ echo " ---- Saxon log ends ----"
50
+ echo " output written to: $newfilepath "
47
51
# cat $newfilepath
48
- xmlspec.sh $newfilepath force-newline=yes indent=2 color-theme=tomorrow-night
49
- echo " "
50
- echo " ---------------------------"
51
- echo " output file is at: $newfilepath "
52
+ xmlspec.sh $newfilepath force-newline=yes auto-trim=yes document-type=xslt indent=2 color-theme=tomorrow-night & > xmlspec.log
53
+ cat xmlspec.log
52
54
else
53
55
echo " file not found: $relpath "
54
56
fi
Original file line number Diff line number Diff line change 4
4
exclude-result-prefixes =" xsl xs f"
5
5
xmlns : f =" internal" >
6
6
7
+ <xsl : output method =" xml" omit-xml-declaration =" yes" />
8
+
7
9
<xsl : variable name =" globals" select =" /*" />
8
10
<xsl : variable name =" xmlns" select =" /*" />
9
11
<xsl : variable name =" ancestor-path" select =" ''" />
10
12
11
13
<xsl : template match =" /*" >
12
- <result >
13
- <xsl : for-each-group select =" *" group-starting-with =" .[@class = ('es')]" >
14
- <group current-key =" {current-grouping-key()}" >
15
- <xsl : for-each select =" current-group()" >
16
- <cg ><xsl : sequence select =" ." /></cg >
17
- </xsl : for-each >
18
- </group >
19
- </xsl : for-each-group >
20
- </result >
14
+ <xsl : copy-of select =" ." />
21
15
</xsl : template >
22
16
23
17
</xsl : stylesheet >
You can’t perform that action at this time.
0 commit comments