I fixed this.  It had to do with the menu and using the foaf namespace.

Thanks,

Monisha


MShah wrote:
> 
> I have successfully added and edited the custom person resource type, but
> I created my own resource type based of the person sample, but when I try
> to add this new resource type I am adding the person type again.  I am
> using Lenya 2.0.2.  Is there some file that I have not changed?
> 
> Here is the folder structure for the new resource type that I created and
> added:
> 
> 
> $PUBLICATION FOLDER\config
> $PUBLICATION FOLDER\config\menu.xsp
> $PUBLICATION FOLDER\config\module.xml
> $PUBLICATION FOLDER\config\cocoon-xconf
> $PUBLICATION
> FOLDER\config\cocoon-xconf\resourcetype-generaltemplateone.xconf
> $PUBLICATION FOLDER\resources
> $PUBLICATION FOLDER\samples
> $PUBLICATION FOLDER\samples\foaf.xml
> $PUBLICATION FOLDER\xslt
> $PUBLICATION FOLDER\xslt\foaf2xhtml.xsl
> $PUBLICATION FOLDER\menus.xmap
> $PUBLICATION FOLDER\sitemap.xmap
> 
> Here is my foaf2xhtml.xsl file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
>   xmlns:foaf="http://xmlns.com/foaf/0.1/";
>   xmlns="http://www.w3.org/1999/xhtml";>
>   
>   <xsl:template match="rdf:RDF">
>     <html>
>       <body>
>         <div id="body">       
>               <xsl:apply-templates select="foaf:generaltemplateone"/>
>       </div>
>       </body>
>     </html>
>   </xsl:template>
>   
>   <xsl:template match="foaf:generaltemplateone">
> 
>                       
>                       <xsl:variable name="lifestyle_img"
> select="foaf:lifestyle_img/@rdf:resource"/>
>                        {$lifestyle_img} 
>                                               
>                                                               
>                       <xsl:value-of select="foaf:title"/>
>                                                               
>                       <xsl:value-of select="foaf:page_body"/>
>                       
>   </xsl:template>
> 
> </xsl:stylesheet>
> 
> Here is the foaf.xml file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <rdf:RDF
>   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
>   xmlns:foaf="http://xmlns.com/foaf/0.1/";>
>   <foaf:generaltemplateone rdf:ID="me">
>     <foaf:title>Contact Us</foaf:title>
>     <foaf:lifestyle_img rdf:resource="images/contact_photo.jpg"/>
>     <foaf:page_body>HTML content to be displayed</foaf:page_body>
>   </foaf:generaltemplateone>
> </rdf:RDF>
> 
> 
> Do I have to change the rdf of the foaf namespace to get around this
> problem.  Please let me know.
> 
> Your input in getting this corrected will be much appreciated.
> 
> Best regards,
> 
> Monisha
> 

-- 
View this message in context: 
http://www.nabble.com/Adding-the-custom-resource-always-causes-the-new-resource-of-type-person-to-be-created.-tp22106603p22112350.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to