[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Dmoz xml structure sort

Subject: RE: Dmoz xml structure sort
From: "John Hamman" <John@xxxxxxxxxxxxxxxxx>
Date: Wed, 21 Apr 2004 15:37:58 -0400
dmoz xml
Gotcha,
What im attempting to do is to create a well structured "sitemap" for
pulling breadcrumbs and navigation for a medium and large sites using xsl.

I copied DMOZ structure thinking it would be efficient but am finding its
not.

So what I did next it divide everything into directories
But that doesn't seem to be the way to go either. I'm looking into the
TopicMaps, seems what I'm looking for. But then I run into the problem of
sorting thru that to pull back my menus and breadcrumbs again.

-----Original Message-----
From: Robert Koberg [mailto:rob@xxxxxxxxxx] 
Sent: Wednesday, April 21, 2004 1:12 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Dmoz xml structure sort

John Hamman wrote:
> I love it, great solution.
> 
> Question though,
> Is there a way to apply this idea to this structure?
> 

I am not clear on exactly what you are asking (and if you are asking me).

First, are you familiar with Topic Maps?  Here is an article:
http://www.xml.com/pub/a/2002/09/11/topicmaps.html
this might be what you are trying to do.

If I guess at your full question that you want to use the example XSL I 
provided to style your Topics structure, then what I had shown is not 
really a match for your non-hierarchical structure. I believe it is not 
the best structure. Are you equating the file system with the ID 
strings? For example, you have:

<Topic r:id="Base/General_Information">
   <tag catid="2"/>
   <d:Title local="en-US">General Information</d:Title>
   <near resource="Base/General_Information/Staff_Directory"/>
</Topic>

<Topic r:id="Base/General_Information/Staff_Directory">
   <tag catid="8"/>
   <d:Title local="en-US">Staff Directory</d:Title>
</Topic>

and say you have 100s of pages in Topic/r:id="Base/General_Information".

If you are using the IDs to build links to your resources and you need 
to change a folder name and therefore you need to change the ID of the 
resource AND the IDs of ALL the children. If you nest topics and rename 
or move things you simply travel up and down the hierarchy to build 
things like links.

Make sense?

You need to provide more details on what you are trying to acheive.

best,
-Rob

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.