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

insert subnodes?

Subject: insert subnodes?
From: Martin Klaffenboeck <martin.klaffenboeck@xxxxxx>
Date: Sat, 5 Jul 2003 20:32:54 +0200
subnodes
Hello,

I have a xml file like:

<formular name="register">
  <field type="text" name="user" size="8">User</field>
  <field type="password" name="password" size="8">Password</field>
  <submit>Register</submit>
</formular>

Now I want to insert the following xml thing:

<error>
  <head>You had the following errors:</head>
  <msg>Your username is to short (min. 4 characters).</msg>
  <msg>Your password is to short (min. 4 characters).</msg>
</error>


So that it looks like:


<formular name="register">
  <error>
    <head>You had the following errors:</head>
    <msg>Your username is to short (min. 4 characters).</msg>
    <msg>Your password is to short (min. 4 characters).</msg>
  </error>
  <field type="text" name="user" size="8">User</field>
  <field type="password" name="password" size="8">Password</field>
  <submit>Register</submit>
</formular>


Ok, I have made the examle simple, there are many things in my xml file..


I could use

<xsl:template match="formular[@name='register']"
</xsl:template>

To find my tag. But what do I write in there?

Thanks,
Martin

--
If you've got an idea and need help,
or just need general encouragement,
write me a message. ;-)

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.