Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2011, 10:36 AM
Registered User
 
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help: XSLT, creating output elements at runtime

Hi, I am a newbie to using xslt and have a question regarding the ability to add elements during runtime!

I have an input xml with a numerical value and on the output xml I need to create x number of elements of the same structure.

Is it possible to create a function that accepts an input variable of the number and then has a for each loop that copies an output node within each loop
 
Old October 17th, 2011, 11:05 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Please show an example input, what you want the output to look like, and what you have tried so far.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?





Similar Threads
Thread Thread Starter Forum Replies Last Post
cdata section elements and version in xsl:output bsridharg XSLT 1 July 7th, 2010 05:39 PM
Selecting Elements at Runtime to Display using XSL pnviv XSLT 1 November 22nd, 2007 05:08 AM
Creating Target Elements with Namespaces alapati.sasi XSLT 1 April 11th, 2007 05:31 AM
how to exclude elements in the result tree output ntmt XSLT 0 May 25th, 2006 10:33 AM
cdata-section-elements in xsl:output ROCXY XSLT 1 March 2nd, 2006 11:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.