Xsl transformation from version1 to version2, problem with namespaces
Guys!
In my current project we need to have an interface in Oracle ESB which is build on lets say a wsdl version1 and an interface build on wsdl version2.
In esb i need to define a transformation which will transform the request on version1 to version2. Because the xsd for the operation is really huge (+1000 items) i made some templates in xsl to do most of the work, works great..only i'm having a few issues now.
To re-order items from source to target i do the next in a template
<nameGroep>
<xsl:copy-of select="andhere the xpath from source"/>
<xsl:copy-of select="andhere the xpath from source"/>
<xsl:copy-of select="andhere the xpath from source"/>
</nameGroep>The only problem from the xsl:copy-of is, it also copies the namespace along. So if my target document uses an other namespace, it fails.
To correct this i hoped i could make use of <xsl:namespace-alias> but this doesn't work on a literal/text tag (hope i explain this correct).
Other option is, for every element do something like
[code[
<elementname>
<xsl:value-of select=""/>
</elementname>
but this will create the <elementname> always in the target whether or not it's in the source. You could do a check to see if it's in the source, but this isn't a solution because then i need to check for every 1000+ item in the source document, so..we skip this idea.
So i reach a point where im still searching for a good solution and hoped you guys could help me a bit with it.
If the problem isn't explain well please say so, and i will add extra info.
Guys!
In my current project we need to have an interface in Oracle ESB which is build on lets say a wsdl version1 and an interface build on wsdl version2.
In esb i need to define a transformation which will transform the request on version1 to version2. Because the xsd for the operation is really huge (+1000 items) i made some templates in xsl to do most of the work, works great..only i'm having a few issues now.
To re-order items from source to target i do the next in a template
<nameGroep>
<xsl:copy-of select="andhere the xpath from source"/>
<xsl:copy-of select="andhere the xpath from source"/>
<xsl:copy-of select="andhere the xpath from source"/>
</nameGroep>The only problem from the xsl:copy-of is, it also copies the namespace along. So if my target document uses an other namespace, it fails.
To correct this i hoped i could make use of <xsl:namespace-alias> but this doesn't work on a literal/text tag (hope i explain this correct).
Other option is, for every element do something like
[code[
<elementname>
<xsl:value-of select=""/>
</elementname>
but this will create the <elementname> always in the target whether or not it's in the source. You could do a check to see if it's in the source, but this isn't a solution because then i need to check for every 1000+ item in the source document, so..we skip this idea.
So i reach a point where im still searching for a good solution and hoped you guys could help me a bit with it.
If the problem isn't explain well please say so, and i will add extra info.
Similar Messages
-
I am not able to open iCloud from pc, error is "problem with the server". what should I do?
Go to Settings>General>Restrictions>Accounts (near the bottom) and set this to Allow Changes. You will then be able to access Settings>iCloud again.
-
I bought a new MacBook Pro several months ago. I keep losing my wireless connection (my wife, sitting several feet from me has no problem with her iPad2). I find the quickest fix ix to turn Airport off and back on. Very annoying. Suggestions please?
What kind of wireless router are you using? more importantly which protocol are you connecting with? Are you and wife connecting using the 2.4Ghz band? or do you have a dual band router that offers the 5GHZ band? Are you both connecting vie 802.11 a/b/g or n?
The best thing to do is to go into SYSTEM PREFERENCES and select NETWORK, then select AIRPORT and click on the ADVANCED button.
Under the AirPort tab you should delete all the preferred networks and only add back in your network with the proper security settings and passwords.
If you hold down the option key on your keyboard while clicking on the airport icon at the top on your macbook pro. you'll seesome data that will tell you what band and mode you're connecting at, as well as in an indication of signal strength (RSSI) if you write down and post back that information it'll tell us what's going on. -
hello! im from argentina. im having problems with my iphone. can my friend take it to usa for a cheking?
what do i need to take my iphone to an apple store? just the iphone? or the charger also? what about the ticket?
sorry about my englishIf your phone was purchased in the US, yes. Otherwise, no. And, you only need the phone, nothing else.
-
Itunes states that my computer is not authorized to download an audio book I purchased from itunes. No problem with purchased songs however.
Hello susanserio
Try Deauthorize your account and then Authorize the account to see if any changes occur. Also there may a resolution in the second article that can be helpful as well.
iTunes Store: About authorization and deauthorization
http://support.apple.com/kb/HT1420
iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
http://support.apple.com/kb/ts1389
Thanks for using Apple Support Communities.
Regards,
-Norm G. -
Hey guys, this is one of my xml-elements:
Jaspreet Sohi 12 18 Juliane Lenz 11 17 Sophie Charlotte Stender 10 15 Rosbeh Hamidzadeh Khayyat 12 17 Lion Stoldt 12 17 Mats Lucas Meincke 6 8 Bero Luke Vincent Ernst 6 8 Cedric Roth 6 8 Soner Cantay 6 8 The following XSL Transformation I use once for transforming all "m" tags and once in order to transform all "j" tags. Please imagine the CSL-code below to be duplicated exactly. Only the "jungs"-table-Tag is replaced by "mädchen" and all underscores _j are replace by _m. As well all "select="j[@..." parts are replaced by "select="m[@...". 1 2 3 The code is very easygoing I think and not difficult to understand. As I said, I use it twice - for both transformations. The very, extremely weird thing, my problem, is that one transformation works perfectly in InDesign and a table is created for all "kategorie"-tags (all is set within a for-each loop). But the second script does not work! I simply do not get this I can't understand it. I've tried more than anything. InDesign sais (in German, so translated based on assumption) "jungs is an invalid table element or is displayed in wrong order". The second strange thing is that I can replace my "aid:trows" attribute by any number, e.g. "10" and immediately the script works fine (as there are never more than 6 "j" tags in my XML so that never the table has more than 6 rows"). But it does not want to work correctly with the actual number, my variable "rows_j". These are my variables: They are all defined before the tables for m and j are created. So finally, why (the heck) is one table created and interpreted perfectly whereas the second - immediately following the first in the XSL.script as an EXACT copy of the first - results in an error? As i've already said, I've tried really everything. For example the script works also when one of the parts "" is randomly deleted from the script. Removing one of these parts directly makes the script working. Just one of my attempts to understand the thing but this has only shown that none of these parts "cell to end-for-each" includes an error. I'm really desperate and looking forward to being rescued by one of you geniuses :)Hah, No worries. The forum software is, well, different.
What would be better, though, would be a sample ID file, any XSLT/XLT files you use, and a bit of data exactly as you have it (pre-transform state). ZIP it up, upload to say dropbox.com and feel free to send me a private message for the download link.
Too many times there is something different between samples pasted into a post and the real thing that it is sometimes less useful time-wise. I'll keep it private, of course. Then we can communicate via PMs or email until we can (hopefully) arrive together at a solution, then post what that solution is in the forum to benefit others.
Thank you, Mike -
XSL mapper problem with namespace defined in the element
Hi.
Using XSL Mapper from JDeveloper, I have imported one xsl that now is working and it generates an error. The source for the mapper is:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns4="http://sample.com" xmlns:ns3="http://sample2.com" version="1.0">
<xsl:template match="/">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
And I get
Line Number:(25) : Error: "soapenv:Envelope" Element not Found in Target Schema
But, if I change a little bit the definition, I solve the error.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns4="http://sample.com" xmlns:ns3="http://sample2.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" version="1.0">
<xsl:template match="/">
<soapenv:Envelope >
Why is this happening? It will make a lot of work trying to change all the old transformations that are well formed according with w3 specifications.
Thanks in advance.
RegardsHi,
Perhaps it would help if you post your XML file. -
Xsl transformation from html to text.
Hi, i want to tranform an html source and produce a output as text. All i want to do is to output values from my input fields in my html source. Any ideas on how i would construct my xsl file.
example :
HTML:
<html>
<body>
<input name="od" type="text" value="123">
<input name="id" type="text" value="456">
</body>
</html>
would simply give :
123
456
Thanks for your help !!!Here is what I came up with. I changed the regular HTML into XHTML then created a stylesheet that would use XPath to find and display the values or the value fields:
test.xml (XHTML version of the HTML you posted)
======================================
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<html>
<body>
<input name="od" type="text" value="123"/>
<input name="id" type="text" value="456"/>
</body>
</html>
test.xsl
======
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>Input values</title>
</head>
<body>
<xsl:for-each select="html/body/input">
<xsl:value-of select="@value"/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
this gives the desired result. -
Eligible update from adobe to fix problem with brushes?
As you know I tryinf find out some solution to fix my problem with Adobe Photoshop cs5 Extended version with the newest updates- I ve got a problem with corectly view of brush preview on my screen and bugs with it- always change to normla cursor, exactly this:
http://www.youtube.com/watch?v=UAwav8h41o0
I have already contacting INTEL:
Try to find out some updates to my video cards: INTEL HD GRAPHIC 3000
But inel told me that is not their problem and they gonna not help me, they told me that I should contact APPLE,
So I contact apple:
Apple told me that they have no responsibility from 3rd party company as ADOBE and their software: Photosohp CS5 and they told me as well that I should contact ADOBE,
Ok, I try to cntact adobe:
but I cannot find some contact on official site- email, where I can deteailed describe my problem, so for that I try to find some information through the community forum here:
PLEASE IF THIS READ ANYBODY FROM DEVELOPER TEAM FROM ADOBE:
Can you give some advice how can I fix my problem?
THANK YOU VERY MUCHYou could try
http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop
But are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift pressed while starting Photoshop, 3rd party plug-ins deactivation, system maintenance like repairing permissions, purging PRAM, font validation, etc.) yet? -
When I try and restore from iCloud it says problem with back up data help !!!
Can anyone help me back up my phone from iCloud. It is saying there is a problem with my data
Hey Shopaholic1181,
Thanks for using Apple Support Communities.
iCloud: Understanding alert messages when restoring from an iCloud Backup
http://support.apple.com/kb/TS4585
"Your iPhone cannot be restored because there is a problem with your backup data. Choose a different backup to restore from."
Your backup does not appear to be usable. If you receive this alert, you should check the iCloud System Status at the iCloud Support website to make sure there are not any issues occurring with iCloud Backup. If there is not a widespread issue notated on the iCloud System Status, the error may self-resolve if you wait several minutes and try again. If issues persist, you should contact iCloud Support via the iCloud Support website.
Have a nice day,
Mario -
From yesterday i have problems with my mac App Store i couldn't finish updating
I was updating my mac with the last version and from this time i have problems with the App Store
I was updating my mac with the last version and from this time i have problems with the App Store
-
Error in generating a new XSL Transformer from large xslt File
Good day to all,
Currently I am facing a problem that whenever i try generating a Transformer object from TransformerFactory, I will have a TransformerConfigurationException threw. I have did some research from the net and understand that it is due to a bug that JVM memory limit of 64kb. However is there any external package or project that has already addressed to this problem? I have checked apache but they already patch the problem in Xalan 2.7.1. However I couldn't find any release of 2.7.1
Please help
Regards
RollinMaoIf you have the transformation rules in a separate XSLT file, then, you can use com.icl.saxon package to get XML files transformed. I have used this package with large XSL files and has worked well.
-
Why, when exporting as master file from FCX, I have problem with sync
I edited all audio of a short movie in protools, bounced a stereo file, imported it in final cut and shared the master file at prores 422, from there through compressor I have created 2 files (mpeg 2 and ac3) and burnt a dvd but seems always to be out of sync , why?
fortunately i still have dvd studio pro that allow me to "nudge" the audio to fix the problem, but all this is quite time consuming.
any advice?I have fixed some issue about audio and video, created a new project with correct sample rate, imported the master video at same frame rate, and in pt bounced a new track of audio, so no orange bar, everything fine in FCX,AUDIO AND VIDEO PERFECTLY IN SYNC. i exported a master file at best current setting and in compressor have created a dvd setup hi quality, 2 pass vbr encoding mode etc
and.. imported the m2v file and ac3 in DVD STUDIO PRO, and on time line i hear out of sync, now i don't know if the problem happen during the encoding in compressor or is dvd studio pro. -
When running on 8.4 i had a working config with the following scenario.
I have 2 interfaces configured as the outside interface.
One is connected to my internet connection
The other one is connected to a host that has a public ip.
The public host can access internet and also a PAT port on an internal host.
But after the upgrade the internal hosts can't access the external host but everything else on internet
packet-tracer input inside tcp 10.x.x.11 1024 x.x.x.89 22
Phase: 1
Type: ACCESS-LIST
Subtype:
Result: ALLOW
Config:
Implicit Rule
Additional Information:
MAC Access list
Phase: 2
Type: ROUTE-LOOKUP
Subtype: input
Result: ALLOW
Config:
Additional Information:
in x.x.x.0 255.255.240.0 outside
Result:
input-interface: inside
input-status: up
input-line-status: up
output-interface: outside
output-status: up
output-line-status: up
Action: drop
Drop-reason: (nat-no-xlate-to-pat-pool) Connection to PAT address without pre-existing xlate
If i add 1 to the destination ip:
packet-tracer input inside tcp 10.x.x.11 1024 x.x.x.90 22
Phase: 1
Type: ROUTE-LOOKUP
Subtype: input
Result: ALLOW
Config:
Additional Information:
in x.x.x.0 255.255.240.0 outside
Phase: 2
Type: ACCESS-LIST
Subtype: log
Result: ALLOW
Config:
access-group inside_access_in in interface inside
access-list inside_access_in extended permit ip any4 any4
Additional Information:
Phase: 3
Type: NAT
Subtype:
Result: ALLOW
Config:
nat (inside,outside) source dynamic any interface
Additional Information:
Dynamic translate 10.x.x.11/1024 to x.x.x.80/1024
Phase: 4
Type: NAT
Subtype: per-session
Result: ALLOW
Config:
Additional Information:
Phase: 5
Type: IP-OPTIONS
Subtype:
Result: ALLOW
Config:
Additional Information:
Phase: 6
Type: NAT
Subtype: rpf-check
Result: ALLOW
Config:
nat (inside,outside) source dynamic any interface
Additional Information:
Phase: 7
Type: USER-STATISTICS
Subtype: user-statistics
Result: ALLOW
Config:
Additional Information:
Phase: 8
Type: NAT
Subtype: per-session
Result: ALLOW
Config:
Additional Information:
Phase: 9
Type: IP-OPTIONS
Subtype:
Result: ALLOW
Config:
Additional Information:
Phase: 10
Type: USER-STATISTICS
Subtype: user-statistics
Result: ALLOW
Config:
Additional Information:
Phase: 11
Type: FLOW-CREATION
Subtype:
Result: ALLOW
Config:
Additional Information:
New flow created with id 98586, packet dispatched to next module
Result:
input-interface: inside
input-status: up
input-line-status: up
output-interface: outside
output-status: up
output-line-status: up
Action: allow
Nat rules:
nat (inside,outside) source static IPv6_HOST interface service https https
nat (inside,outside) source static IPv6_HOST interface service http http
nat (inside,outside) source static IPv6_HOST interface service ssh ssh
nat (inside,outside) source static INTERNAL interface destination static EXTERNAL EXTERNAL service apcupsd apcupsd
nat (inside,outside) source static IPv6_HOST interface destination static IPv6_POP IPv6_POP
nat (inside,outside) source dynamic any interface
The EXTERNAL is the host that is connected to an outside interface and that NAT rule works ok.
I can ping the EXTERNAL host from the ASA but not from the internal network.
Any ideas would be appreciated.Hmmm, by adding the following i got it working:
nat (inside,outside) source static IPv6_HOST interface service https https
nat (inside,outside) source static IPv6_HOST interface service http http
nat (inside,outside) source static IPv6_HOST interface service ssh ssh
nat (inside,outside) source static INTERNAL interface destination static EXTERNAL EXTERNAL service apcupsd apcupsd
nat (inside,outside) source static IPv6_HOST interface destination static IPv6_POP IPv6_POP
nat (inside,outside) source dynamic inside interface destination static EXTERNAL EXTERNAL
nat (inside,outside) source dynamic any interface
It is a bit complicated though since the EXTERNAL host get it's address via DHCP and so does the ASA. -
Export from ALV to Excel - problem with numeric values
hi folks,
when exporting from alv to excel and we have negative values (and using an u.s.a. setting where . and , are different to r/3) negetive values are not shown correctly in excel.
when changing in win nt the regional settings to europe one's (e.g. germany) everything works fine.
any hints welcome,
kind regards
oliverI guess this has something to do with the excel settings. In the control panel you have regional settings.try some options there. It might work.
Regards
Sudhi
Maybe you are looking for
-
I have my brothers icloud account on my ipad and i want my icloud account back I have all my games from my acount but I can see his massages notes etc how can I get my icloud account back I tried so many things please help .???
-
Importing CD - No Disk Error Message When Ejecting CD
Every since I upgraded my itunes to the latest version, I am getting an error message telling me there is no cd every time I eject my cd after importing. It gives me an option to retry, continue and cancel. No matter what I pick it does not recognize
-
CS5 & Manage Custom Sizes when printing.
Every time I try to "manage custom sizes" when printing, Photoshop "quits unexpectedly." I am using Photoshop CS5, and Epson 7800, and Mac Yosemite. I've done all the updates, and reinstalled the driver. Any ideas on troubleshooting?
-
AIR 3.0 mx:HTML embedded fonts in external swf - silent craziness
The recent upgrade to AIR 3.0 has hosed our application. We rely heavily on an mx:HTML control to render the UI of our application using javascript and HTML templates. Everything has been working great in production for months, until Adobe released
-
White background in composition window while rendering
I've got some footage that, while rendering, the composition windows background (not the comp background) turns white. I think remember from somewhere that this is a sign of a codec issue? I can't seem to find the correct search criteria to find this