xsl-list
[Top] [All Lists]

RE: [position node] I to get it.

2003-10-01 06:40:29
Thanks all.

For me position is the place an element in a list of element.

Lionel

At 13:13 01/10/2003 +0300, you wrote:
if you match the child document from the parent document you can define a parameterized template and call it like this:

<xsl:apply-templates select="dmidref">
                <xsl:with-param name="parentposition" select="position()"/>
</xsl:apply-templates>

and the template for the child must look like this:

<xsl:template match="dmidref">
<xsl:param name="parentposition"/>
        <!-- something -->
        <xsl:value-of select="$parentposition"/>
        <!-- something -->
</xsl:template>

Sergiu
> -----Original Message-----
> From: Lionel Crine [mailto:crine(_at_)4dconcept(_dot_)fr]
> Sent: 1 octombrie 2003 11:35
> To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
> Subject: [xsl] [position node] I to get it.
>
>
> Hello,
>
> Id' like to get the position of the parent node of the context node :
>
> For example :
>
> <dmref>
> <dmidref> --> from here I need the position of dmref
> <dmidref>
>
> Is it possible ?
>
> Lionel
>
> Lionel CRINE
> Ingénieur Systèmes documentaires
> Société : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>