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

Re: Inserting a parent node.

Subject: Re: Inserting a parent node.
From: Chuck White <chuckwh@xxxxxxxxxxx>
Date: Sun, 19 May 2002 13:40:43 -0700
xml insert parent node
It sounds like you want access to other nodes in the tree brought in via the
document function, which of course is possible. Check out the FAQ for this
at:

http://www.dpawson.co.uk/xsl/sect2/N2602.html

best regards,

Charles White
The Tumeric Partnership
http://www.tumeric.net
chuck@xxxxxxxxxxx
________________________________________
Author, Mastering XSLT
Sybex Books, May, 2002

Co-Author, Mastering XML, Premium Edition
Sybex Books, May, 2001
http://www.javertising.com

----- Original Message -----
From: "Morten Primdahl" <morten@xxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, May 19, 2002 12:30 PM
Subject:  Inserting a parent node.


>
> Hi.
>
> I need to insert a parent node on a node-set read by
> URL.
>
> <xsl:template match="ref">
>    <xsl:variable name="content" select="document(@url)"/>
>       <xsl:apply-templates select="$content"/>
> </xsl:template>
>
> The content variable may hold an element "f", in the template
> for that, I need to match a parent - and not the implicit
> document root.
>
> <xsl:template match="f">
>    <xsl:if test="parent::stuff">
>
>    </xsl:if>
> </xsl:template>
>
> Can this be done by somehow creating the content variable in
> another fashion?
>
> Thanks,
>
> Morten
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 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.