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 March 19th, 2008, 03:24 PM
Registered User
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hoping it is Ok to ask Biztalk Q here?

I have a warm feeling that I will end up writing an XSLT scrip functoid for this task anyway.

The map on the left contains a zoo of different elements within their own hierarchies, plus a collection of named name/value sets.
The name/value sets have to be simply copied to the right, but!
Certain elements from the left have to be dumped into one of the named name/value sets under given names.

Basically, the left side looks like that:

elem1
elem2
elem3
listofNVS
 NVS name=ABC
  name/value pair 1
  name/value pair 2
  name/value pair 3
 NVS name=XYZ
  name/value pair 11
  name/value pair 22
  name/value pair 33

On the right side I need:

listofNVS
 NVS name=ABC
  name/value pair 1
  name/value pair 2
  name/value pair 3
  name/value pair elem1
  name/value pair elem3
 NVS name=XYZ
  name/value pair 11
  name/value pair 22
  name/value pair 33

Is that achievable using the visual functoids?
By now someone has put a lot of effort into gathering all the left side elements that need to be converted into NVPs, and feeding them into a table looper. At that point I inherited the project. But this thing does not work together with a simple loop that copies the name/value sets, nor it works with a mass copier.
I am able to get the NVSs across, but not the random elements.
I am hoping that the existing table looper is re-usable, but I can't think of the way.

 
Old March 19th, 2008, 05:32 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You can ask the question, but I don't think this is the place where you are most likely to find the people who can answer it.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Novel bug, hoping someone can help jeremy1048 Access 3 June 24th, 2008 11:35 AM
hoping tony65 Struts 2 February 13th, 2006 05:32 AM
biztalk paras Biztalk 2 August 16th, 2004 06:24 AM
BizTalk david.malone@edirectglass VB Components 0 July 14th, 2004 12:05 PM
Y BizTalk dja24030 Biztalk 0 April 6th, 2004 05:41 AM





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