• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Converting straight quotes to smart quotes in xslt 1.0

 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 734
7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

reply
    Bookmark Topic Watch Topic
  • New Topic