Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

xslt remove node

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes"/>
    <xsl:strip-space elements="*"/>

    <xsl:param name="isbns-to-remove" select="'BBB12343'"/>

    <xsl:template match="@*|node()" name="identity">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

    <xsl:template match="Book">
        <xsl:if test="not(contains(concat(',', $isbns-to-remove, ','), concat(',', identification/isbnNumber, ',')))">
          <xsl:call-template name="identity"/>
        </xsl:if>
    </xsl:template>

</xsl:stylesheet>
Comment

PREVIOUS NEXT
Code Example
Javascript :: {{i | json}} 
Javascript :: mongoose cursor eachasync 
Javascript :: e editable select no button 
Javascript :: api streamelements watchtime 
Javascript :: avoid compressing imagepicker react native 
Javascript :: javascript extract json from string 
Javascript :: reducer function redux 
Javascript :: javascript delete object from array 
Javascript :: javascript unary plus and negation operators 
Javascript :: how to format a javascript date 
Javascript :: javascript scale values 
Javascript :: hide playback speed from videojs 
Javascript :: leaflet core 
Javascript :: How to get maximum value in Javascript 
Javascript :: node.js express export routes 
Javascript :: ethers.js get time 
Javascript :: for loop with if statement 
Javascript :: comment faire pour écrire un texte en javascript 
Javascript :: remove all white spaces and different characters globally 
Javascript :: array.find 
Javascript :: delete item from a foreach vuejs 
Javascript :: material icons angular 
Javascript :: how to make lines glow canvas 
Javascript :: launch json for golang with args 
Javascript :: reactjs import electron 
Javascript :: create array in javascript contains 10 elements 
Javascript :: append a method to an already existing class in javascript 
Javascript :: how to take yes or no in js 
Javascript :: javascript table show only first n rows 
Javascript :: get date in format 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =