Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OXI Opera: how to generate XML from XSLT with a special tag "<?Label&quo 1

Status
Not open for further replies.

kaddul

Technical User
Oct 5, 2011
3
0
0
MX
Hi!!!

i'm using a XSLT but i cannot generate the second tag <?LABEL...
that tag is special because is needed for PMS-Opera (management system for hotels).

my scenario is XML to XML

origin XML
<?xml version="1.0"?>
<Client>
<Item>
<ClientID>0000105989</ClientID>
<KeyUser>TDIAZ</KeyUser>
<Date>2011-06-23</Date>
<SystemUser>users</SystemUser>
<LastDate>2011-08-03</LastDate>
<Name>Liberty Travel</Name>
<Item>
</Client>

RESULT

bad XML for OPERA
<?xml version="1.0"?>
<Profile>
<profileID>0000105989</profileID>
<creatorCode>TDIAZ</creatorCode>
<createdDate>2011-06-23</createdDate>
<lastUpdaterCode>users</lastUpdaterCode>
<lastUpdated>2011-08-03</lastUpdated>
<genericName>Liberty Travel</genericName>
</Profile>

good XML for OPERA
<?xml version="1.0"?>
<?Label HOTEL|PROFILE|000000000000000323|SUCCESS?>
<Profile>
<profileID>0000105989</profileID>
<creatorCode>TDIAZ</creatorCode>
<createdDate>2011-06-23</createdDate>
<lastUpdaterCode>users</lastUpdaterCode>
<lastUpdated>2011-08-03</lastUpdated>
<genericName>Liberty Travel</genericName>
</Profile>


How can i put that tag <?Label HOTEL|PROFILE|000000000000000323|SUCCESS?> in my result XML?
 
This is admittedly a bit hard to find in most references, and one of the least used XSLT elements. Look here.

Tom Morrison
Micro Focus
 
Thanks!!!

You resolve my problem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top