call-template in curly brackets

Discussion in 'XML' started by inquirydog, Dec 13, 2003.

  1. inquirydog

    inquirydog Guest

    Hello-

    I, the inquirydog have a question: Using the AVT mechanism
    (curly brackets in an attribute value) is a great way to decrease the
    size of your xml document and make it more readable. Can one also
    include the results of a call-template within curly brackets? Ideally
    it would be great if you could just call the template as a function:

    <tagname attributename="{mytemplate('abcd')}">

    Is this possible? If not, is something else like it possible? Will
    it be possible? Other than using the long notation (<xsl:attribute>)
    is there a clean way to do this?

    The Inquirydog thanks you for your help.

    see you
    -Inquirydog
    inquirydog, Dec 13, 2003
    #1
    1. Advertising

  2. inquirydog wrote:

    > Hello-
    >
    > I, the inquirydog have a question: Using the AVT mechanism
    > (curly brackets in an attribute value) is a great way to decrease the
    > size of your xml document and make it more readable. Can one also
    > include the results of a call-template within curly brackets? Ideally
    > it would be great if you could just call the template as a function:
    >
    > <tagname attributename="{mytemplate('abcd')}">
    >
    > Is this possible? If not, is something else like it possible? Will
    > it be possible? Other than using the long notation (<xsl:attribute>)
    > is there a clean way to do this?
    >
    > The Inquirydog thanks you for your help.


    No, that's not possible.

    I think in XSLT 2.0, user-defined functions will take care of this.
    Julian Reschke, Dec 13, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. matro
    Replies:
    1
    Views:
    692
    Victor Bazarov
    Dec 26, 2003
  2. Zain Homer

    glob and curly brackets

    Zain Homer, Apr 7, 2006, in forum: Python
    Replies:
    2
    Views:
    529
  3. STF
    Replies:
    6
    Views:
    443
  4. Ken Fine
    Replies:
    2
    Views:
    174
    Ken Fine
    Feb 24, 2004
  5. Andrew Poulos

    regexp and curly brackets

    Andrew Poulos, Dec 1, 2008, in forum: Javascript
    Replies:
    9
    Views:
    209
    Thomas 'PointedEars' Lahn
    Dec 2, 2008
Loading...

Share This Page