Nope. I didnt write the code yet. I thought it would
be better to know if it is worth trying before going
long down the road.
Sorry about that. If you still want the code I write
it and send.
Thanks
Abhi
--- "Savino, Matt C"
<[EMAIL PROTECTED]> wrote:
> You don't have the actual JavaScript do you? I find
> code usually works better than prose.
> 
> > -----Original Message-----
> > From: Abhijit Junnare [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 12, 2003 10:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Java script with xsl in FOP ?
> > 
> > 
> > <[EMAIL PROTECTED]> wrote:
> > > Can you paste the entire JavaScript
> functionality
> > > you are trying to emulate with XSLT, or is it
> too
> > > much? X-PATH is tricky, but you can do a lot
> with
> > > it.
> > 
> > Here is some functionality that I would like to
> > emulate in XSLT.
> > I have some xml element called "Name". I want to
> check
> > the length of the "Name" element. If the string
> length
> > for this is for example 10. I want to write it in
> a
> > fixed width for example 20. So since I want the
> field
> > to be fixed I want to add 10 fill charaters. The
> > number of fill characters I want to add will vary
> as
> > per the string length. Also the alignment can be
> > different. If the alignment is center then I want
> to
> > add fill characters before(here 5) and after (here
> 5)
> > the actual Name. If alignment is left then I want
> to
> > add fill characters (here 10)after the name and
> > similarly for right aligned I want to add before
> the
> > Name. 
> > Do you think something like this is feasible using
> XSL
> > for variable lengths of the strings that come from
> > xml?
> > Your help is really appreciated.
> > Thanks,
> >  Abhi
> > 
> > 
> > --- "Savino, Matt C"
> > <[EMAIL PROTECTED]> wrote:
> > > Can you paste the entire JavaScript
> functionality
> > > you are trying to emulate with XSLT, or is it
> too
> > > much? X-PATH is tricky, but you can do a lot
> with
> > > it.
> > > 
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: Abhijit Junnare
> [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, September 12, 2003 10:25 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: Java script with xsl in FOP ?
> > > > 
> > > > 
> > > > YES. The output will be pdf. So I dont want to
> > > proceed
> > > > if I know that it wont work in the future. So
> I am
> > > > asking everyone so that I can think what I
> should
> > > be
> > > > doing.
> > > > Abhi
> > > > 
> > > > --- "Savino, Matt C"
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > Duh, I forgot this was the FOP board. Is
> this
> > > output
> > > > > going to PDF? I think PDF can also do some
> form
> > > of
> > > > > JavaScript processing but I've never tried.
> > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Savino, Matt C 
> > > > > > Sent: Friday, September 12, 2003 10:16 AM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: RE: Java script with xsl in FOP ?
> > > > > > 
> > > > > > 
> > > > > > As long as the calculations get done
> > > somewhere,
> > > > > either by the 
> > > > > > XLST processor or the browser, the end
> result
> > > > > should be the 
> > > > > > same correct? (Unless some other XSLT
> process
> > > is
> > > > > dependent on 
> > > > > > the outcome of these calcs.)
> > > > > > 
> > > > > > > -----Original Message-----
> > > > > > > From: Victor Mote
> [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: Friday, September 12, 2003 10:11
> AM
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: RE: Java script with xsl in FOP
> ?
> > > > > > > 
> > > > > > > 
> > > > > > > Abhijit Junnare wrote:
> > > > > > > 
> > > > > > > > Is it possible to use javascript
> inside
> > > the
> > > > > XSL that
> > > > > > > > will be used with FOP.
> > > > > > > > I need to do some calculations and so
> I
> > > need
> > > > > this. Is
> > > > > > > > there any other way to do some basic
> math
> > > or
> > > > > some
> > > > > > > > string manipulation? I know the string
> > > > > functions in
> > > > > > > > xsl but I am afraid they wont solve my
> > > > > problem.
> > > > > > > > Any help if appreciated.
> > > > > > > 
> > > > > > > (This is really an XSLT question.) I
> haven't
> > > > > ever done it 
> > > > > > > with javascript,
> > > > > > > but I understand that it can be done.
> See
> > > the
> > > > > bottom of:
> > > > > > >
> > > > >
> > >
> http://groups.yahoo.com/group/XSL-FO/message/3857
> > > > > > > where a method for using java in XSLT
> (to
> > > get
> > > > > today's date) 
> > > > > > > is demonstrated.
> > > > > > > Note also that this must be dependent on
> > > your
> > > > > XSLT engine, so 
> > > > > > > check its docs
> > > > > > > or mailing lists for more specific
> > > information.
> > > > > > > 
> > > > > > > Victor Mote
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > > > > For additional commands, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > 
> > > > > 
> > > > >
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to