XSLT (XSL Transformations) Question:
Download Job Interview Questions and Answers PDF
Explain how to remove a particular attribute from XML?
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"/>
<xsl:template match="@product_synonym"/>
Download XSLT Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain how to remove a particular element from XML? | Explain how to rename a particular element and attribute from XML using XSL? |