aspose file tools*
The moose likes XML and Related Technologies and the fly likes Converting straight quotes to smart quotes in xslt 1.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Converting straight quotes to smart quotes in xslt 1.0" Watch "Converting straight quotes to smart quotes in xslt 1.0" New topic
Author

Converting straight quotes to smart quotes in xslt 1.0

Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 144
Hi,
I've the below xml


here actually the in the input the quotes given are " but i want to convert it to smart quotes. i used the below xslt for this.


but i am getting below output.


but i want to get it as below.


please let me know how do i solve this.

Thanks
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 539
    
    3
We can consider easily a couple of marginal cases that quotes are not pairing up perfectly. How would the transformation be asked to behave is uncertain as the question is not posed in a general setting... Here is one way that has one marginal behaviour rather than anything else.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting straight quotes to smart quotes in xslt 1.0