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

RE: A new Zvon tutorial and a little hack

Subject: RE: A new Zvon tutorial and a little hack
From: Marco.Mistroni@xxxxxxxxx
Date: Wed, 22 Dec 1999 09:26:01 +0200
tutorial on how to hack
hi miloslav..
	i am trying to write a servlet that converts XML into WML....
the servlet is easy...
the problem is that i need a correct stylesheet and a good XSL processor...
i am orientating to use XT and a stylesheet that some guys suggested me...
please, do u have any stylesheet for converting XML into WML??
can u suggest me some good XSL processors to use for that purpose??
with best regards
	marco

> -----Original Message-----
> From: EXT Miloslav Nic [mailto:nicmila@xxxxxxxx]
> Sent: 22. December 1999 8:05
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: A new Zvon tutorial and a little hack
> 
> 
> It especially does not clash with my laziness :)
> 
> disco wrote:
> > 
> > what an awesome hack!
> > 
> > it does tie the xml source to the xslt stylesheet, but assuming that
> > doesn't clash with yout sense of aesthetics, that is quite 
> a cute hack.
> > 
> > dan
> > 
> > On Tue, 21 Dec 1999, Miloslav Nic wrote:
> > 
> > > I have just published a new tutorial (basic XML) at:
> > > http://zvon.vscht.cz/HTMLonly/XMLTutorial/General/book.html
> > >
> > > In time of writing I have discovered a little hack, which made the
> > > writing much
> > > easier. Sometimes the simplest ideas save most time. The 
> example tells
> > > everything:
> > >
> > > >From tutorial source: example 7:
> > >
> > > <demo type="notwf">
> > > <description>Document with erroneous attributes</description>
> > > <doc>
> > > {errors}
> > >       {wrong_char a<error>*</error>b = "23432"/}
> > >       {mismatched_separator value = 
> <error>"</error>12<error>'</error>/}
> > >       {wrong_separator_type  value="aa<error>"</error>aa"/}
> > >       {wrong_separator_type  value='bb<error>'</error>bb'/}
> > >       {wrong_start <error>XML</error>-ID = "xml234"/}
> > > {/errors}
> > > </doc>
> > > </demo>
> > >
> > >
> > > and from XSL:
> > >
> > > <xsl:template match="text()">
> > > <xsl:value-of select="translate(.,'{}','&lt;&gt;')"/>
> > > </xsl:template>
> > >
> > > <xsl:template match="description|doc">
> > > <xsl:apply-templates/>
> > > </xsl:template>
> > >
> > > <xsl:template match="*">
> > > <xsl:element name="{name()}">
> > > <xsl:apply-templates/>
> > >
> > > <xsl:template match="error">
> > > <SPAN class="error"><xsl:apply-templates/></SPAN>
> > > </xsl:template>
> > > --
> > > ***************************************************************
> > > Dr. Miloslav Nic                        e-mail: nicmila@xxxxxxxx
> > > Department of Organic Chemistry         TEL: +420 2 2435 5012
> > > ICT Prague (VSCHT Praha)                     +420 2 2435 4118
> > >                                       FAX: +420 2 2435 4288
> > > ****************************************************************
> > > Support free information exchange: http://zvon.vscht.cz
> > > ****************************************************************
> > >
> > >
> > >  XSL-List info and archive:  
> http://www.mulberrytech.com/xsl/xsl-list
> > >
> > 
> >  XSL-List 
> info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> -- 
> ***************************************************************
> Dr. Miloslav Nic                        e-mail: nicmila@xxxxxxxx
> Department of Organic Chemistry         TEL: +420 2 2435 5012  
> ICT Prague (VSCHT Praha)                     +420 2 2435 4118
>     				        FAX: +420 2 2435 4288  
> ****************************************************************
> Support free information exchange: http://zvon.vscht.cz
> ****************************************************************
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.