Re: [Xsltforms-support] namespace in instance causing error
Brought to you by:
alain-couthures
From: Paul K. <pa...@xm...> - 2009-11-27 21:32:29
|
OK, occured to me to view source on the output and here's what I found: new XFInstance("events",xf_model_0,null,'<newsm:newsitem xmlns:newsml="http://iptc.org/std/nar/2006-10-01/">foo</newsm:newsitem>'); Note: "<newsm:newsitem" So I followed the trail in xsltforms.xsl to here: <xsl:template match="xforms:instance" mode="script" priority="1"> and then inside that template to here: <xsl:otherwise> <xsl:text>null,'</xsl:text> <xsl:apply-templates select="*" mode="xml2string"> <xsl:with-param name="root" select="true()"/> </xsl:apply-templates> <xsl:text>'); </xsl:text> </xsl:otherwise> From there I think it's handed off to: <xsl:template match="*" mode="xml2string"> where it looks like the culprit is: <xsl:value-of select="name()"/> i.e. name() = newsm:newsitem Seems crazy. Am I right? If so it looks like a processor bug? Are you able to reproduce based on that second corrected code I sent, Alain? On 2009-11-27, at 3:42 PM, Paul Kelly wrote: > Problem still exists though :) I fixed the code to make it re-produce the original error I specified. > > Did you run the corrected code? That should show you the truncation of the name. > > > On 2009-11-27, at 3:23 PM, COUTHURES Alain wrote: > >> Paul, >>> Sorry, the following line was wrong: >>> >>> <xf:instance xmlns:newsml="" id="events"> >>> >>> should be: >>> >>> <xf:instance xmlns="" id="events"> >>> >> Yes, for me this is detected by the browser itself. >> >> Thank you for testing XSLTForms ! >> >> -Alain > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |