|
Subject: Re: [xsl] [xslt] not working transformation when function called From: Michalmas <michalmas@xxxxxxxxx> Date: Thu, 19 Mar 2009 22:07:36 +0100 |
And all i need to achieve is to transform that:
<move>
<from>
<dataname>01</dataname>
<dataname>02</dataname>
</from>
<to>
<qualification>
<dataname>001</dataname>
<dataname>002</dataname>
</qualification>
</to>
</move>
to:
<move>
<from datatype='XXX'> <!-- VALUE RETURNED BY
local:getNodeTypeFUNTION -->
<dataname>01</dataname>
<dataname>02</dataname>
</from>
<to>
<qualification datatype='ZZZ'> <!-- VALUE RETURNED BY
local:getNodeTypeFUNTION -->
<dataname>001</dataname>
<dataname>002</dataname>
</qualification>
</to>
</move>
On Thu, Mar 19, 2009 at 9:50 PM, Michalmas <michalmas@xxxxxxxxx> wrote:
> But why this trigger:
>
> <xsl:template match="move/from">
> B <datatype><xsl:value-of select="local:getNodeType(/,
> ./dataname)"/></datatype> <!--DATATYPE -->
> </xsl:template>
>
> doesn't work?
>
> On Thu, Mar 19, 2009 at 9:30 PM, Christopher R. Maden <crism@xxxxxxxxx>
wrote:
>> Michalmas wrote:
>>> I have following xslt:
>>>
>>> <xsl:template match="*">
>>> B B <xsl:copy-of select="." />
>>> </xsl:template>
>>
>> This template matches the move element. B It copies the move element and
>> does not other processing. B The from elements are never processed.
>>
>> It is not clear from this example what this template is supposed to do,
>> but it is very unusual and almost certainly not what you want.
>>
>> ~Chris
>> --
>> Chris Maden, text nerd B <URL: http://crism.maden.org/ >
>> bAll I ask of living is to have no chains on me,
>> B And all I ask of dying is to go naturally.b b Laura Nyro
>> GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] [xslt] not working transf, Michalmas | Thread | Re: [xsl] [xslt] not working transf, David Carlisle |
| Re: [xsl] [xslt] not working transf, Michalmas | Date | Re: [xsl] [xslt] not working transf, David Carlisle |
| Month |