Quantcast

distinct-attribute-names function return ""

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

distinct-attribute-names function return ""

lin_xd

hi,all , when I using function distinct-attribute-names, but I got some return like "", why?



--
此致

easy

莫愁前路无知己,天下谁人不识君。


 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: distinct-attribute-names function return ""

lin_xd

develop version, windows, jdk1.8,

node with no attribute will return "", is reasonable?



--
此致

  easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-06 16:22:16,"林晓东" <[hidden email]> 写道:

hi,all , when I using function distinct-attribute-names, but I got some return like "", why?



--
此致

easy

莫愁前路无知己,天下谁人不识君。


 



 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: distinct-attribute-names function return ""

Joe Wicentowski
Hi Xiaodong,

I'm not familiar with this function. Are you talking about this one?


Looking at the code for this function, I would not expect an empty string as a result.

Joe

On Sat, May 6, 2017 at 9:23 PM 林晓东 <[hidden email]> wrote:

develop version, windows, jdk1.8,

node with no attribute will return "", is reasonable?



--
此致

  easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-06 16:22:16,"林晓东" <[hidden email]> 写道:

hi,all , when I using function distinct-attribute-names, but I got some return like "", why?



--
此致

easy

莫愁前路无知己,天下谁人不识君。


 



 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
--
Sent from my iPhone

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: distinct-attribute-names function return ""

lin_xd
 right,
  node with no attribute will back ""




--
此致

easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-07 09:57:48,"Joe Wicentowski" <[hidden email]> 写道:
Hi Xiaodong,

I'm not familiar with this function. Are you talking about this one?


Looking at the code for this function, I would not expect an empty string as a result.

Joe

On Sat, May 6, 2017 at 9:23 PM 林晓东 <[hidden email]> wrote:

develop version, windows, jdk1.8,

node with no attribute will return "", is reasonable?



--
此致

  easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-06 16:22:16,"林晓东" <[hidden email]> 写道:

hi,all , when I using function distinct-attribute-names, but I got some return like "", why?



--
此致

easy

莫愁前路无知己,天下谁人不识君。


 



 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
--
Sent from my iPhone


 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: distinct-attribute-names function return ""

Joe Wicentowski
Can you give a reproducible example?

On Mon, May 8, 2017 at 11:11 AM 林晓东 <[hidden email]> wrote:
 right,
  node with no attribute will back ""




--
此致

easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-07 09:57:48,"Joe Wicentowski" <[hidden email]> 写道:
Hi Xiaodong,

I'm not familiar with this function. Are you talking about this one?


Looking at the code for this function, I would not expect an empty string as a result.

Joe

On Sat, May 6, 2017 at 9:23 PM 林晓东 <[hidden email]> wrote:

develop version, windows, jdk1.8,

node with no attribute will return "", is reasonable?



--
此致

  easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-06 16:22:16,"林晓东" <[hidden email]> 写道:

hi,all , when I using function distinct-attribute-names, but I got some return like "", why?



--
此致

easy

莫愁前路无知己,天下谁人不识君。


 



 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
--
Sent from my iPhone
--
Sent from my iPhone

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: distinct-attribute-names function return ""

lin_xd
import module namespace functx = "http://www.functx.com"  at "/db/system/repo/functx-1.0/functx/functx.xql";
 
  functx:distinct-attribute-names(<HDSD00.01.02><row/></HDSD00.01.02>)





--
此致
easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-08 23:31:20,"Joe Wicentowski" <[hidden email]> 写道:
Can you give a reproducible example?

On Mon, May 8, 2017 at 11:11 AM 林晓东 <[hidden email]> wrote:
 right,
  node with no attribute will back ""




--
此致

easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-07 09:57:48,"Joe Wicentowski" <[hidden email]> 写道:
Hi Xiaodong,

I'm not familiar with this function. Are you talking about this one?


Looking at the code for this function, I would not expect an empty string as a result.

Joe

On Sat, May 6, 2017 at 9:23 PM 林晓东 <[hidden email]> wrote:

develop version, windows, jdk1.8,

node with no attribute will return "", is reasonable?



--
此致

  easy

莫愁前路无知己,天下谁人不识君。

在 2017-05-06 16:22:16,"林晓东" <[hidden email]> 写道:

hi,all , when I using function distinct-attribute-names, but I got some return like "", why?



--
此致

easy

莫愁前路无知己,天下谁人不识君。


 



 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
--
Sent from my iPhone
--
Sent from my iPhone


 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: distinct-attribute-names function return ""

Dannes Wessels-3
please mention more details, like *how* do you run the query? when providing more info upfront, you get your answer much quicker, and saves us a lot of time;

My assumption is: the query is executed in eXide, in adaptive mode. 

rewritten as "empty(functx:distinct-attribute-names(<HDSD00.01.02></HDSD00.01.02>))” it looks like that indeed not an empty string is returned… digging deeper, "<HDSD00.01.02><a/></HDSD00.01.02>//@*/name(.)” does not return an empty sequence either.

according to Saxon (OxygenXML) the result is indeed not OK...


On 9 May 2017, at 2:40 , 林晓东 <[hidden email]> wrote:

import module namespace functx = "http://www.functx.com"  at "/db/system/repo/functx-1.0/functx/functx.xql"; 
 
  functx:distinct-attribute-names(<HDSD00.01.02><row/></HDSD00.01.02>)


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: distinct-attribute-names function return ""

Dmitriy Shabanov


On Tue, May 9, 2017 at 10:22 PM, Dannes Wessels <[hidden email]> wrote:
please mention more details, like *how* do you run the query? when providing more info upfront, you get your answer much quicker, and saves us a lot of time;

My assumption is: the query is executed in eXide, in adaptive mode. 

rewritten as "empty(functx:distinct-attribute-names(<HDSD00.01.02></HDSD00.01.02>))” it looks like that indeed not an empty string is returned… digging deeper, "<HDSD00.01.02><a/></HDSD00.01.02>//@*/name(.)” does not return an empty sequence either.

according to Saxon (OxygenXML) the result is indeed not OK...


"If the argument is supplied and is the empty sequence, the function returns the zero-length string."

--
Dmitriy Shabanov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...