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

Re: XSL writing

  • From: David <david@s...>
  • To: 'XML Developers List' <xml-dev@l...>
  • Date: Fri, 24 Apr 2009 17:26:38 +0100

Re:  XSL writing
Hi,

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:

http://www.w3schools.com/xsl/el_sort.asp

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

David Hopkins
http://semlabs.co.uk/

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@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 


  • References:

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


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.