1
我有一个输入,因为这XSLT需要与单个条件的内容转换成JSON
<xml>
<p>"It may be recalled that the foggy family law suit in Jarndyce v Jarndyce dragged on before the Lord Chancellor for generations until nothing was left for the parties to take. </p>
</xml>
,我需要此转换成如下[我的意思是,JSON格式]:
"content": "<p>"It may be recalled that the foggy family law suit in Jarndyce v Jarndyce dragged on before the Lord Chancellor for generations until nothing was left for the parties to take". </p>"
我的意思是,在这里,我只需要段落内的报价。除了这里,它不应该改变。 任何想法?
@jwerde:有用。我用xslt 2.0试过这个。链接也很好。谢谢 – Sakthivel