Element attributes using XSQL
I have been reading the documentation for the XSQL servlet in the hopes of using it to get XML data out of a relational database.
Whilst it seems straight forward to get the column entries into their own elements I have not seen how to get them into an element attribute instead of their own element (other than the id attribute which you can only use once per row).
Is this correct or is there a way to get column values into element attribute values instead of element values?
Any help appreciated.
Ron Quartel
If you're using XSQL, the best solution
is to use XSL stylesheets.
You could write XSL file to include
DTD/Schema in your output xml file.
Basic XSL sample is used in the XSQL demo.
There is short discussion in the readme.html
file. If you're only moving elements to
attributes, they probably would be enough.
Similar Messages
-
Using element attributes to show changes
Hi,
I'm working in a structured environment in FM7.2, and the job requires that we save out to SGML. I've been asked to show changes to my documents using a visual element but not change bars (they're already being used) - confused? I hope I can explain it clearly.
We're creating parts lists, so basically we're working with pages of tables. We have the data from the OEM of the parts lists in hard copy. We have to reproduce that list for our client. The hard copy from the OEM shows their changes to the parts list on the left side of the table - we need to keep those marks but we also need to indicate changes to the list where our client has changed parts and we need to show those changes on the right side of the table with change bars. What I'm thinking is if I could use element attribute data to show the OEM (left side) changes and then that allows me to use the change bars for the client (right side) changes. The element for the item/part already has an attribute called 'change'. I recall reading somewhere that attributes can be used like this but I can't recall where I read it. If all that makes sense and it can be done, my question is how to implement it?
Any thoughts on this appreciated.
CarlThe latest documents I copuld find describing the workings of EDD etc. are those two:
FrameMaker 8.0 Structure Application Developer's Guide
FrameMaker 8.0 Structure Application Developer Reference
It seems they are not linked from any page, at least Google was not able to find them. The former version (FM7.1) of those documents as a single document can be found here:
http://www.adobe.com/devnet/framemaker/onlinemanuals.html (Structure Application Developer Guide)
Since the way the EDD works has not changed very much, you may take any of those, to learn about context rules etc.
Scriptorium Publishing has some workbooks available:
http://www.scriptorium.com/books/framemaker-workbooks
The content of those is partly available in a Wiki at http://wiki.scriptorium.com/
HTH,
- Michael
PS: You did not share the FrameMaker version you are working with. -
Using apex_item with element attributes
I am trying to create a manual tabular form. I used the SQL below:
select
apex_item.text(3,code,6) "CODE
apex_item.text(4,city_name) "CITY_NAME",
apex_item.text(5,state_code,2) "STATE_CODE"
I set all my columns to 'Standard Report column'. I need to add some element attributes like:
onFocus="javascript:this.maxLength=6;" onBlur="javascript:{this.value = this.value.toUpperCase(); }" onChange="this.style.backgroundColor = 'yellow';"
It seems to ignore this when the form is built as looking at the source doesn't have this code in with the element. How can I add these attributes to the element?Go to my blog
http://www.deneskubicek.blogspot.com/
and have a look at the
Cascading Select List in a Tabular Form or
Manual Tabular Form
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Word Stem Search Using INPATH(//element/@attribute) Broken?
I am attempting to use word stemming while searching within an attribute of an XML tag, but Oracle returns no results. If I turn off word stemming it works just fine.
An example that does not work:
select id from table where CONTAINS(xmldoc, '$road INPATH(//element/@attribute)') > 0;
An example that does work:
select id from table where CONTAINS(xmldoc, 'road INPATH(//element/@attribute)') > 0;
I haven't seen anything in the documentation that would suggest that word stemming wouldn't work, nor would I know where to find out if this is an official bug.
Any help would be appreciated.
Thanks,
LeonardStemming with INPATH is supported. If you think that you may
found a bug, please contact Oracle support with a reproducible
test case. -
Column value substitution in tabular form element attributes
We started to discuss this at Re: Tabular form with Ajax
I also mentioned this at Re: how to make only some rows editable in html db.
but thought that this deserves its own thread.
In Doug's sample Sudoku application in that thread, he uses #COLUMN# substitution in the Form Element Attributes and it works fine, but in my example page at http://htmldb.oracle.com/pls/otn/f?p=24317:219 I used the same technique and no matter what I do, the #COLUMN# substitution is not expanded by the Apex engine.
This is driving me nuts, any ideas why it works in one application but not in another?
ThanksHm, you might be right.
I copied your row template and modified it at http://htmldb.oracle.com/pls/otn/f?p=24317:219
The styling looks terrible, not sure why, the template is simply
<tr>
<td class="t10data">#EMPNO_DISPLAY#</td>
<td class="t10data">#ENAME#</td>
<td class="t10data">#JOB#</td>
<td class="t10data">#MGR#</td>
<td class="t10data">#HIREDATE#</td>
<td class="t10data">#SAL#</td>
<td class="t10data">#COMM#</td>
<td class="t10data">#DEPTNO#</td>
</tr>I had a lot of trouble getting this to work because the wizard generated tabular form appends 2 hidden fields containing the PK and the row-checksum to the last (editable?) field on each row. If the last editable field has #COL# substitution, it expands the substitution and forgets to close the INPUT tag thus causing malformed HTML (I think this is a bug in the rendering engine).
The readonly condition is sal>1000 which now works. The SAL>1000 fields are now readonly.
But now the update process is broken. If I enter a number in the first blank SAL field (empno=3641) and click Submit, I get no errors but the change is not saved. Wonder why.
Hopefully, Scott (Spadafore) will take mercy on our amateurish experiments and give us some definitive answers soon!
Thanks. -
Pop-up LOV, add Element Attributes?
Hello again,
I have a pop-up LOV (named LOV) on a column in the detail section of a master-detail form (imagine the "Employee Num" being a pop-up LOV in the image linked below[1]). This field also allows normal user entry just like any input field (this is, input is not disabled).
However, while viewing the source HTML this field just an ordinary input field, I cannot seem to add an element attribute via the usual means. Just for arguments sake I want an alert box on each keypress, usually I would just add the line: onkeypress="javascript: alert('hello');" in the Element Attributes under the "Column Attributes" section. This is not working for me, however.
How would I go about calling a JavaScript function (on a keypress, say) using this pop-up LOV input method?
Thank you for you time.
I am using APEX version: 4.0.2.00.09
[1] http://imageupload.co.uk/viewer.php?file=yu7i83h5dpk5cy0npsy0.png
Edited by: 986065 on Feb 14, 2013 1:51 PMHello Bob,
Sure you can enter a button on the template, but the problem is how to find out which page to call when the Add button is pressed.
You can write your own LOV page(s) and attach those to a field (i.e. by adding a clickable image in the post element text) and then you can have all the control you want.
Greetings,
Roel
http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.logica.com/ -
Hello.
I'm using Flash Builder 4.5 to experiment with building a mobile app for my Android Nexus One. In order to keep the app in landscape mode, regardless of the orientation of the device, I've read that I need to set the following in the "AppName-app.xml" file:
<aspectRatio>landscape</aspectRatio>
<autoOrients>false</autoOrients>
And this does work fine in the debugger, however when I attempt to test it on my connected device it throws this error:
Error occurred while packaging the application:
D:\Projects\FlexMobile\AppName\bin-debug\AppName-app.xml(108): error 103: application.initialWindow.autoOrients is an unexpected element/attribute
I know that I'm able to build and test apps on my device, as I've been through the Flex Test Drive for Mobile tutorial (http://www.adobe.com/devnet/flex/testdrivemobile.html) and was able to build and run that app with no issues and this app I'm currently working on does run on the device if I do not attempt to restrict the auto orientation.
Thank you.
(Note: I'm re-posting this from the Flex SDK > Developers forum.)User rblaa provided that answer in http://forums.adobe.com/thread/858772.
The <autoOrients> node (along with several others) occours twice in the generated -app.xml file. Do not un-comment the first instance, instead edit the parameters set in the second already un-commented autoOrients node. -
How Can Get DTD elements/Attribute In java
Dear Friends,
I want to get DTD Element in java Like by using DOM parser we can get Elements/Attribute in XML.
<!ELEMENT author (#PCDATA)>
<!ATTLIST author
id (2 | 4 | 6) #REQUIRED
>
<!ELEMENT book (author, page)>
<!ATTLIST book
id (1 | 2 | 3 | 4) #REQUIRED
name CDATA #REQUIRED
>
<!ELEMENT library (book+)>
<!ELEMENT page (#PCDATA)>
By Example
i wants i can get elements library -> childs are book
book child have Attributes id and name..
how can i get .
pls help me
with regards
Siddharth singhBuild an XML-ORM then integrate it into the DOM, then have a nice day.
-
We want to use Session information in our application. How do I use XSQL-SEt-Session-param ? Do I have to create another servlet to manage session and call the XSQLServlet from that session servlet or can I use XSQL-session elements ?
Please help on this.<xsql:set-session-param> sets a session-level parameter to a value
To refer to the session-level parameter value, just refer to its name as a parameter.
No extra servlets needed. -
Need to replace/modify an element attribute
Hi,
I need to read an XML file and modify the value of an XML element attribute and write the modified element back to the file. This element is two levels deep in the heirarchy,
currently i am reading all the children and modifying the value of this particular attribue and writing all the children back.
Does anybody know of a method where we can do a replace operation on the Document rather than the lengthy process that i am currrently using??
Thanksyou might want to look at STX streaming transforms-
http://www.xml.com/pub/a/2003/02/26/stx.html
That seems a good match for a simple replace problem.
Pete -
How to capture element/attribute
We have an export client that converts the Frame file to xml. We are using "LightTitle" element at various places, this element also has an attribute called "LightColor".
When I look at the output xml, I can see all LightTitle elements, but only some of them (2 out of 10) have the LightColor attribute!
How can we capture the attribute associated with a specific element and output it to the final xml?
Thanks.If your LightColor attributes do not contain ant content - then they will not be written out - you can change the rules to add a 'dummy' if you need them in the XML - OR -(and probably easier) post process your XML and add the missing elements/attribute pairs based on rules in your XSLT or program...
have fun.
David
[signature link removed] -
Read Workflow Container Elements attributes
Hi,
I am using a F.M <b>'RH_GET_TASK_ATTRIBUTES'</b> to get the attributes of the <b>Workflow container</b> elements.
But the above F.M does not show the element attributes that I create inside the Workflow Builer under <b>Workflow Container Block</b> and I dont select either Import or Export Properties.
Is there any F.M that reads ALL Workflow Container elements.If you want to clear a single element, use a container operation and assign it to space. If you need to clear an internal table, create another internal table container element that is always empty. Then, inside the container operation assign the empty table to the table you want to clear.
Basically, you are doing this:
container_element = space. OR container_element = ' '.
container_internal_table[ ] = container_empty_internal_table[ ]. -
Hello,
I am trying to publish from a flash file, an .ipa file to use in ipad and iphone, but keep receiving the "error 103: application.version is an unexpected element/attribute" error message.
I already publish the app in flash CS5 and it was ok but today i install CS5.5 and the error does not alow me to publish the same file...
Is it an Air ADL problem?
Any suggestions?
ThanksI don't know if it's an official bug.... Adn I don't know if they will really solve it...
I called 3 times to Adobe Phone Support. I've never been told that it was an official bug. Nobody seemed to know about that bug....
1st call: They told me to go to www.adobe.com/devnet/, saying that I will find the solution there... I found nothing.
2nd call: They told me to call Apple... They said I need a Flash CS5.5 certificate... Of course, Apple does not deliver "Flash CS5.5 certificates". I guess they just wanted to get rid of me...
3rd call: They gave me a phone number to call the Flash Developers Support Center. That phone number was not working....
Each time, I asked them if they can send me a Flash CS5 version, which was working well. They always said it was impossible.
I really need to be able to publish iPhone apps as fast as possible, otherwise I will lose a big contract...
I think my next call will be to my bank... to cancel the payment I made on my credit card to purchase that Flash CS5.5 software. -
Hello,
I am trying to publish from a flash file, an .ipa file to use in ipad and iphone, but keep receiving the "error 103: application.version is an unexpected element/attribute" error message.
I already publish the app in flash CS5 and it was ok but today i install CS5.5 and the error does not alow me to publish the same file...
Is it an Air ADL problem?
Any suggestions?
ThanksThe name of app.
Ex: XXXXXXXX.appname
Use "appname".
But error is related to version number in app xml. -
I want to insert a XML Document using xsql?
tell me anyone step step procedure using xsql;this is very urgentI want to insert a XML Document using xsql?
tell me anyone step step procedure using xsql;this is very urgent Use use <xsql:insert-request> to insert your data into the database.
example
<xsql:insert-request xmlns:xsql="urn:oracle-xsql" connection="demo" table="TC_UTIL_CONFIG" columns="ID, NAME, VALUE" />
The above inserts the input request to the table and inserts the colums with the values. The input XML should look like the following
<ROWSET>
<ROW>
<ID>1</ID>
<NAME>kesav</NAME>
<VALUE>good</VALUE>
<ROW>
<ROW>
<ID>2</ID>
<NAME>kumar</NAME>
<VALUE>good</VALUE>
</ROW>
</ROWSET>
If your request doesn't match the above you can use transform attribute to specify an xsl to convert the input to match the above xml.
If you submit your request from form you should use the transform stylesheet to convert the request to the XML. If you use Microsoft.XMLHTTP to post the xml document which matches the xml then you don not need any transformation.
Maybe you are looking for
-
Can java mail be used for distributed exchange server?
H, I am trying to connect to MS Exchange Server to read my mails using Java Mail API. I have a questions about using it with Exchange server. We have 6-7 exchange servers in our company and different users have mailboxes on different servers. My inte
-
Getting some error while opening our plugin in InDesign CC Debugger
Hi, We are loading XML file using our plugin. After opening Indesign documents (Created using the same XML), we have refreshed the tree(using our plugin option). We are getting the below mentioned asserts, 1. Direct model change to database without t
-
Deployment Error: Deployment Timed Out after 60 seconds
I am having problems simply deploying my webapp through creator. The application that I am working on was completely developed in the creator IDE and at some point took a really log time to deploy. Now it actually times out. This is my ide.log file.
-
Trying to create images to be used in my game
Here's my situation. I have 3 main parts of the game. 0 - in play 1 - level up 2 - buy screen each one has its own basic images/text that don't change. I want to create Images with all that background stuff already on it to improve the efficiency of
-
IDM70: MX_ROLE assignment does not assign MX_AUTOPRIVILEGE
Hi there I used the SAP-Provisioning-Framework InitialLoad-Jobs to create Privileges (MX_PRIVILEGE) for ABAP and ADS. When I assign these privileges directly to an IdentityStore user he gets provisioned to the corresponding systems. Now I created a s