xforms "instance namespace" issue
Posted
by user302254
on Stack Overflow
See other posts from Stack Overflow
or by user302254
Published on 2010-04-06T02:31:32Z
Indexed on
2010/04/06
8:03 UTC
Read the original article
Hit count: 485
I am creating an Xform that reads an XML document and creates an input form for updating the document. However, apparently due to a namespace issue none of my Xpath expressions resolve.My form works fine on a simple instance when the instance file has no namespace. However, I need the namespace support.
My instance file has a namespace "ai:inventory."
I am referencing the instance data
Where should I be declaring the prefix "ai" for my namespace so that my XPath expressions can find the appropriate elements? /ai:inventory/products ?
I've tried creating the prefix in the html opening tag... that didn't help.
thanks,
© Stack Overflow or respective owner