Defining a condition on an element tag
Hi all
I have a bunch of XML files, I import into FrameMaker using a custom structured application based on S1000D. I would like to not display some data in XML files in the final document of the FM, but preferably not to remove it. Is there a way to put the tags condition an element using extendscript? Or is it possible to specify it in the ESD for the structured application? Any other suggestions?
Best regards
Lisbeth
No problem. ESD even, you can assign a special paragraph format a title following an element hidden, which in fact stay on the same page instead to move to the top of the new page.
Tags: Adobe FrameMaker
Similar Questions
-
An unexpected element tag ' SOAP - ENV:Envelope "view
Hello
We get this error message during each request, we try to send via gSOAP:
An unexpected element tag ' SOAP - ENV:Envelope "view
Could someone explain to me, why I get this error?
Here's the request:
POST /sdk HTTP/1.1
Host: vmware - test.boreus.de
User-Agent: gSOAP/2.8
Content-Type: application/soap + xml; charset = utf-8; action = "" urn: vim25 / 5.0 ""
Content-Length: 551
Connection: close
Accept-Encoding: gzip, deflate
SOAPAction: "urn: vim25 / 5.0.<? XML version = "1.0" encoding = "UTF-8"? >
< SOAP - ENV:Envelope" xmlns:SOAP - ENV =" http://www.w3.org/2003/05/soap-envelope "xmlns:SOAP - ENC =" " http://www.w3.org/2003/05/soap-encoding "
" xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "
" container = ' http://www.w3.org/2001/XMLSchema "xmlns:ns1 =" urn: vim25 "> < SOAP - ENV:Body > "
< ns1:RetrieveServiceContent xsi: type = "ns1:RetrieveServiceContentRequestType" >
< ns1:_this xsi: type = "ns1:ManagedObjectReference" type = "ServiceInstance" > ServiceInstance < / ns1:_this >
< / ns1:RetrieveServiceContent >
< / SOAP - ENV:Body >
< / SOAP - ENV:Envelope >
And here's the answer:
HTTP/1.1 500 Internal Server Error
Date: Wednesday, September 7, 2011 16:51:10 GMT
Set-Cookie: vmware_soap_session = "524dac01-d304-ac9d-c557-34839dde76ac"; Path = /; HttpOnly;
Cache-Control: no cache
Connection: close
Content-Type: text/xml; charset = utf-8
Content-Length: 565<? XML version = "1.0" encoding = "UTF-8"? >
" < = xmlns:soapenc soapenv:Envelope ' http://schemas.xmlsoap.org/SOAP/encoding/ "
' xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "
" container = ' http://www.w3.org/2001/XMLSchema "
" xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance ">
< soapenv:Body >
< soapenv:Fault >
ClientFaultCode < faultcode > < / faultcode >
< faultstring >
An unexpected element tag & quot; SOAP - ENV:Envelope & quot; viewWhen parsing HTTP request before the method was determined
on line 1, column 0 < / faultstring >
< / soapenv:Fault >
< / soapenv:Body >
< / soapenv:Envelope >I don't really know if it's the reason either, but it was the first thing that comes to mind. I have not seen this error, but I confess that I do not have a lot of work gsoap.
-
bad results for the search for context on the empty element tags
I use Oracle DBMS 11.1 and 11.2 and created an index on an XML column context (article group: PATH_SECTION_GROUP).
When you enter a query like
SELECT count (*) FROM my_table t WHERE contains (t.co_xml,'hasPath(/tag1/tag2)') > 0
I get bad results if tag2 is an empty element tag (< tag2 / >) that appears somewhere in the
XML instance, but is NOT directly under tag1.
For example, the following XML instance is (but shouldn't!):
< a >
blah blah < tag3 > < tag1 > < / tag3 > < / tag1 >
blah < tag4 > < tag2 / > < / tag4 >
< /a >
This seems to happen only for the empty element tags. Is this a known bug and does anyone know of a workaround?
Thank you in advance for your help!
RomanLike you, I've been looking in the wrong places, bug of thought, rather than documented behavior. Finally, I came across the following excerpt from the next section of the documentation on haspath in Oracle text reference.
http://download.Oracle.com/docs/CD/B28359_01/text.111/b28304/cqoper.htm#i997393
Limits
Because of the way in which XML data section are saved, false match may appear with XML sections that are completely empty as follows:
A query of HASPATH(A/B/E) or HASPATH(A/D/C) falsely corresponds to this document. This type of fake correspondent can be avoided by inserting some text between the empty tags.
-
If clause with condition of property element
Hello
I'm new to the world of the oracle. I would like to know if we can do something like below in oracle.
We can define if condition in timer in VB as below.
Private Sub Timer1_Timer () - timer with interval 1000
If Text1. BackColor = red then
Text1. BackColor = white
otherwise if Text1. BackColor = white then
Text1. BackColor = Red
end if
End Sub
HW convert this to oracle as it should use the set_property function to change the item property in oracle. hope someone can answer...Hello
Try the following code in the trigger WHEN-CLOCK-arrival at EXPIRATION .
IF GET_ITEM_PROPERTY('
. ', BACKGROUND_COLOR) = 'r255g0b0' THEN -- RED SET_ITEM_PROPERTY(' . ', BACKGROUND_COLOR, 'r0g255b00'); -- GREEN ELSE SET_ITEM_PROPERTY(' . ', BACKGROUND_COLOR, 'r255G0B0'); END IF; Kind regards
Manu.
If my response or response from another person was helpful, please mark accordingly
-
upgrade to 14 places elements tags has not copied
Upgraded from photoshop elements to photoshop elements 14 12. Notice that place the tags has not been copied. any help
(This does not work by mail, you must work your computer).
When you click on the "reply" button, you have empty dialog for entering your text.
The header is like this:
You see the camera icon?
-
How the elements tag with two tags?
With the following function I can tag with bold and italic tags xml elements. The problem is, I also need '< b > < i >' for example. Now my question is, how is that possible?
function tagStyles (myXmlElement) {}
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findChangeTextOptions.caseSensitive = false;
app.findChangeTextOptions.includeFootnotes = app.findChangeGrepOptions.includeFootnotes = false;
app.findChangeTextOptions.includeHiddenLayers = false;
app.findChangeTextOptions.includeLockedLayersForFind = false;
app.findChangeTextOptions.includeLockedStoriesForFind = false;
app.findChangeTextOptions.includeMasterPages = false;
app.findChangeTextOptions.wholeWord = false;
objectToTag = myXmlElement;
italic conversion
need to be developed for other styles
attention to the problems of nested xml tags
app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.findWhat = '. '. + » ;
app.findGrepPreferences.fontStyle = "italic";
var myFindTexts = myXmlElement.findGrep ();
If (myFindTexts.length > 0) {}
for (var j = 0; j < myFindTexts.length; j ++) {}
var myText = myFindTexts [j];
var myStartIndex = myText.characters [0] .index;
var = myText.characters [-1] .index myEndIndex;
objectToTag = objectToTag.xmlElements.add ({markupTag: "i", xmlContent:myText});})
myShift += 2;
}
}
conversion "BOLD"
need to be developed for other styles
attention to the problems of nested xml tags
app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.findWhat = '. '. + » ;
app.findGrepPreferences.fontStyle = "Bold";
var myFindTexts = myXmlElement.findGrep ();
If (myFindTexts.length > 0) {}
for (var j = 0; j < myFindTexts.length; j ++) {}
var myText = myFindTexts [j];
var myStartIndex = myText.characters [0] .index;
var = myText.characters [-1] .index myEndIndex;
objectToTag = objectToTag.xmlElements.add ({markupTag: "b", xmlContent:myText});})
}
}
bold italics conversion
need to be developed for other styles
attention to the problems of nested xml tags
app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.findWhat = '. '. + » ;
app.findGrepPreferences.fontStyle = "Bold Italic";
var myFindTexts = myXmlElement.findGrep ();
If (myFindTexts.length > 0) {}
for (var j = 0; j < myFindTexts.length; j ++) {}
var myText = myFindTexts [j];
var myStartIndex = myText.characters [0] .index;
var = myText.characters [-1] .index myEndIndex;
objectToTag = objectToTag.xmlElements.add ({markupTag: "b", xmlContent:myText});})
}
objectToTag = myXmlElement;
for (var j = 0; j < myFindTexts.length; j ++) {}
var myText = myFindTexts [j];
var myStartIndex = myText.characters [0] .index;
var = myText.characters [-1] .index myEndIndex;
objectToTag = objectToTag.xmlElements.add ({markupTag: "i", xmlContent:myText});})
}
}
}
When there is an element with the "Bold Italic" style it looks like this: 'my element with < b > < /b > < i > "BOLD" and the italic text < /i > '. There it looks like this: ' my element with < b > < i > bold and italic < /i > < / b > text.
Does anyone have an idea on this?
Thanks in advance!
Dear Stamm,
Try this...
objectToTag = objectToTag.xmlElements.add ({markupTag: "b", xmlContent:myText});})
App.Select (objectToTag.texts);
App.Selection [0] .associatedXMLElements [0].xmlElements.Add ("i", app.selection [0]);
Kind regards
Bala
-
adding element tags empty in xsl
Hello
I have two schema A.xsd and B.xsd. A.xsd has 2 values < name >, < number > < name > may come or may not seem responsible for entry.
My B.xsd has 3 fields < empName > < empNumber > < status > and I need transform from A to B in xsl in following way.
A. < name > Configuration-> B < empName > and a. < number >. < empNumber >.
It is even if < name > is not coming, my variable target type B must have value as < empName > < / empName > inside.
Guidance about doing the same thing in the xslt file is a great help.I tested the slot the XSL for two conditions.
1
2. remove the tag name entryIn both cases, the empname comes as
See you soon,.
-AR -
Sustain the elements tags/legends
I am interested in using Photoshop Elements to label and to caption my 11000 photos with details of names and places, but I can commit the changes on the image files so that they are available outside the environment of elements? I don't want to spend a lot of effort and have tags/caption available only in elements, I want to integrate the details in my photo collection.
Yes, you can select the individual or a batch of images and write metadata to the file.
-
How to define the condition in the analytic function
Oracle 10g version
Hi all
I have the following data samples:
Examples of data
WITH DATA AS
(
SELECT 100 case_id, next_date, to_date('01-feb-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-jan-2015','dd-mon-yyyy')
SELECT 100 case_id, next_date, to_date('01-mar-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-feb-2015','dd-mon-yyyy')
SELECT 100 case_id, next_date, to_date('01-apr-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-may-2015','dd-mon-yyyy')
SELECT 100 case_id, to_date('01-jun-2015','dd-mon-yyyy') next_date, to_date('01-apr-2015','dd-mon-yyyy') crt_date FROM dual
)
SELECT wagneur, MIN (next_date) OVER (PARTITION BY case_id) min_dt_analytical
,(
SELECT MIN (next_date) DATA dd
WHERE dd.case_id = d.case_id
AND dd.next_date > crt_date
) min_dt_sub_query
DATA d
;
My question is that I get min_dt_sub_query using sub query but I want to use the analytical instead of query sub function so I created min_dt_analytical column, but I do not have how to give the condition that is AND dd.next_date > crt_date analytical so that I can get the same result as min_dt_sub_query data accordingly. Thanks in advance
Concerning
MIT
Do not know if I understood your needs... but... something like that?
WITH DATA AS (SELECT 100 case_id, next_date, to_date('01-feb-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-jan-2015','dd-mon-yyyy')
SELECT the 100 case_id, next_date, to_date('01-mar-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-feb-2015','dd-mon-yyyy')
SELECT the 100 case_id, next_date, to_date('01-apr-2015','dd-mon-yyyy') UNION double, ALL crt_date to_date('01-may-2015','dd-mon-yyyy')
SELECT 100 case_id, next_date, to_date('01-apr-2015','dd-mon-yyyy') double crt_date to_date('01-jun-2015','dd-mon-yyyy'))
SELECT d.
MIN (next_date) OVER (PARTITION BY case_id) min_dt_analytical
MIN(CASE WHEN next_date > crt_date THEN next_date ELSE NULL END) OVER (PARTITION BY case_id) AS min_dt_sub_query2
DATA d;
HTH
-
How does the sum function in the element tag?
Hello!
I am new to XML Publisher and I need help to understand how my definition of data.
In my xml file, I have this piece of code
and now, I have problem with element with functions sum, because it returns like for example. 21356,15. all other components (COST, YTD_DEPRN, DEPRN_RESERVE, DEPRN_RESERVE_BY, NET_VALUE) return values such as 21356.15.<group name="G_ACCOUNT" source="Q_REGISTER"> <element name="COST_ACCOUNT" value="COST_ACCOUNT"/> <element name="ACC_DESC" value="ACC_DESC"/> <element name="YEAR" value="YEAR"/> <group name="G_COST" source="Q_REGISTER"> <element name="COST_CENTER" value="COST_CENTER"/> <group name="G_TAG_NUMBER" source="Q_REGISTER"> <element name="TAG_NUMBER" value="TAG_NUMBER"/> <element name="ASSET_NUMBER" value="ASSET_NUMBER"/> <element name="DESCRIPTION" value="DESCRIPTION"/> <element name="ASSET_ID" value="ASSET_ID"/> <element name="ASSET_NUMBER" value="ASSET_NUMBER"/> <element name="COST" value="COST" dataType="number"/> <element name="YTD_DEPRN" value="YTD_DEPRN" dataType="number"/> <element name="DEPRN_RESERVE" value="DEPRN_RESERVE" dataType="number"/> <element name="DEPRN_RESERVE_BY" value="DEPRN_RESERVE_BY" dataType="number"/> <element name="NET_VALUE" value="NET_VALUE" dataType="number"/> <element name="DPIS" value="DPIS"/> </group> <element name="SUM_ACCOUNT_COST" function="sum" dataType="number" value="G_TAG_NUMBER.COST"/> <element name="SUM_ACCOUNT_YTD_DEPRN" function="sum" dataType="number" value="G_TAG_NUMBER.YTD_DEPRN"/> <element name="SUM_ACCOUNT_DEPRN_RESERVE" function="sum" dataType="number" value="G_TAG_NUMBER.DEPRN_RESERVE"/> <element name="SUM_ACCOUNT_DEPRN_RESERVE_BY" function="sum" dataType="number" value="G_TAG_NUMBER.DEPRN_RESERVE_BY"/> <element name="SUM_ACCOUNT_NET_VALUE" function="sum" dataType="number" value="G_TAG_NUMBER.NET_VALUE"/> </group> </group>
Can you tell me why sum function does not return to the same value?
Kind regards
drama9346As I expected wrong since this isn't a RAW number his tent for formatting. You can change this value and format or just go for the sum of RTF, or the SUM of your SQL query.
Sum in RTF: for SUM_ACCOUNT_COST
I have given how you use grouping in this case, based on what you might change the code slightly.
Published by: amri on 9 April 2013 14:28
-
conditional display of XML tag
Hello
IAM using Oracle 11 g.
While that generate XML based on the value of data I need different XML tag. How it is possible.
but the value must be zero. but we the tag is different.
For example
If the column contains data such as'm ' and 'F'
The tag must be < male > < / man > if data are'm ' of Male and
< female > < / woman > if data are 'F' of the female. If there are data zero then the tag should not be display
Is it possible then that the extraction of data from SQL and XML data conversion
Concerning
Oracle user
Published by: user9080289 on December 15, 2011 21:58
Published by: user9080289 on December 15, 2011 21:59something
case when your_column = 'F' then xmlelement("Female", your_column ) when your_column = 'M' then xmlelement("Male", your_column ) end
-
Greetings on this Friday (Yes!),
I have a button, and I want to make this visible NOT on the condition where a certain SQL County is equal to 2. How would I go about creating this condition using the CONDITIONS section on the section Edit button?
Aware that you do not know the necessary data, my SQL would look like this:
Select count (*)
of media_tbl
where mit_site = 2
and media_type in (20,21)
When this operation creates a count = 2, I don't want to display the button.
What kind of condition I use and what I put for Expression-1, Expression 2?
Thank you
JohnWhat is the difference? Under what circumstances does NOT Exists (SQL query returns no line), with 1 Expression
select null from media_tbl where mit_site = 2 and media_type in (20,21) having count(*) >= 2
does not produce the required result?
-
Conditional display of elements in a form
Hello
I have a radio with two options buttons
1. in cash
2 check
When I select the cash, it will display as... Amounts items (default)
If I select the check then it displays things like... check, check date etc...
How can I check in a form.Looks like you need a function from pl/sql to return a Boolean value in the view state on your form elements. Something like the following should work.
If: Ppgnbr_radio = 1 then
Returns true;
on the other
Returns false;
end if;Change the above as needed for each of the fields you want to display.
Hope this helps,
Gregory
-
Conditionally display an element in a panelFormLayout
Hi experts,
I have a panelFormLayout like this:My requirement is when the user selects the value 'Other' in the field 'Name of the entity' (1st row at the end), a free text input should be right next to him. My problem is that the layout changes (guests and entry posts and users, get confused...)
Any information on this?
Best regards
Jose.
Hi Jose
It is good to use panelLabelAnd Message, simple true set ListBox of the entity of the initiator
and a time share panelFormLayout source, want to see the properties of your form (not sharing all the form code just header of panelFormLayout)
Thank you
-
The value of conditional tag to all table cells, including content
Hello
I use FM12, unstructured. I want to put all the content of a chapter to some conditional text (by selecting all of the content and defining the condition).
My problem is with tables. This action only sets the table as a framework, but does not define the content of the table as conditional cell. Is there a simple way to do this without script?
Thanks in advance,
Hani
I got a simple solution in the FrameMaker community - tag conditional on all cells in the table, including the content of the value
Thanks for your time.
Maybe you are looking for
-
I tried to update my iTunes this weekend. Now, I can't open it I get this error: AVCFPlayerSetclientEnforcedExternalProjectionMethod is not found in the AVFoundationCF.dll dynamic link library is on a Windows 7 computer. I tried to re - install out
-
M452nw: M452nw - too light output text
I recently installed my new M452nw color laserjet printer. The output of color and graphics are great. However, the output of black text comes out too light. In fact, if you compare the same document on my new M452nw from my old HP LaserJet 6 p pr
-
HTTP 500.19 - internal error in the server error Hello We have Windows 2008 R2 Server, 64-Bit IIS version: 7.5.7600.16385 We had several Web sites for our clients on this IIS server. While some of the hosted site work properly, but when you try to br
-
Hello I feel a strange in the control of the axis of the XY trace. Please, open the sample and let me know how to choose one of the two axes freely. I can't control the left side (it takes a different scale every time that the value has been changed.