Look how elegant a XSLT2 solution is for multiple companies
Main Topics
Browse All TopicsHello Guys
is it possible to get rid of part of the string (do not display it at the pdf) in xsl fo file?
for example here i need to cut off (in THB) :
some company name (in THB)
another company name (in THB)
etc....
if it was just one off string i could do:
<xsl:if test="@companyName='some company name (in THB)'">
some company name
</xsl:if>
however the company name will be always different! so i need to cut the part of string (in THB) only off!
is it possible to do at XSL FO?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Please note that allthough your FO processor might not support XSLT2,
XSL-FO processors don't need to do the XSLT stuff themselves.
In my XSL-FO projects I never use the built in XSLT processor,
I always use Saxon9B for the XSLT part, so I can use XSLT2
and I only use the FO processor for dealing with the FO to PDF rendering
In his grading comment (not visible to all) the asker posts
> in the close future ill need to ask some more questions. Will you monitor? how can you first check out the questions?
Here is my answer:
All XSLT questions are prompted via email.
Anyone interested in receiving a notification for XSLT questions gets an email if you post a question.
I read them and many other experts do too.
This way it is likely that you get an answer to your questions really fast
cheers
Business Accounts
Answer for Membership
by: GertonePosted on 2009-07-02 at 01:10:52ID: 24761251
something like this will do that , '(in')"/> bstring-af ter(., '(in'), ')')"/>
<xsl:value-of select="substring-before(.
<xsl:value-of select="substring-after(su
If you have multiple unlknown company strings in one elemen, you will need some recursive processing, let me know if that is the case
If you can use XSLT2.0 (highly recommended when you need string processing) tell me too