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

RE: Split the content of a variable (xpath 1.0)

Subject: RE: Split the content of a variable (xpath 1.0)
From: "Silvia Liberto" <SLiberto@xxxxxx>
Date: Fri, 3 Mar 2006 15:42:58 +0100 (MET)
xpath split
...yes thanks, that4s it!

Silvia

> --- Urspr|ngliche Nachricht ---
> Von: "Michael Kay" <mike@xxxxxxxxxxxx>
> An: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Betreff: RE:  Split the content of a variable (xpath 1.0)
> Datum: Fri, 3 Mar 2006 11:29:03 -0000
> 
> Look for str:tokenize at www.exslt.org. You'll find a function that's
> implemented natively in some XSLT processors, and source code of a
> template
> that you can copy into your stylesheet and adapt if you prefer.
> 
> Michael Kay
> http://www.saxonica.com/ 
> 
> > -----Original Message-----
> > From: Silvia Liberto [mailto:SLiberto@xxxxxx] 
> > Sent: 03 March 2006 11:03
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  Split the content of a variable (xpath 1.0)
> > 
> > Hi all,
> > 
> > I have a variable "Keywords" with several keywords inside.
> > They are seperated with ;.
> > so i want per xslt to split this content into single keywords,
> > like this:
> > 
> > <keywordset>
> >   <keyword>Keyword1</keyword>
> >   <keyword>Keyword2</keyword>
> >   <keyword>Keyword3</keyword>
> >   <keyword>Keyword4</keyword>
> >   <keyword>Keyword5</keyword>
> > </keywordset>
> > 
> > xml:
> > 
> > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> > <wordDocument>
> > 	<DocumentProperties>
> > 		<Title>Titel</Title>
> > 		<Subject>Subtitel</Subject>
> > 		<Author>AutorVorname AutorNachname</Author>
> > 		<Keywords>Keyword1; Keyword2; Keyword3; 
> > Keyword4; Keyword5;
> > Keyword6</Keywords>		
> > 	</DocumentProperties>
> > </wordDocument>
> > 
> > 
> > In the string functions (xpath 1.0) i can4t find an adequate 
> > function!?
> > have someone an idea?
> > 
> > Thanks,
> > Silvia
> > 
> > 
> > 
> > -- 
> > "Feel free" mit GMX FreeMail!
> > Monat f|r Monat 10 FreeSMS inklusive! http://www.gmx.net
> 

-- 
"Feel free" mit GMX FreeMail!
Monat f|r Monat 10 FreeSMS inklusive! http://www.gmx.net

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.