This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: 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 /


> <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@ntlworld.com
work: Michael.Kay@softwareag.com 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]