Reputation: 2015
Given a string such as "Hello [world]", how would I get the value of the text inside the square brackets with xslt?
Upvotes: 1
Views: 844
Reputation: 5432
substring-before(substring-after(root, '['),']')
Where "root" is the node having your string.
Upvotes: 2