ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
Re: [exslt] Insert child element - how?
by Mike Brown other posts by this author
Apr 5 2002 10:27PM messages near this date
[exslt] Insert child element - how? | [exslt] requires an Object instance as first argument
deckerben wrote:
>  Has anyone been able to simply add an element to an input document, leaving
>  the original document structure completely intact (like   xsl:copy-of select
>  = "self::root"  ,but inserting a child element at a designated location
>  along the way)?

You should have just asked this on xsl-list.

The XSLT spec describes how to do an identity transformation using xsl:copy.  
See http://www.w3.org/TR/xslt#copying for the main template, and just add
another template that will match on the node at the designated location. Your
extra template should have the child element inside an xsl:copy.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
deckerben
Mike Brown

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved