Subject: [xsl] RSS transform From: "THUFIR HAWAT" <hawat.thufir@xxxxxxxxx> Date: Tue, 21 Feb 2006 02:02:01 -0500 |
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.thufir@xxxxxxxxx Subject: RSS transform Message-ID: <Pine.LNX.4.64.0602191500380.1329@xxxxxxxxxxxxxxxxxxxxx> 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@localhost feedsRSS]$ [thufir@localhost feedsRSS]$ whoami thufir [thufir@localhost feedsRSS]$ pwd /home/thufir/xalon/feedsRSS [thufir@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@localhost feedsRSS]$ relaxer -verbose -xsd HomePage.xml Copyright(c) 2000-2003 ASAMI,Tomoharu. All rights reserved. Relaxer Version 1.0rc2 (20030605) by asami@xxxxxxxxxxx Source file : file:/home/thufir/xalon/feedsRSS/HomePage.xml artifact = HomePage.xsd [thufir@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@xxxxxxxxxxx Source file : file:/home/thufir/xalon/feedsRSS/rss_v2_0_msgs.xml artifact = rss_v2_0_msgs.xsd [thufir@localhost feedsRSS]$ relaxer -verbose -xsd xml3.amazon.xml Copyright(c) 2000-2003 ASAMI,Tomoharu. All rights reserved. Relaxer Version 1.0rc2 (20030605) by asami@xxxxxxxxxxx Source file : file:/home/thufir/xalon/feedsRSS/xml3.amazon.xml artifact = xml3.amazon.xsd [thufir@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@localhost feedsRSS]$ date Sun Feb 19 15:18:12 EST 2006 [thufir@localhost feedsRSS]$ thanks, Thufir
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Grouping of irregular XML, Michael Kay | Thread | Re: [xsl] RSS transform, Jon Gorman |
[xsl] Grouping of irregular XML, Paul Clarke | Date | Re: [xsl] Implementing an Blogger-s, Terence Kearns |
Month |