I want to select all text and do a search and replace.
I want to turn all dashed into non-breaking dashes.
I am using this template for the search and replace part,
now I just need to run all text thru it..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know what do you mean by “non-breaking dash”, but here is a simple solution:
When this transformation is applied on any XML document, the result is the same document in which any
'-'is replaced by whatever is specified as the value of the global parameter $vRep.For example, when applied on this XML document:
the result is:
Explanation: Use of the identity rule, overriden by a template matching any text node, and translating any
'-'character in it to the character contained in$vRep— by using the standard XPath functiontranslate().