On Dec 16, 10:56*am, Martin Honnen <mahotr...@yahoo.de> wrote:
> kishjeff wrote:
> > I would like to find all elements of type 'tab' that have an attribute
> > named 'type' and also that the type attribute is not called 'list'.
>
> * doc('file.xml')//tab[@type and @type ne 'list']
I'm afraid that the @type isn't compiling in my xquery machine I have
at my disposal.
I guess I'll have to get something else to work in its stead. too bad
it has a nice gui
front end... unless there is another way?
>
> > I've tried this but it won't compile by my xquery interpreter (a
> > little long in the tooth I'm afraid)
>
> > for $doc in collection('c:\myxml')
> > for $a in $doc //tab[(@type)]
> > return
> > <Atable> tokenize({base-uri($a)},{data($a/@beanclass)},{node-name($a)},
> > {$a}</Atable>
>
> What do you want to do with the tokenize function?
Get the name of the xml file (out of the collection of xml files) that
the result came from
>
> --
>
> * * * * Martin Honnen
> * * * *http://JavaScript.FAQTs.com/
Thanks again
Jeff