OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XSL writing


I can't see any issues with your XML and XSL file. In the later part of
your mail, I am not sure what you are talking about. Are you talking
about using the filesystem (directories and files) on your hard disk to
create a sitemap? Or do you mean you already have it in XML?

Of course you would need to convert your file system to XML first.
However, if you are talking about sorting XML node, there is an
<xsl:sort /> node that can do this:


However, I'd recommend doing sorting on arrays or with SQL.

David Hopkins

On Fri, 2009-04-24 at 17:05 +0100, P. White wrote:
> Hi.
> Apologies for posting such a simple problem to a rather advanced list, but
> I am dipping my toe into the world of XML stylesheets, and would very
>  much appreciate a little feedback, and maybe some help...
> Basically, I have taken an XML SiteMap, and written a simple stylesheet
> to render it in a browser window. My attempt is documented at:
> http://manx.biz/opensource/Grimoire/SiteMaps
> Firstly:
>   This is being used as a training exercise. As such, I am trying to be as
>   pedantic and technically correct as possible. Have I got everything
>   correct here? any omissions?
> Secondly:
>   It works. Quite simplistic, but it does the job. However, I am 
> wondering if
>   there is anything more I can do. I am most tempted by the idea of sorting
>   a large SiteMap by the directories contained therein, thus I have a 
> block of
>   http://site/dir-1/* entries, followed by the next directory, and so on...
>   However, with my current skills, this is defeating me. Any suggestions on
>   how I can achieve this?
> Many thanks,
> Phil
> _______________________________________________________________________
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS