XSLT file import in B1if
Hi All,
I want import xsl file in B1if. I want parse the xml Files. Where i am going to import New XSL Files.
Thanks & Regards
B.Lakshmi narayanan
All answers are here : XML DB Developer's Guide
There's a specific forum for related discussions too : {forum:id=34}
SQL*Loader is not an XML parser.
You have to first load the entire file in a database table, preferably in an XMLType column, then access the data relationally with dedicated XML functions.
Here's an example that shows how to do both operations at the same time (but for performance sake, not recommended on large files) :
create directory test_dir as '/tmp/xml';
SQL> select x.*
2 from xmltable(
3 '/PickticketBridge/Pickticket'
4 passing xmltype(bfilename('TEST_DIR','newxml.xml'), nls_charset_id('AL32UTF8'))
5 columns Company varchar2(10) path 'Company'
6 , Division varchar2(10) path 'Division'
7 , PktCtlNbr varchar2(10) path 'PktCtlNbr'
8 , Warehouse varchar2(3) path 'Warehouse'
9 ) x
10 ;
COMPANY DIVISION PKTCTLNBR WAREHOUSE
001 001 C38938607 AVE
Similar Messages
-
How to convert xslt file into string
i'm writting a java program to use xslt to transform the xml file. i'm encountering the problem when i try to convert the xslt file into string. i've defined my utility class called 'XmlUtil' to carry out the operation of transform xml file through xslt. but in my main java program i need to convert both xml and xslt file into a string in order to input them in my function argument. my function argument is as follows:
String htmlString = XmlUtil.applyXsltString(xmlContent, xsltString);
i've already converted xmlcontent into string by using:
xmlContent = xmlContentBuffer.toString();
but i don't know how to convert 'xsltString' now ? i've searched the google for an hour but i cannot find the solution. anyone can help ?
detail of my souce code is as follow:
import java.io.*;
import java.net.*;
import java.lang.*;
import java.io.StringReader;
import java.lang.reflect.Array;
import java.util.Properties;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.sax.SAXTransformerFactory;
import javax.xml.transform.sax.TransformerHandler;
import javax.xml.transform.stream.StreamSource;
import org.apache.xml.serializer.OutputPropertiesFactory;
import org.apache.xml.serializer.Serializer;
import org.apache.xml.serializer.SerializerFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import XmlUtil;
public class FileDownload {
public static void download(String address, String localFileName){
OutputStream out = null;
URLConnection conn = null;
InputStream in = null;
StringBuffer xmlContentBuffer = new StringBuffer();
String temp = new String();
String xmlContent;
try {
URL url = new URL(address);
out = new BufferedOutputStream(
new FileOutputStream(localFileName));
conn = url.openConnection();
in = conn.getInputStream();
byte[] buffer = new byte[1024];
int numRead;
long numWritten = 0;
System.out.println (in.toString ());
while ((numRead = in.read(buffer)) != -1) {
out.write(buffer, 0, numRead);
numWritten += numRead;
temp = new String(buffer);
xmlContentBuffer.append(temp);
System.out.println(localFileName + "\t" + numWritten);
xmlContent = xmlContentBuffer.toString();
String htmlString = XmlUtil.applyXsltString(xmlContent, xsltString);
} catch (Exception exception) {
exception.printStackTrace();
} finally {
try {
if (in != null) {
in.close();
if (out != null) {
out.close();
} catch (IOException ioe) {
public static void download(String address) {
int lastSlashIndex = address.lastIndexOf('/');
if (lastSlashIndex >= 0 &&
lastSlashIndex < address.length() - 1) {
download(address, address.substring(lastSlashIndex + 1));
} else {
System.err.println("Could not figure out local file name for " + address);
public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {
download(args);
}I don't understand why you need load the XML and XLS files into a String. A Transformer can be constructed from a Source and there is a StreamSouce which can be constructed from an InputStream. The transform() method can take a Source as input and can produce a Result. There is no need to go near a String representation of either the input.
-
Apply XSLT while importing the xml to the selected node in structure view
Hi All,
I would like to apply XSLT while importing the xml file to the selected node in the structure view.
How to go about it?
Thanks
SakthiHi All,
Got the solution,
UIDRef documentUIDRef = ::GetUIDRef(activeContext->GetContextDocument());
InterfacePtr<IDocument> document(documentUIDRef, UseDefaultIID());
InterfacePtr<IXMLImportOptionsPool> prefsPool( document->GetDocWorkSpace(), UseDefaultIID() );
InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());
InterfacePtr<IK2ServiceProvider> serviceProvider(serviceRegistry->QueryServiceProviderByClassID(kXMLImportMatchMakerSignal Service, kXMLThrowAwayUnmatchedRightMatchMakerServiceBoss));
InterfacePtr<IXMLImportPreferences> prefs(serviceProvider, IID_IXMLIMPORTPREFERENCES);
XMLImportPreferencesInitializer initializer(prefs, prefsPool);
bool16 prefBool = prefs->GetNthPrefAsBool(0);
prefs->SetNthPref(0, kTrue);
The above code set the import option "Delete elements, frames, and content that do not match imported XML"
Thanks
Sakthi -
Is XSLT with import/include on database side supported?
Hi
I use server side (Oracle 10.2) XSL transformation (in particular DBMS_XSLPROCESSOR package) with source XML and XSLT files stored as XMLType columns. It works Ok. However I did not manage to get it working when importing spreadsheets into XSLT files like this:
<xsl:import href="generic-elem-to-csv.xslt"/>
Does Oracle database support Stylesheets with Include and Import to transform XML files on database side?
Thanks,
VladHi,
According to your post, my understanding is that you had problems to import the SharePoint SP1 environment site library to SharePoint SP2 environment.
Alex is right, now we could not import the site from the lower version to the earlier version directly since SharePoint 2010 SP2.
If you wanted to import the library to the new environment, you should first upgrade the SharePoint environment to the SP2, then export the library.
Now you can import the library without the issue.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Hello friends
To change the submit button functionality in Survey I am trying to change the CRM_SVY_GENERATE_SURVEY_TEMPLATE.XSLT file can any one let me know how can i do this as its not allowing to replacing the file or edit it.
And i have imported my own XLST then how can i enable the new XSLT to be used instead of the standard XSLT in survey.
Please give some help.
Regards
Pulkit
Message was edited by:
Pulkit AgrawalHi Pulakit
I also have same requirement but to change the layout & found a note which explains uploading another version of xslt provided by SAP.
SAP Note 1161188 - Survey Suite:Incorrect Error messagewhen Date is inputted
I am not sure if I should upload my own version of xslt using the program provided in this note & replace original. Or I should import with diff name.
If you have done it before, please guide me.
Regards
Vivek -
My scanner isn't a choice in File Import in PSE 8 for Mac
I just loaded PSE 8 in my new Macbook (Snow Leopard), but my Epson scanner doesn't appear in File>Import. I've followed all the instructions I can find including loading Rosetta and downloading the Twain drivers from the Epson site. Can anyone help?
You will need to go to Epson's site to see what is available for your scanner model. If you find one, download it and follow the instructions for installing it.
Sorry I can't be more specific, but I have a canon scanner (and it's so old there's never going to be an intel plug-in for it). -
I am importing a 569 x 441 Flash (CS3) swf file into
Dreamweaver. The file imports as a 32 x 32 "Flash" icon. Once I
change the pixel ratio, and select Play in DW - it looks fine. Once
I export and preview in a browser it looks nothing like my file.
WHY??? Can you please help me?I am importing a 569 x 441 Flash (CS3) swf file into
Dreamweaver. The file imports as a 32 x 32 "Flash" icon. Once I
change the pixel ratio, and select Play in DW - it looks fine. Once
I export and preview in a browser it looks nothing like my file.
WHY??? Can you please help me? -
CS5.5 hangs on file import
I have been using PP for several versions and have never experienced any major issues until now. At some point in the last few weeks (cannot link it to a recent PP update, but that may be the case) I have started having extreme problems when importing files. It started on my laptop, then I experienced the same problem on my desktop.
I nearly always import .mov files and have had no problems in the past. Now PP hangs randomly on file import. It seems to work more often than not if I import one file at a time, but even then it may stop randomly on a file. If I restart it may successfully import the file it stopped on, or it may crash again. It is impossible to import a large batch of files at once, so working on a large project is now almost impossible. I cannot see anything in this forum that relates to it. I am running Windows 7 an PP version 5.5.0. In addition my laptop version randomly shows 'pending' against different files - this changes to other files if I re-start. If I try to re-link it can also cause a hang.
One other change in my workflow. I have switched from a Canon 5D mark II to a mark III. But I can read and edit the files succesfully and play them in other applications, just as with the mark II. But even with the mark III I successfully imported my first batch of files about a month ago and had no problems whatsoever.
Any ideas?Update
I have been researching this further. There is a possibility that this is related to the new container format in the 5D mark III. This camera now allows high or low compression .mov files to be created. In the mark II they were all low compression. The last batch that I created was high compression. It is possible that PP is having trouble with these. It still randomly rejects files and randomly reports some as being off-line, yet the next time I connect they are back on-line. I created a batch of 10 with low compression and they loaded correctly, but have not tested this with a large batch of real files. I am also checking with Canon to see what has changed.
If anyone has any further advice or experience I'd be grateful. In the meantime it seems that the only way I can safely process these files is to run them all through the media encode and convert them to mp4 or something similar.
Further update
I am gradually answering my own question here. For anyone with a Canon 5D mark III you might be interested.
First batch of footage shot on 5D mk III set to 1080P high compression. This caused PP and Media Encode (ME) to crash frequently. Even footage already loaded came back with an off-line message randomly.
Test set of footage shot on 5D mk II worked perfectly in the same project. There are no compression options on the mk II.
Could not convert original batch with ME so used MPEG Streamclip to convert the batch of 100+. Conversion worked first time. Import into PP worked perfectly.
Shot a test batch of 10 with the mk III in low compression and they all imported with no problems.
This points to an incompatibility between PP/ME and the new 5D mk III low compression format files. I'll report this as a bug to Adobe. I have already reported it to Canon. -
In Premiere Pro CS5.5 AVI file imports audio only - no video.
I've got a file (one of 3) I've been given to create a smaller file (320x480) from.
The file is an avi file and plays (video and audio) just fine in the native Windows media player. (I'm on Windows 7 Ultimate 64-bit) There are no issues of memory or HDisc space.
Video:
The file is 2:21:29 in length.
720x480
Data rate 1489kbps
Total bitrate 1617kbps
29 frames/second
Audio:
Bit rate 128kbps
Channels 2 (stereo)
Audio sample rate 48 kHz
The file is about 1.6Gb
This is one of 3 I recieved. The other two were of comparable specs and similar length (not exactly but one was longer, the other shorter.)
The problem is that this particular file (the other two import perfectly), when imported, only comes in as an audio file. No video imports. The other files import as audio and video. No error message either.
I've imported all kinds of video files in the past with different frame sizes, rates, and aspect ratios, and codecs, yet I've never had one that only imports the audio without the video.
Suggestions?!Post in the Premiere Pro forum. This forum is for suite specific issues only.
Bob -
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.
-
I'm running Snow Leopard 10.6.8. I have the latest version of Firefox 5.0. I'm over Apple's Safari, and I'd like to transfer my bookmarks into Firefox. I've gone through your help and support section and found an article that could help me. However, when I click File, the "import" button is grayed out. Which prevents me from importing bookmarks into your browser. So I drug the Firefox icon into the recycle bin, and hit empty trash, then re-downloaded the firefox software from your site, and it seemed to remember my old bookmarks from a year ago. The file, "import" button was still grayed out, so I couldn't update my entire new list of bookmarks onto your web browser.
I'm running Snow Leopard 10.6.8. I have the latest version of Firefox 5.0. I'm over Apple's Safari, and I'd like to transfer my bookmarks into Firefox. I've gone through your help and support section and found an article that could help me. However, when I click File, the "import" button is grayed out. Which prevents me from importing bookmarks into your browser. So I drug the Firefox icon into the recycle bin, and hit empty trash, then re-downloaded the firefox software from your site, and it seemed to remember my old bookmarks from a year ago. The file, "import" button was still grayed out, so I couldn't update my entire new list of bookmarks onto your web browser.
-
How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?
Hi hasvi,
Need Template(.indt), textframes etc for the following script:
var myFolderInd = Folder.selectDialog();
var myFile = myFolderInd.getFiles("*indt");
app.open(myFile)
var myDoc = app.activeDocument;
var myDocName = myDoc.name;
var mySaveFile = app.activeDocument.save(myFolderInd.fsName + "/" + myDocName.split(".indt").join(".indd"));
var myFolderDoc = Folder.selectDialog();
var myFile1 = myFolderDoc.getFiles("*doc");
mySaveFile.pages[0].textFrames[0].place(File(myFile1))
//~ mySaveFile.place(File(myFile1))
app.activeDocument.textPreferences.smartTextReflow = true;
var myPDFFile = new File(mySaveFile.filePath + "/" + mySaveFile.name.split(".indd").join(".pdf"))
myDoc.exportFile(ExportFormat.PDF_TYPE, File("~/Desktop/abc.pdf"));
alert("Process Completed")
Regards
Siraj -
How do you get canoscan lide 110 scanner to display in "file import" menu?
I have several older versions of Photoshop Elements running on various computers. In ALL of them, if you go to "File>Import" you see "Canoscan LIDE xx". when you choose it, there is a great scanning application that runs. On a newer computer, i had Photoshop CS5.5 installed. It only shows WIA under the import menu. The scanning software there is horrible. I tried installing the same scanner (lide 110) on an older computer running older photoshop elements and it showed up. i then installed a older version of the elements software on the new computer. Again, the scanner showed up. Not wanting to break licensing agreements, i just downloaded a brand new version of photoshop elements 12 and installed it. it only shows WIA in the file/import menu and not the scanner. therefore, i dont have the scanning software/application i need. without it, this version of elements is 100% useless to me. can someone please help me get my scanner to appear in the "file>import" menu? Yes, i do have the latest version of software downloaded from canon's website.
Hi,
I believe that this is where PC & MAC versions differ.
The PC version will "get from scanner" in the organizer but the MAC version has to "Import from scanner" in the editor. I don't know why they act differently.
It has been posted on this forum (can't find thread at the moment) a fix for the windows version of copying a module from a previous version if you had one. That is not an official fix.
If I find the link I'll post back.
Brian -
Problem using Resource Bundle in XSLT File
Hi All,
I've been trying to use Resource Bundle on my XSLT file with no success for the last 2 weeks. So I would like some help to definitely end this problem.
The fact is that i have a property file that i would like to read and it works fine when i use jsp or a servlet however when i try to call the same property file using my XSL i get the message below:
java.util.MissingResourceException: Can't find bundle for base name thoth, locale en_US
Follow the code from my Stylesheet that i'm calling the resource bundle:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="java.util.ResourceBundle" exclude-result-prefixes="java" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:output method="html" indent="yes" version="4.0"/>
<xsl:output encoding="ISO-8859-1"/>
<xsl:template match="page">
<html>
<body>
<xsl:apply-templates select="paragraph"/>
<xsl:variable name="resources" select="java:getBundle('thoth')"/>
<xsl:value-of select="java:getString($resources,'general.title')"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet. Should i have to put it some other place? Do i have some other way to read this file and show the information from the file?
I would appreciate any help
thanks in advance and Regards
FabioPlease someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet.
Is the property file in your classpath? or whether the directory where the property file is residing is in your classpath. Please put only the directory where the property file is located in the classpath and try again.
It may be working fine with the servlet because j2ee servlet containers put the classes and lib directory automatically in the classpath therefore resource bundle gets loaded even without putting it explicitly in the classpath. This doesn't happen when you try to test some component from the console.
Let me know if this does not work.
regards,
Abhishek. -
File Import Error - Adobe Media Encoder, help!
I'm at a complete loss. AME worked very well for me for a long time and booting it up yesterday gave me a paralyzing error.
Upon trying to import an MOV, MP4, and later a WMV, I received the following error:
File Import Error
The file C:\Users\tj\Desktop\New folder\SH_GS_PeekPlay_DEMO_720.mp4 could not be imported. Could not open source file. Please check that file exists with correct permissions.
I've tried everything I can think of:
1. Moved the file off the server and onto my desktop.
2. Double checked file permissions (all of which I have)
3. Uninstalled AE and Premiere to try to get rid of Media Encoder.
4. Searched for a way to uninstall AME so I could put a fresh install (can't find how to do this)
5. Manually updated AME
6. Reboot (multiple times between these steps)
7. Contact customer support - no help thus far.
I'm running Windows 7 64bit with Adobe CC and AME 7.0.1.58Tried that as well.
To rule everything out, I had the files placed:
1. On company internal server
2. External Harddrive connected through Firewire
3. Internal Hard Drive (with OS)
4. Internal secondary Hard Drive (data only)
5. On Desktop (technically 1st internal drive)
I have since fixed this by uninstalling every single Adobe application (including Flash and Air) and redownloading and installing each.
Maybe you are looking for
-
Changing action name of sample custom action block in MII 12.2
Hi all, I have a problem changing the action name of the custom action block sample. I've changed the content and successfully implemented the action block. But when I changed the action name and uploaded again, the action block cannot display any in
-
The right side of my window has been cut. Many efforts of resizing it have not helped. The left side is unusually larger.
-
Dear All, DB version - 10.2.0.1 enterprise edition os - oracle Solaris spark 64 bit We want to patch the above mentioned DB version to 10.2.0.5 so that we can have the repository database of oracle enterprise manager 12.1.0.4 While looking for pre up
-
Hello, We are in stage of configuring SIP Trunk between 2 CUCM clusters (cluster A & cluster B ) via SME. Can any body help how to configure incoming & outgoing calls on SME using SIP ? For Example: For a call from user A (cluster A) to user B (clus
-
IPhone 4 don't alrm me on call/text
I am using iphone 4. When someone call/text me, my phone's screen didn't alrm me about this. But on next call/text message, my screen viberate so I can see someone is calling me and I also can see there were some miss calls and text messages being de