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

inserting an element (was: Up-conversion using XSLT 1.

Subject: inserting an element (was: Up-conversion using XSLT 1.0)
From: Manfred Staudinger <manfred.staudinger@xxxxxxxxx>
Date: Sun, 23 Oct 2005 09:43:24 -0700
xslt insert element
Hi all,
I've the following input document:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="../view-list.xsl" type="text/xsl"?>
<doc>
text-1
text-1
<div class="index">
elements in div
</div>
  text-2-1
  text-2-2
<ul>
text in ul
text in ul
</ul>
  text-2-3
  text-2-4
  text-2-5
text-4
text-4
</doc>
Each text-2 line starts with 3 blanks, there can be 0-10 ul-elements anywhere
between or immediate after text-2. The lines "text in ul" are
processed by using
a named template (not shown here).

I would like to insert an element "zitat" as a parent for "ul" and
text-2 using XSLT 1.0.
...
<zitat>
  text-2-1
  text-2-2
<ul>
text in ul
text in ul
</ul>
  text-2-3
  text-2-4
  text-2-5
</zitat>
...
The stylesheet for my unsuccessful attempt to achieve this may be
found in the Archive:
Subject:  Up-conversion using XSLT 1.0; Date: Mon, 17 Oct 2005
09:16:10 -0700

Any comments will be appreciated.
Regards, Manfred Staudinger, Vienna

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.