Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listmultiple templates in a single xsltmultiple templates in a single xslt
Previous
 
Next
New Post
10/13/2009 4:51 PM
 

I am trying to get repeated output in a single XSLT, but not sure how / if it is possible.

first i want to have an unodered list

with all the items but only one field: ul  listitem1-field1, listitem2-field1, listitem3-field1, ... /ul

below that I would like to have: a div with more information:  

div

listitem1-field1, listitem1-field2, listitem1-field3, ... 

listitem2-field1, listitem2-field2, listitem2-field3, ... 

listitem3-field1, listitem3-field2, listitem3-field3, ...

...

/div 

is this possible? some pointers please?

Sorry for my ignorance.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
10/14/2009 1:51 AM
 

Yes, it is possible.

It is not much different than programming you are used to. Create two xsl:templates ListA and ListB, and use two xsl:foreach to call the corresponding list.

Looking forward to meet you at OF EU, Stefan

 
New Post
10/14/2009 9:51 AM
 

excuse me for my ignorance, but if I add them below each other like here:

<

<

<

<

<

<

<

</

</

</

 

<

<

<

<

<

</

</

</

</

xsl:template match="/" >xsl:for-each select="/udt:UserDefinedTable/udt:Data">div>xsl:value-of select="udt:Image" disable-output-escaping="yes" />xsl:call-template name="EditLink" />xsl:value-of select="udt:Title" disable-output-escaping="yes" />xsl:value-of select="udt:Description" disable-output-escaping="yes" />div>xsl:for-each>xsl:template>xsl:template match="/" >ul>xsl:for-each select="/udt:UserDefinedTable/udt:Data">li>xsl:value-of select="udt:Title" disable-output-escaping="yes" />li>xsl:for-each>ul>xsl:template>

 

I only get the latest (hopefully FCK plays along...).

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listmultiple templates in a single xsltmultiple templates in a single xslt


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out