current version
This commit is contained in:
7
Resources/xslt transformers/.folder
Normal file
7
Resources/xslt transformers/.folder
Normal 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>
|
||||
31
Resources/xslt transformers/XSLT File.xslt
Normal file
31
Resources/xslt transformers/XSLT File.xslt
Normal 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>
|
||||
16
Resources/xslt transformers/xsltDelete.xslt
Normal file
16
Resources/xslt transformers/xsltDelete.xslt
Normal 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>
|
||||
Reference in New Issue
Block a user