You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Julien Barbin <jb...@epo.org> on 2004/07/12 14:27:15 UTC
Parsing string or numbers after x characters
Hello
I'm quite new to the fop mailing list so I have no idea if this problem
occurred already and I was unable to find solutions on the web.
My problem is that I receive for example a date in a concatenated format:
Ex: 20041207
And I have to retrieve it in a readable format through my xslt-fo
transformation.
Ex: 12 July 2004
I tried using substring for that, but I don't have any reference character
to look for in order to parse.
Is there a function which parses strings or numbers after a certain amount
of characters directly.
Thanks in advance for those which will respond.
Julien
Re: Parsing string or numbers after x characters
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Julien Barbin wrote:
> I'm quite new to the fop mailing list so I have no idea if this problem
> occurred already and I was unable to find solutions on the web.
Uh, oh!
> My problem is that I receive for example a date in a concatenated format:
>
> Ex: 20041207
>
> And I have to retrieve it in a readable format through my xslt-fo
> transformation.
>
> Ex: 12 July 2004
FAQ:
http://www.dpawson.co.uk/xsl/sect2/dates.html#d3164e13
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Parsing string or numbers after x characters
Posted by Clay Leeds <cl...@medata.com>.
Julien,
On Jul 12, 2004, at 5:27 AM, Julien Barbin wrote:
> My problem is that I receive for example a date in a concatenated
> format:
>
> Ex: 20041207
>
> And I have to retrieve it in a readable format through my xslt-fo
> transformation.
>
> Ex: 12 July 2004
>
> I tried using substring for that, but I don't have any reference
> character to look for in order to parse. Is there a function which
> parses strings or numbers after a certain amount of characters
> directly.
>
> Thanks in advance for those which will respond.
>
> Julien
This is more of an XSLT question that would be better made on an XSLT
list, which you'll find on The FOP Mailing List page [1]. In
particular, you want the XSLT List on the bottom of the page, but
you'll find other good information there which you can use in the
General Information section. Good luck!
Web Maestro Clay
p.s. Even better, you may not have to ask the question. The answer to
your question is probably accessible from the FOP Resources page[2] in
Dave Pawson's XSLT FAQ[3]
[1]
http://xml.apache.org/fop/maillist.html
[2]
http://xml.apache.org/fop/resources.html#documents
[3]
http://www.dpawson.co.uk/xsl/sect3/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org