mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 10:56:37 +02:00
✨ Add experiments directory.
This commit is contained in:
parent
dff038f4d7
commit
96d4c1e2fd
22 changed files with 1838 additions and 56 deletions
31
experiments/scripts/combine_frames.xslt
Normal file
31
experiments/scripts/combine_frames.xslt
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" ?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:lxslt="http://xml.apache.org/xslt"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<xsl:param name="append_file">default</xsl:param>
|
||||
<xsl:param name="append_id">-1</xsl:param>
|
||||
|
||||
<xsl:output method="xml" indent="yes"/>
|
||||
|
||||
<xsl:template match="*|@*|text()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="*|@*|text()"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="svg:svg">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*"/>
|
||||
<xsl:apply-templates select="*"/>
|
||||
<xsl:apply-templates select="document($append_file)/svg:svg" mode="append"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="svg:svg" mode="append">
|
||||
<svg:g id="{$append_id}" display="none">
|
||||
<xsl:apply-templates select="svg:g"/>
|
||||
</svg:g>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue