[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Nodes get new IDs in function?
On 09/04/2010 01:15, Martynas Jusevicius wrote:
<xsl:function name="o2e:parent-heading" as="element()*"> <xsl:param name="heading" as="element()"/> <xsl:copy-of select="$heading/preceding-sibling::h:*[self::h:h1 or self::h:h2 or self::h:h3 or self::h:h4 or self::h:h5 or self::h:h6][o2e:heading-level(.)< o2e:heading-level($heading)][1]"/> </xsl:function> Not all functions but your function does. You use xsl:copy-of, which as it's name implies returns a copy of what it selects, not the original. use xsl:sequence if you want to return the nodes selected rather than newly generated copies. David
|
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
|