This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting straight quotes to smart quotes in xslt 1.0

 
Rakesh Keerthi
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 667
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic