Hi,

I have a content node in which I store keywords by using checkboxes. The
uuid of the node which is referenced by the checkbox is stored in the node.

A piece of the XML for a certain node in the JCR looks like (I left out
stuff like the MetaData to keep it a bit readable):

<?xml version="1.0" encoding="UTF-8"?>
<sv:node sv:name="asimplenode" xmlns:jcr="http://www.jcp.org/jcr/1.0";
xmlns:mgnl="http://www.magnolia.info/jcr/mgnl";
  xmlns:rep="internal" xmlns:mix="http://www.jcp.org/jcr/mix/1.0";
xmlns:nt="http://www.jcp.org/jcr/nt/1.0";
  xmlns:fn="http://www.w3.org/2005/xpath-functions";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
  xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions";
xmlns:sv="http://www.jcp.org/jcr/sv/1.0";
xmlns:jcrfn="http://www.jcp.org/jcr/xpath-functions/1.0";>
  <sv:property sv:name="jcr:primaryType" sv:type="Name">
    <sv:value>mgnl:content</sv:value>
  </sv:property>
  <sv:property sv:name="jcr:mixinTypes" sv:type="Name">
    <sv:value>mix:lockable</sv:value>
  </sv:property>
  <sv:property sv:name="jcr:uuid" sv:type="String">
    <sv:value>52573da5-ed81-4372-afcc-39a1e52ffda6</sv:value>
  </sv:property>
  <sv:property sv:name="title" sv:type="String">
    <sv:value>This is my title</sv:value>
  </sv:property>
  <sv:node sv:name="keywords">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>mgnl:contentNode</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:mixinTypes" sv:type="Name">
      <sv:value>mix:lockable</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:uuid" sv:type="String">
      <sv:value>4b170214-9eab-4d87-b1d6-c2ea88aa4b3e</sv:value>
    </sv:property>
    <sv:property sv:name="0" sv:type="String">
      <sv:value>0b20d84e-2ba6-4e9d-b11e-c9d5c2409816</sv:value>
    </sv:property>
    <sv:property sv:name="1" sv:type="String">
      <sv:value>5289e05e-c14f-436c-aae9-f2a8d138a3b4</sv:value>
    </sv:property>
  </sv:node>
</sv:node>

My problem now is, how to get all nodes which reference to a certain
keyword. How do I retrieve this node when I know the UUID of the keyword is
'0b20d84e-2ba6-4e9d-b11e-c9d5c2409816' (see keywords/0)... it could as well
be located in paragraph 1, or 20 for what it's worth.

Any help would be greatly appreciated since I'm trying to get this thing to
work all day now.  %-|

Hope somebody can help me out here....

Cheers,
-- Marcel
-- 
View this message in context: 
http://www.nabble.com/Query-on-subnode-tp20033602p20033602.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------

Reply via email to