RE: [xsl] Monsieur, j'ai rencontre un problem avec template XSLT pour automatiquement generer des valeur dans lecas fichier XML: <A> Author 1</A> <A> Author 2</A> <A> Author 3</A> ............................avec A soit un balise au chemin Xpath /

Subject: RE: [xsl] Monsieur, j'ai rencontre un problem avec template XSLT pour automatiquement generer des valeur dans lecas fichier XML: <A> Author 1</A> <A> Author 2</A> <A> Author 3</A> ............................avec A soit un balise au chemin Xpath /
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 12 Jun 2002 12:02:10 +0100
> <xsl:call-template name= "GetAllAuthor">
>   <xsl:with-param name="path" 
> select="'/html/body/blockquote/div[1]/font/a'" />
>   <xsl:with-param name="index" select="1"/>
>   <xsl:with-param name="openning" 
> select="concat('&lt;','c:Author','&gt;','&#10;','&lt;','c:Name
> ','&gt;','&#10;')" 
> />

You have two problems:

(a) you are trying to manipulate XPath expressions as strings. There is
no way in standard XSLT to execute an XPath expression held as a string,
though you can do it using extensions such as saxon:evaluate().

(b) you are trying to manipulate XML documents as strings. There is no
way in standard XSLT to parse or serialize XML documents held as
strings, though you can do it with extensions such as saxon:parse() and
saxon:serialize() (new in Saxon 7.1).

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread