XSLT (XSL Transformations) Question:

Download Job Interview Questions and Answers PDF

Explain how to remove a particular attribute from XML?

XSLT Interview Question
XSLT Interview Question

Answer:

Process of removing an attribute is similar to removing elements from XML document, as discussed in above XSLT interview question. Along with Identity template, define another template to match with that particular attribute as shown below.

<xsl:template match="@product_synonym"/>

Download XSLT Interview Questions And Answers PDF

Previous QuestionNext Question
Explain how to remove a particular element from XML?Explain how to rename a particular element and attribute from XML using XSL?