|
Yes, I use your updated ASDB.dtd now, it works fine, the old one had problems as you say if you want to use the xsl you should: 1. Download you as/400 file with an .htm or .html extention 2. insert the following line in the html file: <?xml-stylesheet type="text/xsl" href="ASDB.xsl"?> ( The ASDB.xsl file should be in the same directory as the html file) 3. view it on your browser I attach a sample file One problem I just found out: If you try to view it locally (i.e - the files are on a folder on your PC it does not seem to work. - If you view it served by a web server it works - I am using apache...) Original message from: GOMEZ Henri >Did you check my previous post about XML parsers >and new ASDB.dtd ? > >I tried you xsl with cocoon, but I only have : > >AS/400 FILE DISPLAY > >----------------------------- >----------------------------- > >- >Henri Gomez ___[_]____ >EMAIL : gomez@slib.fr (. .) >PGP KEY : 4912D659 ...oOOo..(_)..oOOo... >PGP Fingerprint : 8CAD0D50356DA7E45C540B010FFE39E8 >+--- >| This is the LINUX5250 Mailing List! >| To submit a new message, send your mail to LINUX5250@midrange.com. >| To subscribe to this list send email to LINUX5250-SUB@midrange.com. >| To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com. >| Questions should be directed to the list owner/operator: david@midrange.com >+--- > >
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <HTML> <HEAD> <CENTER><H1>AS/400 FILE DISPLAY</H1></CENTER> </HEAD> <BODY> <TABLE BGCOLOR="#6699CC" CELLPADDING="0" CELLSPACING="0" BORDER="1" WIDTH="100%"> <xsl:for-each select="ASDB/LAYOUT"> <TR> <xsl:for-each select="FIELD"> <TD COLSPAN="2" BORDER="1"> <xsl:value-of/> </TD> </xsl:for-each> </TR> </xsl:for-each> </TABLE> <P></P> <TABLE BGCOLOR="#6699CC" CELLPADDING="0" CELLSPACING="0" BORDER="1" WIDTH="100%"> <xsl:for-each select="ASDB/RECORD"> <TR> <xsl:for-each select="DATUM"> <TD COLSPAN="2" BORDER="1"> <xsl:value-of/> </TD> </xsl:for-each> </TR> </xsl:for-each> </TABLE> </BODY> </HTML> </xsl:template> </xsl:stylesheet>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.