Js load xml element - style match from another file
Hi all
I got a ID file with a placed xml file, all styles are prepaired.
Now I would like to load the xml element <-> style match from a given template file, where I prepaired all the matches.
I would imagine this is a bit like loading the styles or the swatches from another file, but have not found any code samples yet.
Can anybody help?
Thanks
Romano
js for Structure; XML; Map Tags to Styles...
I don't think that is what I am looking for and I feel I must asked this question in an unclear way...
so I started a new discussen with the above heading.
Thank you anyway.
Romano
Similar Messages
-
When clicked on an icon in the infopath 2013 form, it will open another infopath 2013 form from another
file. How do?Hello Eugene Astafiev!
I need the following scenario:
I have a Sharepoint library with items created by Infopath (form A).
I developed another form (form B) that will query items created by form A.
The form B will be in a static "webpart" page navigation (Sharepoint). One of these fields returned by the query library that manages the items created is the URL responsible to load the item data . I would like to parameterize the URL into form B.
So that when the user clicks on it, the form A with their respective data in a modal is returned (which may be a native modal Sharepoint) -
Insert Pages From another File?
HI Everyone,
Is there a way I can insert entire pages from one file into another?
I'm working on a document and need several pages from another file - is there a way I can import or insert?
Cheers
DarrynOpen your files & show thumbnails. Sections have a yellow border around all of the pages in that section. Now click on the page in the thumbnail pane & copy. If the file is more than one page & you only want one, you'll need to insert a section break to separate the pages. Then go to your other file, click in the thumbnail pane & paste. The whole copied page will be pasted in. Repeat with another section. Styles will copy over with the sections but headers & footers will not.
-
Initialize a global with a global from another file
hi,
I know that initialization order for global variables across compilation units is not defined, but if I have
file1.cpp
int x0 = 33, x1 = 55;
extern int y0, y1;
static int a[] = { y0, y1 };
void print_a( void ) { printf( "\na[0] = %d\na[1] = %d", a[0], a[1] ); }
extern void print_b( void );
main()
print_a();
print_b();
and file2.cpp
int y0 = 77, y1 = 99;
extern int x0, x1;
static int b[] = { x0, x1 };
void print_b( void ) { printf( "\nb[0] = %d\nb[1] = %d", b[0], b[1] ); }
I notice that values are displayed correctly and consequently, initialized in the order I need. So what's the secret, coincidence, am I lucky? Does it make any difference if file2.cpp is part of a static library?
Thanks@ Igor Tandetnik: Yes, I chose an example with circular dependency just to show that it was not the situation that, by luck, the "other" file was was initialized first. Yes, I would like a solution for such circular dependency, but I hope that I will
find, at least, a solution for the case when such circular dependency does not exist. What I want to achieve? As the title says, I want a solution to be able to initialize globals with globals from another file, a solution as general and fault proof and convenient
as possible.
@ Wyck: I thought about something like that, problem is that in case of large arrays there is a lot to type. Another solution (it saves a little typing) I saw was something like
// common_header.h
#define LIST_A y0, y1
#define LIST_B x0, x1
// file1.cpp
#include "common_header.h"
Number x0(33), x1(55);
static Number a[] = { LIST_A }; // just to give correct size
// file2.cpp
#include "common_header.h"
Number y0(77), y1(99);
static Number b[] = { LIST_B }; // just to give correct size
// init.cpp
extern Number LIST_A, LIST_B;
void init()
{ Number a_[] = { LIST_A }; Number b_[] = { LIST_B }; // stack usage
for( int i = 0; i <_countof( a_ ); i++ ) a[ i ] = a_[ i ];
for( int i = 0; i <_countof( b_ ); i++ ) b[ i ] = b_[ i ];
This still has the problem of using much stack in case of large arrays and if array members are more complex structures (might also contain string literals), there is a bit more difficult.
Bellow is a solution I came up with using macros but which I don't really like because is a bit cumbersome. I'm looking for something better/more elegant/safer or simply I want to see what other solutions people see here.
// file1.cpp -------------------------------------------
#define MEMBER_LIST( Usage ) \
Usage( x1 ) \
Usage( x2 )
#define IMPORT( ext_member ) extern Number ext_member;
#define COUNT( member ) 1 +
#define LOAD( member_val ) a[ i++ ] = member_val;
Number y1 = 77, y2 = 99;
MEMBER_LIST( IMPORT )
static Number a[ MEMBER_LIST( COUNT ) 0 ];
static void InitGlobals_a( void ) { uint8 i = 0; MEMBER_LIST( LOAD ) }
extern void InitGlobals_b( void );
int _tmain(int argc, _TCHAR* argv[])
{ InitGlobals_a(); InitGlobals_b();
return 0;
// file2.cpp -------------------------------------------
#define MEMBER_LIST( Usage ) \
Usage( y1 ) \
Usage( y2 )
#define IMPORT( ext_member ) extern Number ext_member;
#define COUNT( member ) 1 +
#define LOAD( member_val ) b[ i++ ] = member_val;
Number x1 = 33, x2 = 55;
MEMBER_LIST( IMPORT )
static Number b[ MEMBER_LIST( COUNT ) 0 ];
void InitGlobals_b( void ) { uint8 i = 0; MEMBER_LIST( LOAD ) }
Of course, something like
#define MEMBER_LIST( Usage ) Usage( x1 ) Usage( x2 )
could be further simplified using other macros so you can simple use
#define MEMBER_LIST x1, x2
but those additional macros will add up to the complexity. -
Calling a method from another file
This is pretty basic stuff but i can't seem to get it right. I am calling a method from another file. The other file IS located in the same folder BUT when i compile i get errors
"cannot find symbol" <===referring to limit and sieve i believe.
The method name is "sieve" the file name is "PrimeSieve2008" and "limit" is the variable in brackets in the real method.
public static void main (String [] args) {
final int [] PRIMES;
int sieve = PrimeSieve2008.sieve(limit);
PRIMES = sieve(getValidInt());
for (int j = 0; j<PRIMES.length; j++) {
System.out.println("Prime[" + j + "] = " + PRIMES[j]);
Is "int sieve = PrimeSieve2008.sieve(limit)" the wrong way to call a file?
Thanks a million,
Alex
Edited by: Simplistic2099 on Apr 3, 2008 7:47 PM
Edited by: Simplistic2099 on Apr 3, 2008 7:49 PMSimplistic2099 wrote:
the other method runs fine:
"public static int[] sieve(final int limit){
int candidate; // possible prime
int count; // no. of primes found
boolean[] mayBePrime = new boolean[limit+1];
// remaining possibilities
final int[] PRIMES; // array to return
// initialize mayBePrime
for ( int j = 0 ; j <= limit ; j++ ) {
mayBePrime[j] = true;
mayBePrime[0] = mayBePrime[1] = false;
// apply sieve, and count primes
candidate = 2;
count = 0;
while ( candidate <= limit ) {
if ( mayBePrime[candidate] ) {
count++;
for ( int j = 2 * candidate ; j <= limit ; j += candidate ) {
mayBePrime[j] = false;
} // end for
} // end if
candidate++;
} // end while
// fill up new array with the primes found
PRIMES = new int[count];
count = 0;
for (int j = 2 ; j <= limit ; j++ ) {
if ( mayBePrime[j] ) {
PRIMES[count] = j;
count++;
} // end if
} // for
return PRIMES;
} // sieve
I really am clueless here.in this one you are passing in limit.
in the other one you are getting limit from somewhere outside of main. -
How do you sync music into your library from another file
how do you sync music into your library from another file? After moving all my music into a new location, is there a quicker way to upload the music into the library rather than adding file by file?
Hi MonicaJani,
Thanks for using Apple Support Communities. You can also add folders of media as described here:
Adding music and other content to iTunes
http://support.apple.com/kb/ht1473
Adding content on your computer to iTunes
iTunes helps you add digital audio and video files on your computer directly to your iTunes library. You can add audio files that are in AAC, MP3, WAV, AIFF, Apple Lossless, or Audible.com (.aa) format. If you have unprotected WMA content, iTunes for Windows can convert these files to one of these formats. You can also add video content in QuickTime or MPEG-4 format to iTunes. To learn how to add these files to iTunes follow the steps below.
Open iTunes
From the File menu, choose one of the following choices:
MacAdd to Library
Windows
Add File to Library
Add Folder to Library
Navigate to and select the file or folder that you want to add
If iTunes is set to "Copy files to the iTunes Music folder when adding to library," iTunes will copy all content that is added to the iTunes library to the iTunes Music folder. To adjust this setting or change the location of this folder, go to the Advanced tab in iTunes Preferences.
Cheers,
- Ari -
Loading a movie on html from another server
I have a question: I have a form on Flash and I want to make
the swf file a part of a HTML page.
Here is the(for me) tricky part: on Flash I use an external
php-file to send the information back to me, but the server where
the HTML page runs is an ASP.Net server. So I came up with the idea
to load the swf file from another server that runs the php-script.
But is not working.
Does anyone know if what I am doing is correct? Do I have to
write some code on flash or the HTML-page? Or do I just have to go
and learn ASP.Net?
Thanks a lot for any information.
Norman ParraNo. Movies are not eligible for iTunes in the Cloud (the movie studios won't grant Apple the necessary permissions, reportedly). So if you want the movie on another computer, you have to copy it there yourself from your work computer. Copy the movie to some removable medium or shared location, then just drag it into the iTunes window on your laptop.
Regards. -
Using the eyedropper tool to take a color from another file or website...
Hi,
I'm new to Kuler, but recall being able to use the eyedropper tool in InDesign and click on an area of color from a file from another application or a website and have use it in the InDesign file.
Am I incorrect?
If there is a way to do what I am asking if you could please explain how I'd really appreciate it.
Thanks and look forward to hearing back from you soon.Not sure what exactly you are asking here.
However, wrt Kuler in Indesign, You can add swatches to Indesign Swatches Panel. You can apply color to ID Fill/Stroke color by simply double-clicking a color on Create Tab inside Kuler panel. Or you can take color from Fill/Stroke and set it as base in Create tab to create theme around it -
To read string from another file
Dear friends
I am working on a project where i need to read log files which are there on my C drive.
I got a folder and from that i need to read string from another folder and name them as URL,TS etc..so any body have any idea about this...I have no idea what you're even trying to do. Can you try explaining your problem more clearly and in more detail?
-
Failed to load main-class manifest attribute from jar files....
Hi,
I installed Java1.5 version in my system before to that Java1.6 was installed and uninstalled. When i i double clicked on any jar file getting a message like: Failed to load main-class manifest attribute from<name of the jar file>.jar file....
can anyone please suggest me how to rectify this error.mvnath wrote:
The jar files are worked before the installation of 1.5 but not after installation of 1.5I am guessing that the Windows file association for .jar somehow got munjed. It's hard to say since you have not provided much information. -
How can i open a slide in another file on clicking a button from another file
Hello guys!
This is my first post on captivate community. I've sucked into a problem. Is this possible somehow to open a slide in another file while clicking on a button that is in a different file.
Any help would be appreciated.
ThanksJim's post might help in this.
Jump to a Specific Slide in a Course Using Captivate 7 - CaptivateDev.com
http://captivatedev.com/2011/05/01/how-to-jump-to-a-specific-slide-in-a-separate-course/
Read through the comments as well. You will generally find useful info there.
Sreekanth -
Help with counting XML elements and converting from MS SQL 2008 to ORACLE
Hello,
My ORACLE DB version is:
('Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production');
('PL/SQL Release 11.2.0.2.0 - Production');
('CORE 11.2.0.2.0 Production');
('TNS for Linux: Version 11.2.0.2.0 - Production');
('NLSRTL Version 11.2.0.2.0 - Production');
I'm trying to convert the below SQL Server 2008 query to work on Oracle. It's important to note that the XMLData column type is CLOB.
Query 1)
-- Number of validations
select br.rulename, CAST(( CAST(br.XMLData as XML)).query('count(//Validation/Expressions/Expression)') as nvarchar(50)) as "Number of //Validation/Expressions/Expression"
from AsBusinessRules br
where
DATALENGTH(br.XMLData)>10
and CAST(( CAST(br.XMLData as XML)).query('count(//Validation/Expressions/Expression)') as nvarchar(50)) not like '0'
Any help is greatly appreciated.Hi,
You can try one of these :
select br.rulename
, count(*) as "Num. of Expression"
from AsBusinessRules br
, xmltable(
'//Validation/Expressions/Expression'
passing xmltype(br.XMLData)
) x
where length(br.XMLData) > 10
group by br.rulename
having count(*) != 0
;or,
select br.rulename
, xmlcast(
xmlquery(
'count(//Validation/Expressions/Expression)'
passing xmltype(br.XMLData)
returning content
as number
) as "Num. of Expression"
from AsBusinessRules br
where length(br.XMLData) > 10
and xmlcast(
xmlquery(
'count(//Validation/Expressions/Expression)'
passing xmltype(br.XMLData)
returning content
as number
) != 0
It's important to note that the XMLData column type is CLOB.Could you consider migrating the column to XMLType datatype?
Given your version, it would be binary XML by default and therefore a lot more performant with XQueries, compared to a simple CLOB storage. -
Any advice would be appreciated. Thanks
You can't transfer music (nor any other content) from one account to another account, it will remain tied to the account that downloaded it. Also home sharing only works from a computer to a device (or to another computer), it doesn't work between iOS devices.
Depending upon what country that you are in (music can't be redownloaded in all countries) then he could potentially log into your account on his iPod (I assume that it's an iPod Touch) and redownload his music on it, but that might tie his iPod to your account for 90 days : iTunes Store: Associating a device or computer to your Apple ID. -
How to Clear Iphoto and Rebuild from another file, not Iphoto Library?
I have over 7000 images. Some of the Iphoto thumbnails are from my desktop file and some from the DATA file copied into Iphoto. I want to rebuild my thumbnails using all of the pictures on my desk top, not copying them/duplicating into Iphoto. The reason I want to rebuild Iphoto is years ago while copying and moving pictures on another PC the picture data was deleted and the date data of the pics was lost. If I load the images, Iphoto mixes the images up. I have organized all the pics on my desktop into folders by month and year. When I tried to rebuild, old photos show up again so I deleted the original Data (photos) in Iphoto and after rebuilding they reappeared with many images just black boxes. I was expecting a blank page so I could start to build the thumbnails from my desktop folders.
How do I get a blank screen/no images in Iphoto? Select all the images and drag to trash? To be safe I have all my pictures saved on 2 ext hard drives. Also can a select a group (i.e. by month) and change all the date info at one time?
If you can help...THANKSBgMc
It’s difficult to advise you because you’re using non-standard terms. I’m worried that if I misunderstood something that I might give you a bum steer.
Some general principles: Don’t “clear iPhoto”. Instead make a new Library: Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'.
When you have this new Library working you can delete the old one.
In general, if you have a Folder of images and you drag them to the Source (or left-hand) Pane in iPhoto the pics will be imported and a new Album and Roll will be created. This may help.
Some of the Iphoto thumbnails are from my desktop file and some from the DATA file copied into Iphoto.
I have no idea why you would want thumbnails. Surely you want the full sized files? What’s a desktop file? Do you mean Desktop Folder?, also what’s a DATA file?
I want to rebuild my thumbnails using all of the pictures on my desk top, not copying them/duplicating into Iphoto.
This makes no sense to me. Why are you rebuilding thumbnails? And if you don’t want to use iPhoto then why are you posting here?
so I deleted the original Data (photos) in Iphoto and after rebuilding they reappeared with many images just black boxes
Here’s a really good general principle:
Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
Regards
TD -
Load Master Data to BPC from a file in BW server
Hi all,
the problem is the next one. We have create some files in Bw with APD. We left those files in a carpet in the Bw server. We want to load those files in BPC. Anyone can explain how we can upload those files?
Thanks for the help.
Gorka.Hi Gorka,
Please find the link for the document, which explains you "Loading Master data from BW to BPC"
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00380440-010b-2c10-70a1-e0b431255827?quicklink=index&overridelayout=true
I hope this may help you.
Raghu B.S.
Maybe you are looking for
-
hello all how to get std. sap report for material consumption on the basis of valuation type or any other type like S_ALR_87012332 thanks in advance
-
Layer Mask for mixing two faces or images in photoshop cs6 tutorial
In this tutorial you will learn how to mix two images with the help of Layer Mask in Adobe Photoshop cs 6. Created by ME....... for Photoshop Beginners. https://www.youtube.com/watch?v=0RfGSMZ3dzM
-
Java Automation Program Debugging help
Dear fellow members, a ex-coworker has written a java applet for my system measuring automation. Unfortunatly it stopped working and i have no idea why. I will write down what the program is supposed to do and what it does. Thank you in advance for a
-
I can't install any app from AppStore
Hey guys my name is farhan I live in u.a.e guys I buyed iPod touch before 1 month I was using my iPod suddenly I thought to install one game so I went to app store to install a game there was written free I clicked it many times but it can't install
-
I have looked and looked in the Technical guide and cannot find how I clear all data in an ASO cube using MaxL. I can currently export data, build dimensions, import data, update data but I would like to add a clear cube between the export and build