try /jcr:root/textcaptcha//*

when you want to search from the root using xpath you have to name the root 
node in the path.

HTH,
Jan

On Jun 6, 2011, at 11:37 AM, Marvin Kerkhoff wrote:

> Hi there
>  
> I’ve try to do a query to the data workspace, but it does not works. I wish 
> to iterate through all textcaptchas folders.
> questionsList get out [ ] Can you help me? Thanks
>  
> <cms:query var="questionsList" query="textcaptcha//*[itemtype='textcaptcha']" 
> repository="data" type="xpath" />
> <captchas>
>       <c:forEach var="question" items="${questionsList}">
>        
>           <captcha>
>           <question>asdad</question>
>             <answers>
>              <answer>schwarz</answer>
>              <answer>Schwarz</answer>
>             </answers>
>           </captcha>
>  
>       </c:forEach>
> </captchas>
>  
> The Structure of Textcaptcha:
>  
>  
> - textcaptcha
>   - Folder
>      - answer
>      - itemtype
>      - name
>   - Folder
>      - answer
>      - itemtype
>      - name
> ….
>  
>  
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to