current version

This commit is contained in:
wojciech
2024-07-24 17:04:39 +02:00
parent a64e35466a
commit 392ffd1dd6
60 changed files with 4148 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Repository:repository xmlns:Repository="http://www.tibco.com/xmlns/repo/types/2002">
<folder resourceType="ae.designerfolder" name="xslt transformers" propLocks="" allowUserToChangeIcon="false" sortContents="false" acceptsResources="true" allowDuplicates="false">
<description/>
<fixedChildren/>
</folder>
</Repository:repository>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns0="http://www.demo.com/author"
version="1.0">
<xsl:param name="id"/>
<xsl:param name="firstname"/>
<xsl:param name="secondname"/>
<xsl:param name="date-of-birth"/>
<xsl:param name="date-of-death"/>
<xsl:param name="age"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="ns0:author[@id=$id]">
<ns0:author id="979">
<ns0:firstName><xsl:value-of select="$firstname"/></ns0:firstName>
<ns0:lastName><xsl:value-of select="$secondname"/></ns0:lastName>
<ns0:dateOfBirth><xsl:value-of select="$date-of-birth"/></ns0:dateOfBirth>
<ns0:dateOfDeath><xsl:value-of select="$date-of-death"/></ns0:dateOfDeath>
<ns0:age><xsl:value-of select="$age"/></ns0:age>
</ns0:author>
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns0="http://www.demo.com/author"
version="1.0">
<xsl:param name="id"></xsl:param>
<!-- Identity template to copy everything by default -->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<!-- Template to match the author with the specific id and remove it -->
<xsl:template match="ns0:author[@id=$id]" />
</xsl:stylesheet>