- // var string = (new XMLSerializer()).serializeToString(doc);\r
- // console.log('rendering', string);\r
- \r
- var result = xslt.transformToFragment(doc, document);\r
- var string = serializeXML(result);\r
- var dest = $('#dest');\r
- dest.val( string );\r
- $('#preview').html(string);\r
- }); \r
+ // console.log("Parsed", doc);\r
+ var along = there.transformToDocument(doc).documentElement;\r
+ // console.log("HTML", along, serializeXML(along) );\r
+ var xfrm = here.transformToDocument(along).documentElement;\r
+ // console.log("WLML", xfrm, serializeXML(xfrm) );\r
+ var out = (new XMLSerializer()).serializeToString(xfrm);\r
+ $('#dest').val(out);\r
+ });\r
+]]>\r