Ok Damir, if you're using the first pattern, then it look much like you're creating separate XML documents on your directory system, this will not enable you to issue a position() function because of the nature of your pattern (it's not a single XML document, it's a number of them). The second pattern however, is creating one document that has root element as "colors", and has child nodes named "color" for each, this basically resembles having one XML file in a directory, so it will distinguish your position() function for color elements.


From: "Damir Aysin" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>
Subject: Re: XPath issue
Date: Sat, 16 Feb 2002 11:50:08 +0400

Yes, You are right, I'm talking about follow structure :

In Xindice stored as differend "color" document. I'm working by follow
steps:
1. make Collections from xindice : all "color" documents
in Xindice stored as
  <color>
     <id>0001</id>
     <name>Black</name>
  </color>
2. make "colors" element with "color" childs
<colors>
  <color>
     <id>0001</id>
     <name>Black</name>
  </color>
  <color>
     <id>0002</id>
     <name>White</name>
  </color>
  ...
  ...
</colors>
3. make "position" process...... which is not working  ://




----- Original Message ----- From: "Yaser Al Masri" <[EMAIL PROTECTED]> To: <[email protected]> Sent: 2002-02-16 11:14 AM Subject: Re: XPath issue


> Hello Damir,
>
> Probably you have color items as punch of documents inside the collection
> colors. If you have them as color items in a single document, then your
> xpath statement will work. Creating color items as seperate documents
does
> not impose any relation between them as in case of one doument. I guess
> this is an issue that need to be worked on though.
>
> _________________________________________________________________
> Join the world�s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx




Reply via email to