Which of the following XSL statements selects each node in the source XML?
I wasn't able to find an explicit mention on learning.sap.com about the specific XSL statement that selects each
node in the source XML. However, based on general XSLT knowledge, the correct answer is:
B . <xsl:template match='*'>
This match pattern targets all element nodes in the XML document. Here's why the other choices are not correct:
* A. <xsl:template match='/*'> --- Matches only the root element, not all nodes.
* C. <xsl:template match='@*'> --- Matches attributes, not elements.
* D. <xsl:template match='text()'> --- Matches text nodes, excluding element nodes.
So, even though the answer isn't directly documented on learning.sap.com, option B is the correct XSL syntax for selecting each element node in the source XML. Let me know if you'd like to dig further into XSLT usage within SAP integration contexts!
Managing APIs
Currently there are no comments in this discussion, be the first to comment!