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

RE: Combining two XBEL XML files

Subject: RE: Combining two XBEL XML files
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 12 Jul 2008 17:07:14 +0100
RE:  Combining two XBEL XML files
Perhaps the reason that no-one answered before was that you didn't explain
the problem very well.

Your data seems to be hierarchic, containing folders and bookmarks and
titles. In this situation, it's far from clear what you mean when you say
you want the data sorted, or what you mean by combining the data. Give us a
simple example of two input files (short and nicely indented please), and
show us the output you want.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Aaron Gray [mailto:aaronngray.lists@xxxxxxxxxxxxxx] 
> Sent: 12 July 2008 16:56
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Combining two XBEL XML files
> 
> I want to combine two XML Bookmark Exchange Language files into one.
> 
>         http://pyxml.sourceforge.net/topics/xbel/
> 
> basically they are hierarchical XML files with folder, 
> bookmark and title elements.
> 
> They need sorting alphabetically and combining.
> 
> I have basic XSLT knowledge and have written a XBEL to HTML 
> converter in XSL which gives a contents list of folders with 
> links to the full hierarchical list of bookmarks, but am 
> stumped by combining two XBEL files.
> 
> If you could either give an example of a simular problems 
> solution or a basic guideline or structure of how to go about this.
> 
> Theres an example xbel file below.
> 
> Many thanks in advance,
> 
> Aaron
> 
> <?xml version="1.0" encoding="utf-8" ?>
> <!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark 
> Exchange Language 1.0//EN//XML" 
> "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd">
> <xbel>
> <folder>
> <title>Astrophysics</title>
> <bookmark
> href="http://space.newscientist.com/article/mg19626303.500-def
> lected-asteroids-may-keep-coming-back.html?feedId=online-news_rss20">
> <title>Deflected asteroids may keep coming back - space - 17 
> November 2007 - New Scientist Space</title> </bookmark> 
> <bookmark 
> href="http://space.newscientist.com/article.ns?id=dn12665&amp;
> feedId=online-news_rss20">
> <title>Did the big bang spawn trillions of black holes - 
> space - 19 September 2007 - New Scientist Space</title> 
> </bookmark> </folder> <folder> <title>Brain</title> <bookmark 
> href="http://technology.newscientist.com/channel/tech/dn13491-
> blue-leds-to-reset-tired-truckers-body-clocks.html?feedId=onli
> ne-news_rss20">
> <title>Blue LEDs to reset tired truckers&apos; body clocks - 
> tech - 18 March
> 2008 - New Scientist Tech</title>
> </bookmark>
> <bookmark
> href="http://www.newscientist.com/channel/health/dn13458-brain
> -map-project-set-to-revolutionise-neuroscience.html?feedId=onl
> ine-news_rss20">
> <title>Brain map project set to revolutionise neuroscience - 
> health - 13 March 2008 - New Scientist</title> </bookmark> 
> <bookmark 
> href="http://technology.newscientist.com/channel/tech/dn12991-
> invention-schizophrenia-spotter.html?feedId=online-news_rss20">
> <title>invention Schizophrenia spotter - tech - 03 December 
> 2007 - New Scientist Tech</title> </bookmark> <bookmark 
> href="http://www.newscientist.com/channel/health/brain">
> <title>Special Report on The Human Brain - New 
> Scientist</title> </bookmark> <bookmark 
> href="http://www.sciam.com/article.cfm?chanID=sa003&amp;articl
> eID=26362807-E7F2-99DF-3071E2B871080EB8&amp;ref=rss">
> <title>The Birth of a Brain Cell Scientists Witness 
> Neurogenesis Scientific American</title> </bookmark> 
> <bookmark 
> href="http://science-community.sciam.com/blog-entry/Mind-Matte
> rs/Reading-Brain/5800000217">
> <title>The Reading Brain Blogs Scientific American 
> Community</title> </bookmark> </folder> <folder> 
> <title>XSLT</title> <bookmark 
> href="http://www.microsoft.com/downloads/details.aspx?FamilyId
> =2FB55371-C94E-4373-B0E9-DB4816552E41&amp;displaylang=en#filelist">
> <title>Download details Command Line Transformation Utility 
> (msxsl.exe)</title> </bookmark> <bookmark 
> href="http://msdn2.microsoft.com/en-us/library/ms950776.aspx">
> <title>exslt Enhancing the Power of XSLT</title> </bookmark> 
> <bookmark href="http://mvp-xml.sourceforge.net/exslt/">
> <title>Mvp.Xml project EXSLT.NET module</title> </bookmark> 
> <bookmark href="http://www.xmlplease.com/xhtmlxhtml#footnote-1">
> <title>Transform XHTML to XHTML with XSLT</title> </bookmark> 
> <bookmark href="http://www.w3.org/TR/xslt"> <title>XSL 
> Transformations (XSLT)</title> </bookmark> <bookmark 
> href="http://www.xmlplease.com/xhtml">
> <title>XSLT for XHTML</title>
> </bookmark>
> </folder>
> <bookmark href="https://www.bethere.co.uk/">
> <title>Be 24 meg broadband, the UK&apos;s fastest broadband 
> ISP</title> </bookmark> <bookmark 
> href="http://www.chomsky.info/index.htm">
> <title>chomsky.info  The Noam Chomsky Website</title> 
> </bookmark> <bookmark 
> href="http://java.sun.com/docs/books/jls/download/langspec-3.0.pdf">
> <title>http--java.sun.com-docs-books-jls-download-langspec-3.0
> .pdf</title>
> </bookmark>
> <bookmark
> href="http://support.thetechguys.com/Layout.aspx?ID={37851ef7-
2cd7-4464-9daa-732da20d94c6}&amp;CatID={c7c9a717-9744-4545-bc0f-6cb07c02a705
}">
> <title>The TechGuys  Welcome to The TechGuys</title> 
> </bookmark> <bookmark 
> href="http://www.research.att.com/sw/tools/uwin/">
> <title>UWIN</title>
> </bookmark>
> </xbel> 

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.