Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <unit xmlns="http://www.srcML.org/srcML/src">
- <Rowsets>
- <Rowset>
- <Row>
- <FirstName>Michael</FirstName>
- <LastName>David</LastName>
- <Phone>1234567890</Phone>
- </Row>
- <Row>
- <FirstName>David</FirstName>
- <LastName>Michael</LastName>
- <Phone>01234567890</Phone>
- </Row>
- <Row>
- <FirstName>Yang</FirstName>
- <LastName>Christina</LastName>
- <Phone>2345678901</Phone>
- </Row>
- <Row>
- <FirstName>Grey</FirstName>
- <LastName>Meredith</LastName>
- <Phone>3456789012</Phone>
- </Row>
- <Row>
- <FirstName>Michael</FirstName>
- <LastName>Shepherd</LastName>
- <Phone>5678901234</Phone>
- </Row>
- </Rowset>
- </Rowsets>
- <Tag>
- <FirstName>Michael</FirstName>
- <LastName>Shepherd</LastName>
- <Phone>5678901234</Phone>
- </Tag>
- </unit>
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <unit xmlns="http://www.srcML.org/srcML/src">
- <Row>
- <FirstName>Michael</FirstName>
- <LastName>David</LastName>
- <Phone>1234567890</Phone>
- </Row>
- <Row>
- <FirstName>Michael</FirstName>
- <LastName>Shepherd</LastName>
- <Phone>5678901234</Phone>
- </Row>
- <Tag>
- <FirstName>Michael</FirstName>
- <LastName>Shepherd</LastName>
- <Phone>5678901234</Phone>
- </Tag>
- </unit>
- <xsl:stylesheet
- xmlns="http://www.srcML.org/srcML/src"
- xmlns:src="http://www.srcML.org/srcML/src"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template name="removingNotMichael" match="*[child::src:FirstName[.= 'Michael']]">
- <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
- </xsl:template>
- <xsl:template match="text()">
- <!-- No output for all -->
- </xsl:template>
- </xsl:stylesheet>
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <Row xmlns="http://www.srcML.org/srcML/src"/><Row xmlns="http://www.srcML.org/srcML/src"/><Tag xmlns="http://www.srcML.org/srcML/src"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement