call-template in curly brackets

I

inquirydog

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
 
J

Julian Reschke

inquirydog said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top