[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] apply-template inside xsl:variable returns a documentFragment with a child node tree
Subject: RE: [xsl] apply-template inside xsl:variable returns a documentFragment with a child node tree From: Florent Georges <darkman_spam@xxxxxxxx> Date: Fri, 24 Feb 2006 12:13:15 +0100 (CET) |
"John P. Flanigan [Software Technology Initiative, Inc.]" wrote: > <xsl:variable name="thisContent"> > <xsl:apply-templates select="$elementContent"> > <xsl:with-param name="elementName" select="@name"/> > </xsl:apply-templates> > </xsl:variable> In XSLT 1.0, the value of $thisContent is a RTF. In XSLT 2.0, it is a Temporary Tree (so a document node, root of this tree). > The file content.xml has a structure like > <content> > <elements> > <element id="table"> > <caption>Table</caption> > <description>Name of table in database</description> > <help href="table.help"/> > </element> > </elements> > ... > </content> > I would like $thisContent to be equivalent to the single > <element> shown above, when @name = "table". In XSLT 2.0, you can use xsl:variable/@as: <xsl:variable name="thisContent" as="element(element)"> ... Regards, --drkm ___________________________________________________________________________ Nouveau : tiliphonez moins cher avec Yahoo! Messenger ! Dicouvez les tarifs exceptionnels pour appeler la France et l'international. Tilichargez sur http://fr.messenger.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] apply-template inside xsl, David Carlisle | Thread | [xsl] retrieve hostname, Mark Hutchinson |
RE: [xsl] An all-in-one XML data se, Vasu Chakkera | Date | [xsl] retrieve hostname, Mark Hutchinson |
Month |
Keywords