| Dimitre 的个人资料XSLT: Riding the challen...日志列表网络 | 帮助 |
|
7月5日 Transforming JSONUpdate: (Think that) finally managed to get from Windows Live Spaces the formatting I wanted... Update: Enhanced the JSON Lexer to properly deal with escaped characters within strings. How to handle \b and \f ??? ==================================== Ever wanted to access and manipulate JSON as ordinary XML? To transform it with XSLT? No problem, use the f:json-document() and f:json-file-document() as provided by FXSL. Here is a quick example: Let's have (yes, this is the Yahoo Traffic Service):
Then, f:json-document($vStr) evaluates to:
and you can transform nicely this XML document with XSLT now. The functions f:json-document() and f:json-file-document() are available immediately from the CVS of the FXSL project. All this pure XSLT magic (and sure, expect more to come) is possible with using the LR Parsing Framework implemented in FXSL. More to come soon. |
|
|