[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [xslt] not working transformation when function c

Subject: Re: [xslt] not working transformation when function called
From: Michalmas <michalmas@xxxxxxxxx>
Date: Thu, 19 Mar 2009 22:07:36 +0100
Re:  [xslt] not working transformation when function  c
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.