[Xsltforms-support] XSLTForms and SVG
Brought to you by:
alain-couthures
|
From: Tim T. <tim...@gm...> - 2016-01-19 13:11:57
|
Alain, I am hoping to do some work with XForms and SVG and have been looking at the current XSLTForms SVG examples. I noticed that, since rev. 595 of XSLTForms, none of the SVG examples work in Firefox. The reason seems to be the changes made to the fallback identity template in xsltforms.xsl. In the latest revision, if lines 1203-1228[1] are reverted back to the template used prior to rev. 595, then the SVG examples will work in Firefox: <xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform" match="node()|@*" priority="-2"> <xsl:param name="appearance" select="@appearance"/> <xsl:param name="parentworkid"/> <xsl:param name="workid" select="concat(position(),'_',$parentworkid)"/> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:apply-templates select="node()"> <xsl:with-param name="parentworkid" select="$workid"/> <xsl:with-param name="appearance" select="$appearance"/> </xsl:apply-templates> </xsl:copy> </xsl:template> Is there a reason not to use this more generic template? I tested on a range of browsers and did not notice any immediate issues. Thanks again! Tim [1] https://github.com/AlainCouthures/xsltforms/blob/master/build/xsltforms.xsl#L1203 -- Tim A. Thompson Metadata Librarian (Spanish/Portuguese Specialty) Princeton University Library |