[daisy] Get complete navigation Tree

Sieranski, Greg greg.sieranski at quoininc.com
Tue May 6 20:28:36 CEST 2008


We are currently running into a problem where the url is not displaying 
the nodeId. Using the navaggregator example I modified the 
navaggr_result.xsl to be:

      <xsl:for-each select="p:publisherResponse/p:document">
           <a 
href="daisy:{@documentId}@{@branchId}:{@languageId}"><xsl:value-of 
select="@documentId"/></a>
        </xsl:for-each>

I then changed the sitemap to:
 <map:match pattern="navaggr-result">
       <map:generate type="jx" src="navaggr_result.xml"/>
       <map:transform src="navaggr_result.xsl"/>
       <map:transform type="DaisyLinks"/>
       <map:transform type="serializer"/>
       <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>

this gave us <a href="/foo/2-DSY.html?branch=1&language=1">2-DSY</a> but 
we need the node id not documentID. So we want <a 
href="/foo/foo-home.html?branch=1&language=1">2-DSY</a>

Is there a way to get the nodeId instead of the documentId?

-- 
Regards,
</Greg>

> Please reply on top.  There is no specific guide, but it seems most
> people reply on top (or inline for longer mails).  Anyway, it is
> particularily difficult to read threads if the reply styles alternate
> between top and bottom.
>
> That being said, I don't see the problem.
> * Do you mean you want include the server name and the mountpoint in the
> Urls? => Easy peasy, check the numerous xsl files, the flowscript
> examples and search for 'pageContext' in the daisy documentation site.
>
> * Do you mean you want to render the full path in the navigation tree
> (e.g. /nodeId1/nodeId2/123-DSY/456-DSY)? Again, really easy, it seems
> the sitemap xml format maps really wel to the navigation tree xml.  The
> existing navigation.xsl should provide sufficient inspiration to solve
> this task.
>
> Regards,
> Karel
>
> On Tue, 2008-05-06 at 08:58 -0400, Sieranski, Greg wrote:
>   
>> Sieranski, Greg wrote:
>>     
>>> Paul Focke wrote:
>>>       
>
>   
>> I am looking to create a sitemap.xml and for the
>>
>> <url <http://www.sitemaps.org/protocol.php#urldef>>
>>       <loc <http://www.sitemaps.org/protocol.php#locdef>>http://www.example.com/</loc>
>> </url
>>
>> I want to be able to dynamically get all the links in the main navigation menu without having to hard code them.
>>
>>
>>     
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>   


-- 
Regards,
</Greg>



More information about the daisy mailing list