OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: allanjard on August 17, 2005, 05:21:02 am

Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: allanjard on August 17, 2005, 05:21:02 am
Hello all,

Does anyone know of any programs for pdaxrom that will let me perform xsl-fo etc transforms? The editor part is obviously just a text editor, although a specialist application would be nice as well. I couldn't see any, but there might be something I missed...

Thanks
Allan
Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: jh on August 17, 2005, 10:56:47 am
Well... libxml is currently in the pdaXrom, so that's a good start.  I can't imagine compiling libxslt with the SDK would be too hard... I can actually give it a shot sometime today.  That gets you started...

In my three-second google search I saw "xmlroff - xmlroff (http://xmlroff.sourceforge.net/) is a free open source project based on libxml2 and other GNOME libraries. It is written in C"

Is that something that would work for you?  I wonder how many gnome libraries it actually uses... if it's not much than it should be ok to compile, too.

jason
Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: allanjard on August 17, 2005, 12:20:00 pm
Hi Jason,

xmlroff certainly looks like it would probably work.

I must try and set up the SDK compiler on my machine.... (edit - I guess I can't - just looked and I don't see a cross compiler for PPC or a native on the c1000   )

Thanks
Allan
Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: jh on August 17, 2005, 02:00:36 pm
Ok... just tried to compile xmlroff... it has a dependency on libgnomeprint >= 2.8 but the version in pdaxrom is 2.6.2.  I'm afraid if I try and compile a newer version of ligbnomeprint I might get into dependency hell and wind up compiling a good portion of gnome 2.8.

Maybe an older version supports an older libgnomeprint.  I was able to compile the latest libxml2 and libxslt (xslt required an upgrade of libxml2), though.

jason
Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: allanjard on August 18, 2005, 04:58:31 am
That's wonderful - thanks. Any chance you could post them? I just remembered that I installed Virtual PC on my powerbook ages ago (used it at the time and not since...) so I'll try installing a cross compiler on that (its getting complicated... lol). Then I'll fidget around with whatever packages I can find as well.

Thanks
A
Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: jh on August 18, 2005, 11:14:40 am
Quote
That's wonderful - thanks. Any chance you could post them? I just remembered that I installed Virtual PC on my powerbook ages ago (used it at the time and not since...) so I'll try installing a cross compiler on that (its getting complicated... lol). Then I'll fidget around with whatever packages I can find as well.

Thanks
A
[div align=\"right\"][a href=\"index.php?act=findpost&pid=92301\"][{POST_SNAPBACK}][/a][/div]

Sure, I'll make an ipk sometime today.  Currently they'll install to /usr/local/* which might not be best since then you'll have two libxml installations.   I think I'll redo libxml to install to /usr/* so it will upgrade the existing package.

At least with libxslt you'll have xsltproc to do transforms... I'll try a few when I install it on my Z.

As for VitrualPC... sashz and laze have been talking about a livecd that would work for compiling stuff... you might just be able to boot up VirtualPC off that ISO when it comes out...?  I'm not familiar with virtualpc but I know vmware will boot off an ISO image.

jason
Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: allanjard on August 18, 2005, 11:38:48 am
Hi,

I think VirtualPC will boot a LiveCD, it certainly boots from CD for installing an OS (Windows...) so I think that is definitely my top option. I presume the compiler is gcc based, so I might have a look at setting up an environment for cross compiling in OSX as well.

Thanks very much for having a look at the xsl stuff for me - it is much appreciated!

Allan
Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: jh on August 18, 2005, 12:31:35 pm
Here we go:

libxml2 2.6.20 (http://www.haslup.com/libxml2_2.6.20_armv5tel.ipk)
and
libxslt 1.1.14 (http://www.haslup.com/libxslt_1.1.14_armv5tel.ipk)

They'll both install into /usr/local/* so it won't clobber your existing libxml2.  I've installed them both on my C1k and ran a quick xstlproc and it worked fine without modifying my LD_LIBRARY_PATH, etc...

Let me know if you have any problems.  The libxml2 package is kind of big (4mb)... I could probably split that up into a couple ipks if it's a problem.  It has some sample code, manpages, include files... stuff you probably don't need/want.

jason
Title: Xml / Xslt /xsl-fo Etc On Pdaxrom
Post by: allanjard on August 18, 2005, 02:44:18 pm
Fantastic - thank you very much. I'll give it a go on my Z when I get back home tonight. I'll let you know how I get on.

Allan