[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|