current version
This commit is contained in:
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