User Profile

Collapse

Profile Sidebar

Collapse
andyalean1
andyalean1
Last Activity: May 30 '07, 05:17 AM
Joined: Apr 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Setting a variable for use from a return of call-template

    Hello, I would like to know how to set a variable for use from a return this call-template,It returns a number that I need to use.How do I set a variable to this value?

    Code:
     
    
     <xsl:call-template name="date:difference">
    
       <xsl:with-param name="start" select="string($prevMeterReadDate)" />
       <xsl:with-param name="end" select="string($currentMeterReadDate)"
    ...
    See more | Go to post

  • andyalean1
    replied to Matching nested loop values
    in XML
    yes I have fixed my problem of passing a element of tree.It works

    I have another problem on an error
    'http://www.w3.org/1999/XSL/Transform' does not contain any functions
    when I try only this line of code
    <xsl:value-of select="xsl:dat e('2005-02-21') - xsl:date('2005-01-01')"/>
    Why??
    I have a defintion of the stylesheet as
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    ...
    See more | Go to post

    Leave a comment:


  • andyalean1
    replied to Matching nested loop values
    in XML
    I would like to pass the current node through like
    <xsl:with-param name="customerR ec" select="current ( )/customerRecord"/>
    Is it possible to pass the current node of the template match through to a named template?
    Thank you
    See more | Go to post

    Leave a comment:


  • andyalean1
    replied to Matching nested loop values
    in XML
    Hello,I now wish to connect the values in either side of my related xml files where the MeterNumber is the same.I have found a way to pass the needed values of one file to display output.
    How do i Find the values needed of the second xml document?
    I have the key of meterNumber and trying to gain all the other required variables form the customers.xml where I know there is a exact match.I can`t seem to display them even when using a...
    See more | Go to post

    Leave a comment:


  • andyalean1
    replied to Matching nested loop values
    in XML
    Thank you,I see where i was going wrong.Much appreciated,hel ped me understand the use of templates.
    See more | Go to post

    Leave a comment:


  • andyalean1
    started a topic Matching nested loop values
    in XML

    Matching nested loop values

    Hello, I am trying to match an Id number that is shared across 2 xml files.I seem to be do the right thing bu it won`t display a match.Can you please help me find my error.
    I have a problem matching the values of :
    <xsl:when test= '@meterNumber = $MeterReadingNU M' >
    <xsl:value-of select="@meterN umber"/>
    </xsl:when>
    in create_bills.xs lt.How do I do this against the meterNumber in...
    See more | Go to post
No activity results to display
Show More
Working...