Generate a term appended with a dynamic number sequence and put it into an attribute value.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sandy_Saha
Posted On:   Thursday, February 27, 2003 02:45 AM

I want to generate a Fixed term appended with a number sequence inside the name attribute of a tag, like blah blah blah blah blah blah blah blah blah using XSL. The number will be dynamically generated in the XSL for the given node myNode The basic code is below but it has to be 'escaped' appropriately...... MyTerm_ &ltxsl:number level="any" count=" myNode " format="1" /> ' > SOME TEXT HERE The xsl:number tag generates the number sequence but how do I fit it in the name attribute of the tag   More>>

I want to generate a Fixed term appended with a number sequence inside the
name attribute of a tag, like

blah blah blah


blah blah blah

blah
blah blah

using XSL.

The number will be dynamically generated
in the XSL for the given node myNode The basic code is below but it has to be
'escaped' appropriately......

MyTerm_


&ltxsl:number level="any" count=" myNode " format="1" />

'
>

SOME TEXT HERE

The xsl:number
tag generates the number sequence but how do I fit it in the name attribute of
the tag?

Thanx in advance!

   <<Less

Re: Generate a term appended with a dynamic number sequence and put it into an attribute value.

Posted By:   Sandy_Saha  
Posted On:   Sunday, March 2, 2003 08:20 PM

I found the soln....here it is:

FixedTermlevel="any" count="myNode" format="1" value="1"
/>


The xsl:number generates
values starting from 0. I want it to start from some other number, say 13. I tried
using from='"13" attribute in it , but it did not give me the desired
o/p.. .any ideas?

 

Re: Generate a term appended with a dynamic number sequence and put it into an attribute value.

Posted By:   Roseanne_Zhang  
Posted On:   Thursday, February 27, 2003 07:21 AM

Try to use xslt function concat()
About | Sitemap | Contact