xsl-list
[Top] [All Lists]

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

2006-03-03 07:42:58
...yes thanks, that´s it!

Silvia

--- Ursprüngliche Nachricht ---
Von: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
An: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Betreff: RE: [xsl] 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(_at_)gmx(_dot_)de] 
Sent: 03 March 2006 11:03
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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 can´t 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>