Jump to content
Sign in to follow this  
icedragon208

Break Strings (sub-strings)

Recommended Posts

Hello, i have a question and hope some on can help me :-) .

I have 2 XML files and 1 XSL Transformation. I will show you an example.

First one is empty and i want to fill it:

<Cars>      <vehicle1>                <text></text>                <attribute>                             <attributeOne atr1="no"></attributeOne>                             <attributeOne atr1="no"></attributeOne>                </attribute>      </vehicle1>      <vehicle2>               <text></text>               <attribute>                            <attributeOne atr1="no"></attributeOne>                            <attributeOne atr1="no"></attributeOne>               </attribute>     </vehicle2></Cars>

Second one is an export from a Programm with the information i need:

<Information>             <vehicle1 information="Corvette 1,2"></vehicle1111>             <vehicle2 information="Opel 1 Cadett"></vehicle1111></Information>

now i want to fill the xml file 1 with the information.

Normally i can use xsl:value-of select=".."

But The Problem is

with the Information information="Opel 1 Cadett"The output in the first fiel should be<text>Opel Cadett</text><attribute>           <attributeOne atr1="yes"></attributeOne>           <attributeOne atr1="no"></attributeOne></attribute>

I tired to use sub-string but nothing worked :sorry:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...