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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: Re: [docbook-apps] sorting Docbook


Hi,
Actually, your stylesheet does work.  When I downloaded your blog-sort.xsl
and blog.xml files, and applied the stylesheet with xsltproc:

xsltproc -o sorted.xml blog-sort.xsl blog.xml

I got a correctly sorted output, with the dates in this order in 
sorted.xml:

      <date>2005-01-01</date>
      <date>2005-07-07</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
      <date>2005-08-27</date>
 <date>2005-08-27</date>
 <date>2005-08-27</date>
 <date>2005-08-27</date>
 <date>2005-08-27</date>
 <date>2005-08-27</date>
 <date>2005-08-27</date>
 <date>2005-08-27</date>
      <date>2005-08-28</date>
 <date>2005-09-22</date>
      <date>2005-09-23</date>
 <date>2005-09-23</date>
      <date>2005-10-05</date>
 <date>2005-10-05</date>
      <date>2005-10-08</date>
 <date>2005-11-03</date>
      <date>2005-11-26</date>
 <date>2005-11-27</date>
 <date>2005-12-05</date>
 <date>2005-12-06</date>
      <date>2005-12-07</date>
      <date>2005-12-20</date>
      <date>2005-12-26</date>
 <date>2005-12-26</date>
      <date>2005-12-28</date>
      <date>2006-01-05</date>
      <date>2006-01-30</date>
      <date>2006-02-20</date>
 <date>2006-02-20</date>
 <date>2006-04-27</date>
      <date>2006-05-09</date>
 <date>2006-05-09</date>
 <date>2006-05-26</date>
 <date>2006-05-30</date>
      <date>2006-08-10</date>
 <date>2006-08-10</date>
      <date>2006-12-01</date>
      <date>2006-12-01</date>
      <date>2006-12-04</date>

I don't understand why it didn't work for you.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Matej Cepl" <mcepl@redhat.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Saturday, April 07, 2007 3:25 PM
Subject: [docbook-apps] sorting Docbook


> Hi,
>
> trying to switch my blog to Docbook (as source, of course HTML/Atom is to
> be produced via XSLT), and I got stuck with one (I am afraid, rather
> elementary) problem with XSLT. I have compiled all my blogs into one XML
> file (it is not valid Docbook yet; http://www.ceplovi.cz/matej/blogdata/
> blog.xml) and then tried to sort the entries according to their info/date
> element using my own variant (http://www.ceplovi.cz/matej/blogdata/blog-
> sort.xsl) of sorting XSLT stylesheet from http://www.xml.com/pub/
> a/2002/07/03/transform.html However, xsltproc when running over the
> document (and it is not sorted, for example entry "Mannheim’s Paradox" is
> out of order) does exactly nothing (checked with diff).
>
> I am doing probably some really stupid mistake, but I cannot find for the
> world, what's that.
>
> Can anybody help me, please?
>
> Thanks,
>
> Matej
> -- 
> http://www.ceplovi.cz/matej/blog/, Jabber: ceplma<at>jabber.cz
> GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
>
> He uses statistics as a drunken man uses lamp-posts... for
> support, rather than illumination.
>      -- Andrew Lang
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 




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