You are right, the namespace is indeed used in xhtml. But why you use

getXPathCount("//xhtml:body//xforms:groups")

not

getXPathCount("//xhtml:body/xforms:groups") ?

To overwrite the default tag, just specify the tag as a new value
inside the clocator.
Here, you specify it as an empty string "", i.e.,

Input(uid: "whatever", clocator: [tag: "", REST])

Thanks,

Jian

On Mar 14, 10:19 pm, Harihara Vinayakaram <[email protected]> wrote:
> Hi
>    I did some more investigations . This is source of the xhtml file is
> something like
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events"; 
> xmlns:xforms="http://www.w3.org/2002/xforms"; 
> xmlns:xhtml="http://www.w3.org/1999/xhtml";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>     <xhtml:head>
> ......
>     </xhtml:head>
>     <xhtml:body>
>             <xforms:submit....>
>                ...
>                                      <xforms:input
> model="clinicalExaminationModel"
> ref="/root/ClinicalExamination/GeneralExamination/Weight">
>                     <xforms:label>Weight </xforms:label>
>                 </xforms:input>
> .
>               ....
>     </xhtml:body>
> </xhtml:html>
>
> Now when I use Tellurium I get the following responses :
>         getXPathCount("//xhtml:html")   ----> 1
>         getXPathCount("//xhtml:body")  ----> 1
>         getXPathCount("//xhtml:body//xforms:groups")   --> gives invalid
> xpath
>
> The xpath that is generated when I try ui.Input is
>     //inp...@ref="....."]
> and when I try TextBox if it
>    //*...@ref="..."]
>
> Based on the above is why I supsect there is a implicit xhtml namespace
> understanding but does not understand anything else
>
> Where do I override the default input tag ?
>
> Regards
> Hari
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to