You should really try and make each message self contained... not
everyone knows about the previous messages.
In your input you have:
<idAplicatie/>
and your template match is:
match="idAplicatie/text()
...because the idAplicatie element has no text in the input, nothing
is matched. Change the template to:
<xsl:template match="idAplicatie">
<xsl:copy>
<xsl:value-of select="$idAplicatie"/>
</xsl:copy>
</xsl:template>
Also the identity template should be:
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
cheers
andrew
2009/10/13 claudius teo <claud108@xxxxxxxxx>:
> 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/x
sltforms.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>
>
>
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
|