PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.27.2
Code Block Pro – Beautiful Syntax Highlighting v1.27.2
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / samples / xsl.sample

xsl.sample in Code Block Pro – Beautiful Syntax Highlighting 1.27.2, at build/shiki/samples/xsl.sample

66 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:myNS="http://devedge.netscape.com/2002/de">
5
6 <xsl:output method="html" />
7
8 <xsl:template match="/">
9 <html>
10
11 <head>
12
13 <title>
14 <xsl:value-of select="/myNS:Article/myNS:Title"/>
15 </title>
16
17 <style>
18 .myBox {margin:10px 155px 0 50px; border: 1px dotted #639ACE; padding:0 5px 0 5px;}
19 </style>
20
21 </head>
22
23 <body>
24 <p class="myBox">
25 <span class="title">
26 <xsl:value-of select="/myNS:Article/myNS:Title"/>
27 </span> <br />
28
29 Authors: <br />
30 <xsl:apply-templates select="/myNS:Article/myNS:Authors/myNS:Author"/>
31 </p>
32
33 <p class="myBox">
34 <xsl:apply-templates select="//myNS:Body"/>
35 </p>
36
37 </body>
38
39 </html>
40 </xsl:template>
41
42 <xsl:template match="myNS:Author">
43 -- <xsl:value-of select="." />
44
45 <xsl:if test="@company">
46 :: <b> <xsl:value-of select="@company" /> </b>
47 </xsl:if>
48
49 <br />
50 </xsl:template>
51
52 <xsl:template match="myNS:Body">
53 <xsl:copy>
54 <xsl:apply-templates select="@*|node()"/>
55 </xsl:copy>
56 </xsl:template>
57
58 <xsl:template match="@*|node()">
59 <xsl:copy>
60 <xsl:apply-templates select="@*|node()"/>
61 </xsl:copy>
62 </xsl:template>
63 </xsl:stylesheet>
64
65 <!-- https://developer.mozilla.org/en-US/docs/Web/XSLT/XSLT_JS_interface_in_Gecko/Basic_Example -->
66