how can I recover a corrupted xsn file due to invalid view?

M

massiC

Hi, I am developing a form.

At a certain point, I have added some more controls to the existing,
functioning form. When I tried to create a new document using the form,
I got the error:

Modello di modulo:
file:///E:\dev\hr-xml\personale\forms\PERS-SCHEDA-2.xsn
Impossibile aprire la visualizzazione seguente: Visualizzazione 1
Il file di visualizzazione seguente non è valido: view1.xsl
Il file XSL non è un documento XSL valido.
Previsto token ')', trovato '['.

{xdBinding:getNodeID(../..-->[<--1]/hr:EmployerOrg[1]/hr:positionHistory[1]/hr:OrgName/hr:OrganizationName)}

It seems that the view1.xsl file generated by InfoPath is corrupted. I
have unzipped the xsn file, and the only fragment where the expression
appears is one control:

<div>azienda:
<span class="xdTextBox" hideFocus="1" title="" xd:xctname="PlainText"
tabIndex="0"
xd:CtrlId="CTRL70"

xd:binding="../..[1]/hr:EmployerOrg[1]/hr:positionHistory[1]/hr:OrgName/hr:OrganizationName"
style="WIDTH: 100%">
<xsl:value-of

select="../..[1]/hr:EmployerOrg[1]/hr:positionHistory[1]/hr:OrgName/hr:OrganizationName"/>
</span>
</div>


but I don't find the sintax error highlighted.

HOW CAN I RECOVER THE FORM? I have tried to edit manually the
view1.xsl, without success.

Thanks

Massimo
 
S

S.Y.M. Wong-A-Ton

It looks like the "../..[" is being replaced at runtime and InfoPath does not
like that syntax somehow. How did you generate that XPath expression from
within InfoPath? Try deleting the entire <div>...</div> section containing
that node from the view1.xsl and try opening InfoPath again.
 
M

massiC

S.Y.M. Wong-A-Ton ha scritto:
It looks like the "../..[" is being replaced at runtime and InfoPath doesnot
like that syntax somehow. How did you generate that XPath expression from
within InfoPath? Try deleting the entire <div>...</div> section containing
that node from the view1.xsl and try opening InfoPath again.

I have tried to delete the <div>, and I have also updated the
manifest.mf file, eliminating the reference to the original .xsn file,
but the error comes out again. I have searched the whold directory
obtained unzipping the .xsn file, and there isn't the expression in any
file.

I don't know what else can I do, maybe redesigning the form, starting
from a backup copy... :-(

thanks

massiC
massiC said:
Hi, I am developing a form.

At a certain point, I have added some more controls to the existing,
functioning form. When I tried to create a new document using the form,
I got the error:

Modello di modulo:
file:///E:\dev\hr-xml\personale\forms\PERS-SCHEDA-2.xsn
Impossibile aprire la visualizzazione seguente: Visualizzazione 1
Il file di visualizzazione seguente non è valido: view1.xsl
Il file XSL non è un documento XSL valido.
Previsto token ')', trovato '['.

{xdBinding:getNodeID(../..-->[<--1]/hr:EmployerOrg[1]/hr:positionHistory[1]/hr:OrgName/hr:OrganizationName)}

It seems that the view1.xsl file generated by InfoPath is corrupted. I
have unzipped the xsn file, and the only fragment where the expression
appears is one control:

<div>azienda:
<span class="xdTextBox" hideFocus="1" title="" xd:xctname="PlainText"
tabIndex="0"
xd:CtrlId="CTRL70"

xd:binding="../..[1]/hr:EmployerOrg[1]/hr:positionHistory[1]/hr:OrgName/hr:OrganizationName"
style="WIDTH: 100%">
<xsl:value-of

select="../..[1]/hr:EmployerOrg[1]/hr:positionHistory[1]/hr:OrgName/hr:OrganizationName"/>
</span>
</div>


but I don't find the sintax error highlighted.

HOW CAN I RECOVER THE FORM? I have tried to edit manually the
view1.xsl, without success.

Thanks

Massimo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top