xsl-list
[Top] [All Lists]

RSS transform

2006-02-21 00:02:01
I'd like to do an "identity transform" with relaxer.  By identity
transform, I mean that foo.xml becomes bar.xml, and vice versa, when
they're transformed.  (Perhaps not "exactly," but that's the ideal.)


a post of mine from usenet:

Newsgroups: comp.text.xml
From: hawat(_dot_)thufir(_at_)gmail(_dot_)com
Subject: RSS transform
Message-ID: 
<Pine(_dot_)LNX(_dot_)4(_dot_)64(_dot_)0602191500380(_dot_)1329(_at_)ybpnyubfg(_dot_)ybpnyqbznva>


Google has an RSS feed of the most recent 15 messages of this group.
Arbitrarily, I saved that XML file.  I also save the RSS feed for the
NYTimes home page and an RSS feed from Amazon.

Relaxer will generate an XSD file but I'm not sure what to do with that.
What I'd like to do is to do an identity transform as described in the
tutorial introduction
<http://www.relaxer.org/doc/tutorial/tutorial_s1.html>:


In addition, Relaxer can generate:

     * Relax Core, XML Schema, and RELAX NG schemas based on XML instances
     * DTDs based on Relax Core and RELAX NG schemas
     * XSLT stylesheets (identity transforms) based on instances


I'm just mucking about here, and am just looking for a simple result.  I'd
like to use relaxer to do this but can't figure out how to do an identity
transform such that the result is for all intents and purposes exactly
what was transformed.

If I can get an identity transform for one of these RSS feeds that'd give
me a jumping off point to muck around, but right now I'm feeling a bit
stuck with how to "do" XSLT.  (I've got Xalon up and running, but nothing
to run through it.)


[thufir(_at_)localhost feedsRSS]$
[thufir(_at_)localhost feedsRSS]$ whoami
thufir
[thufir(_at_)localhost feedsRSS]$ pwd
/home/thufir/xalon/feedsRSS
[thufir(_at_)localhost feedsRSS]$ ll
total 36
-rw-rw-r--  1 thufir thufir  4360 Feb 19 15:12 HomePage.xml
-rw-rw-r--  1 thufir thufir 11659 Feb 19 14:57 rss_v2_0_msgs.xml
-rw-rw-r--  1 thufir thufir  3662 Feb 19 15:16 xml3.amazon.xml
[thufir(_at_)localhost feedsRSS]$ relaxer -verbose -xsd HomePage.xml
Copyright(c) 2000-2003 ASAMI,Tomoharu. All rights reserved.
Relaxer Version 1.0rc2 (20030605) by asami(_at_)relaxer(_dot_)org
Source file     : file:/home/thufir/xalon/feedsRSS/HomePage.xml
         artifact = HomePage.xsd
[thufir(_at_)localhost feedsRSS]$ relaxer -verbose -xsd rss_v2_0_msgs.xml
Copyright(c) 2000-2003 ASAMI,Tomoharu. All rights reserved.
Relaxer Version 1.0rc2 (20030605) by asami(_at_)relaxer(_dot_)org
Source file     : file:/home/thufir/xalon/feedsRSS/rss_v2_0_msgs.xml
         artifact = rss_v2_0_msgs.xsd
[thufir(_at_)localhost feedsRSS]$ relaxer -verbose -xsd xml3.amazon.xml
Copyright(c) 2000-2003 ASAMI,Tomoharu. All rights reserved.
Relaxer Version 1.0rc2 (20030605) by asami(_at_)relaxer(_dot_)org
Source file     : file:/home/thufir/xalon/feedsRSS/xml3.amazon.xml
         artifact = xml3.amazon.xsd
[thufir(_at_)localhost feedsRSS]$ ll
total 60
-rw-rw-r--  1 thufir thufir  4360 Feb 19 15:12 HomePage.xml
-rw-rw-r--  1 thufir thufir  1774 Feb 19 15:17 HomePage.xsd
-rw-rw-r--  1 thufir thufir 11659 Feb 19 14:57 rss_v2_0_msgs.xml
-rw-rw-r--  1 thufir thufir  1372 Feb 19 15:17 rss_v2_0_msgs.xsd
-rw-rw-r--  1 thufir thufir  3662 Feb 19 15:16 xml3.amazon.xml
-rw-rw-r--  1 thufir thufir  1438 Feb 19 15:18 xml3.amazon.xsd
[thufir(_at_)localhost feedsRSS]$ date
Sun Feb 19 15:18:12 EST 2006
[thufir(_at_)localhost feedsRSS]$




thanks,

Thufir

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>