Hello Isidro,

This issue has already been fixed in the latest builds.

You can download files at source repositories:
http://sourceforge.net/p/xsltforms/code/ci/master/tarball,
http://sourceforge.net/p/xsltforms/svn/HEAD/tarball or
http://github.com/AlainCouthures/xsltforms/archive/master.zip

Thank you for your feedbacks!

-Alain

Le 19/01/2014 03:47, Isidro Vila Verde a écrit :
Hello Alain,

Sorry the delay, I am been very busy and as I found a workaround I didn't find any time to prepare it.

Now here is it

First the xforms code

<?xml-stylesheet type="text/xsl" href="../xsltforms/xsltforms.xsl"?>
<html
  xmlns="http://www.w3.org/1999/xhtml";
  xmlns:ev="http://www.w3.org/2001/xml-events";
  xmlns:xf="http://www.w3.org/2002/xforms";>
  <head>
    <xf:model schema="pattern-bug.xsd">
      <xf:instance id="test">
        <dummy xmlns=""/>
      </xf:instance>
    </xf:model>
  </head>
  <body>some text</body>
</html>

and the pattern-bug.xsd file

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
  <xs:simpleType name="mypattern">
      <xs:restriction base="xs:string">
<xs:pattern value="./."/> <!-- the problem is the unescaped slash -->
      </xs:restriction>
    </xs:simpleType>
</xs:schema>

It give a xsltform exception in FF and Chrome

Incorrect Javascript code generation:

ReferenceError: xsltforms_initImpl is not defined
at xsltforms_init (http://localhost:8984/static/test/pattern-bug.xml:55:1)
    at onload (http://localhost:8984/static/test/pattern-bug.xml:60:175)

ReferenceError

xsltforms_initImpl is not defined


The workaround is to escape the slash.

Thank you

Isidro


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to