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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 136
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: 464
    
    2
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
 
Similar Threads
xslt output problem
CERTivity KeyStores Manager 1.2 Released
inconvertible types found : int required: java.lang.Short
Java policy file related problems
Cannot convert #NUMBER to a NodeList - Xalan and the XPath function count()