[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|