|
Subject: RE: [xsl] Matching a template From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Tue, 13 Oct 2009 09:49:32 +0100 |
Well, your idAplicatie element doesn't have any text nodes, so the pattern
match="idAplicatie/text()" will never match anything. Change it to
<xsl:template match="idAplicatie">
<idAplicatie>
<xsl:value-of select="$idAplicatie"/>
</idAplicatie>
</xsl:template>
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
> -----Original Message-----
> From: claudius teo [mailto:claud108@xxxxxxxxx]
> Sent: 13 October 2009 09:41
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Matching a template
>
> the xsl stylesheet I use is
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
> <xsl:output method="xml"/>
> <xsl:param name="idAplicatie">kubera</xsl:param>
> <xsl:template match="*|@*|text()">
> <xsl:copy>
> <xsl:apply-templates select="*|@*|text()"/>
> </xsl:copy>
> </xsl:template>
> <xsl:template match="/">
> <xsl:processing-instruction
> name="xml-stylesheet">href="https://localhost:8443/exist/rest/
> /db/xsltforms/xsltforms.xsl"
> type="text/xsl"</xsl:processing-instruction>
> <xsl:copy>
> <xsl:apply-templates select="*|@*|text()"/>
> </xsl:copy>
> </xsl:template>
> <xsl:template match="idAplicatie/text()">
> <xsl:value-of select="$idAplicatie"/>
> </xsl:template>
> </xsl:stylesheet>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Matching a template, claudius teo | Thread | Re: [xsl] Matching a template, Andrew Welch |
| Re: [xsl] Matching a template, claudius teo | Date | Re: [xsl] Matching a template, Andrew Welch |
| Month |