Hi,
I am trying to split an address into serveral parts in an xsl
stylesheet and was hopeing to get some pointers.
The addresss are similiar to
"testaddress, Templeogue, Dublin 16, Ireland , this is a very, long
address"
I need to split this into between 1 and 4 parts none of which can be
longer than 50 characters.
For example if the address had 55 characters it would be broken in 2
on the last apostrophe so the address would be
"testaddress, Templeogue, Dublin 16, Ireland , this is a very, "
"long address"
However if the address was
"testaddress, Templeogue, Dublin 16, Ireland , this is a very, long
address testaddress, Templeogue, Dublin 16, Ireland , this is a very,
long address"
It would be broken into 3
"testaddress, Templeogue, Dublin 16, Ireland , this is a very, "
"long address testaddress, Templeogue, Dublin 16, Ireland ,"
"this is a very, long address"
Any help with this would be great.
Lastbuilders 2 2573
lastbuilders wrote:
I need to split this into between 1 and 4 parts none of which can be
longer than 50 characters.
For example if the address had 55 characters it would be broken in 2
on the last apostrophe so the address would be
XSLT 1.0 supports the following XPath 1.0 string functions
<http://www.w3.org/TR/xpath#section-String-Functions>
so using string-length and substring should help.
--
Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/
The
test-strSplit-to-Lines.xsl
template of FXSL solves exactly the task described.
Cheers,
Dimitre Novatchev
"lastbuilders" <ba**********@hotmail.comwrote in message
news:11**********************@y5g2000hsa.googlegro ups.com...
Hi,
I am trying to split an address into serveral parts in an xsl
stylesheet and was hopeing to get some pointers.
The addresss are similiar to
"testaddress, Templeogue, Dublin 16, Ireland , this is a very, long
address"
I need to split this into between 1 and 4 parts none of which can be
longer than 50 characters.
For example if the address had 55 characters it would be broken in 2
on the last apostrophe so the address would be
"testaddress, Templeogue, Dublin 16, Ireland , this is a very, "
"long address"
However if the address was
"testaddress, Templeogue, Dublin 16, Ireland , this is a very, long
address testaddress, Templeogue, Dublin 16, Ireland , this is a very,
long address"
It would be broken into 3
"testaddress, Templeogue, Dublin 16, Ireland , this is a very, "
"long address testaddress, Templeogue, Dublin 16, Ireland ,"
"this is a very, long address"
Any help with this would be great.
Lastbuilders This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: rxl124 |
last post by:
Hi, room
Beginner of learning perl here!!
I have question to all,
I have below file name datebook.master which contains only 2 lines
Mike wolf:12/3/44:144 park ave, paramus: 44000
Sarah kim:...
|
by: martin |
last post by:
Hi, a very newbie question. How do I split the adress and number to 2
variables?
ex. "Kingsroad 347" = variabel1 = "Kingsroad" variabel2 = "347"
Ill guess i have to search the string from...
|
by: bender |
last post by:
Hi. Sorry if this is an old question, but....
i have a table that includes an e-mail address
in a query, i would like to create two columns with expressions for
the hostname and the username....
|
by: Vamsi |
last post by:
Hi,
I am trying a basic opearation of splitting a multiline value to an
array of single lines(Actually making Address into AddressLine1,
AddressLine2).
I used Environment.NewLine in split, I...
|
by: michael.bollhoefer |
last post by:
I am trying to split a string into two different variables. The string
is pulled from an XML file from a WEBDAV program. The string will be
in this form
"John Doe" <john.doe@webserver.com>
...
|
by: MrHelpMe |
last post by:
Hello again experts,
I have successfully pulled data from an LDAP server and now what I want
to do is drop the data into a database table. The following is my code
that will insert the data but...
|
by: =?ISO-8859-1?Q?Fad=A5?= |
last post by:
Hello guys,
I want to do kinda of an A/B split testing on a website I run. I just
created a new version but I need to keep both version running and see
which one will perform better. First, I'm...
|
by: HY26 |
last post by:
Hello -
First off, I'm fairly new with using Access. I have a text field that contains a full address and I would like to split that field into 4 parts - street address, town, state, & zip. I...
|
by: code green |
last post by:
I have an address field in a table that contains one, two, three or more lines of an address.
I need to split this into three fields for later insertion into CSV.
I have done something similar...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |