Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 1st, 2008, 10:58 AM
Registered User
Join Date: Aug 2008
Location: houston, tx, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create xml tag version?

Hi Guys,

I have to send the message in the following format, i have the problem in creating the second xml verion tag in the xslt mapping. can somebody explain how to acheive the second xml tag

<?xml version="1.0" ?>
<AccessRequest xml:lang='en-US'>
<?xml version="1.0" ?>
<AddressValidationRequest xml:lang='en-US'>
<CustomerContext /><XpciVersion>1.0001</XpciVersion>
<ConsigneeName>UPS Capital</ConsigneeName>
<BuildingName>Business Credit</BuildingName>
<AddressLine>425 Day Hill Road</AddressLine>
<AddressLine>P.O. Box 400</AddressLine>
<AddressLine>Main Office</AddressLine>

Reply With Quote
  #2 (permalink)  
Old August 1st, 2008, 11:29 AM
Friend of Wrox
Points: 6,676, Level: 34
Points: 6,676, Level: 34 Points: 6,676, Level: 34 Points: 6,676, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2007
Location: Germany
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts

It is not clear to me what you want to achieve.
The markup you have posted is not a well-formed XML document, rather it looks like the concatenation of two documents.
So I am not sure what you want to achieve. If you want to have two documents as the result of an XSLT transformation then you can use xsl:result-document in XSLT 2.0 but you will create two separate documents that way.

  Martin Honnen
  Microsoft MVP - XML
Reply With Quote
  #3 (permalink)  
Old August 1st, 2008, 06:07 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

You mean, you want to create an output file that contains two separate XML documents concatenated end-to-end?

You can't do that with standard XSLT, because it's a very non-standard arrangement. Create the two documents separately, and then concatenate them with some other non-XML-aware utility.

Michael Kay
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transform xml to xml changing one tag. surfer97301 XSLT 2 April 21st, 2010 05:14 PM
how to get xml tag name project2n5e0o1 Ajax 1 December 15th, 2006 09:51 AM
How to create end tag on empty elements rjonk XSLT 1 July 21st, 2006 01:18 PM
how to get xml tag names in xslt mdawoodk XSLT 8 March 14th, 2005 05:55 AM
XML to (different <tag>) XML mapping Thodoris XML 4 April 27th, 2004 04:02 AM

All times are GMT -4. The time now is 06:20 PM.

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