K
kishjeff
Hi.
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'.
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>
So it might find this tab element:
<big id='aaa' >
<tab id='bbb' type='newtype' />
</big
but not these tab elements:
<big id='aaa' >
<tab id='bbb' type='list' />
<tab id='ccc' />
</big
Also finally, one last question.. base-uri is not returning the name
of the xml file, just the path part. How can I get that also so I know
what file it was in?
regards
Jeff
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'.
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>
So it might find this tab element:
<big id='aaa' >
<tab id='bbb' type='newtype' />
</big
but not these tab elements:
<big id='aaa' >
<tab id='bbb' type='list' />
<tab id='ccc' />
</big
Also finally, one last question.. base-uri is not returning the name
of the xml file, just the path part. How can I get that also so I know
what file it was in?
regards
Jeff