Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Re: Morphline XSLT not working as described

Re: Morphline XSLT not working as described

Expert Contributor
The xslt command fills in the XPath string value into the record field, as described in the doc.

Per the XPath spec, the XPath string value of an XML element is the string concatenation of all it's text nodes, and if there are no text nodes inside an element, as is the case in your example, the XPath string value is the empty string.

E.g. Try this to fill "This is a text node" into the "Child1" record field:

This is a text node

For more examples see the unit tests here:

Don't have an account?
Coming from Hortonworks? Activate your account here