I\'d like to trim the leading whitespace inside p tags in XML, so this:
Hey, italics and italics!
This stylesheet:
Output:
Hey, italics and italics!
Edit 2: Better expression (now only three function calls).
Edit 3: Matching the first descendant text node (not just the first node if it's a text node). Thanks to @Dimitre's comment.
Now, with this input:
Hey, italics and italics!
Output:
Hey, italics and italics!