File: import-jpega.xsl

package info (click to toggle)
swfmill 0.3.6-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 10,168 kB
  • sloc: xml: 147,618; cpp: 15,148; sh: 4,832; ansic: 427; makefile: 386
file content (23 lines) | stat: -rwxr-xr-x 702 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:swft="http://subsignal.org/swfml/swft"
    extension-element-prefixes="swft">
  <xsl:template match="/">
    <out>
      <xsl:apply-templates mode="copy"
          select="swft:import-jpega('test.jpg', 'alpha.png')"/>
    </out>
  </xsl:template>

  <xsl:template mode="copy" match="node()">
    <xsl:copy>
      <xsl:for-each select="@*">
        <xsl:copy>
          <xsl:value-of select="."/>
        </xsl:copy>
      </xsl:for-each>
      <xsl:apply-templates mode="copy" select="node()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>