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
|