W3C home > Mailing lists > Public > spec-prod@w3.org > April to June 2013

Re: ResSpec failure on data-include (RESOLVED)

From: <Frederick.Hirsch@nokia.com>
Date: Mon, 8 Apr 2013 21:25:14 +0000
To: <robin@w3.org>
CC: <Frederick.Hirsch@nokia.com>, <spec-prod@w3.org>
Message-ID: <1CB2E0B458B211478C85E11A404A2B2701A1AC0C@008-AM1MPN1-034.mgdnok.nokia.com>
I've resolved this issue, there is nothing wrong with either data-include or data-onlinclude. They both work great.

My source file was hopelessly out of date, as it hasn't been changed in a while. I now remember I replaced my function with showXML to address this and probably other issues.

Thanks, and apologies for the interruption.

regards, Frederick

Frederick Hirsch
Nokia



On Apr 8, 2013, at 4:25 PM,  wrote:

> I have an older ReSpec source file that used to work (with the dap v1 respec) but is now failing badly, perhaps something broke or I am not aware of a new call protocol or maybe I'm missing something obvious
> 
> I have a table entry of the form:
> 
> <td data-include='files/abc.xml' data-oninclude='updateExample'></td>
> 
> updateExample is defined as
> 
> function updateExample(doc, content) {
>       // perform transformations to make it render and prettier
>       return '<pre class="sh_xml">' + doc._esc(content) + '</pre>';
>     }
> 
> currently it looks like this processing is not happening.
> 
> Safari error console agrees, "WARN: call to updateExample() failed with TypeError: 'undefined' is not a function (evaluating 'doc._esc(content)')
> 
> Do data-include and data-oninclude still work in the latest release?
> 
> Any URL available for looking at the latest documentation, apart from looking at the git source which isn't so readable?
> 
> thanks
> 
> regards, Frederick
> 
> Frederick Hirsch
> Nokia
> 
> 
> 
Received on Monday, 8 April 2013 21:25:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:18 UTC