IDML, XSL and resizing of a textframe.

Hi all,
I'm new to idml, but i think that's not a surprise.
I have an idml-template with 2 textframes without any xml in it.
Through xslt i change the content of the 2 textframes.
But then i have 2 textframes that are overflowed.
1. Is it possible (by xslt) to automatically resize the textframe? (only the bottom should move down or up to fit.)
2. If yes: Is it possible reposition the second textframe based on the resize of the first?
I hope this is a clear question.
Many thanks in advance.
Glen

Hmm...
The JPanel that contains all stuff is the JFrame's content pane...
The entire JFrame's content pane contains another panels (JScrollPanels), which are all set to fill all available space on the parent panel (JFrame's content pane) with "both" value of the "fill" attribute.
Should I put the only one JPanel on the JFrame's content pane and all other stuff at that additional JPanel...?

Similar Messages

  • IDML modification using xsl and xml

    Hi All
    I am new to IDML development and get stuck at first step.
    I know that IDML becomes a bunch of xml files so if I create a template and Export it as IDML and for processing the job, I want to modify the story xml file among all the xml files which has some special content in it so is it posible to change only that particular xml file using any java sample example given in SDK or other class files which has this feature ??
    One more question, might be novice, what is use of schema in all IDML process and how to generate the schema using the script given in SDK ??.
    Many Thanks in advance
    Mac

    Hi Frank,
    I assumed I would run into problems like this, so I've decided to transform XML in backing bean and send it to response's output stream and this works for me. Now I'm struggling to get my css file in this backing bean so I can use it as a parameter in my XSLT transformation. We have a css file that ADF loads, can you tell me how do I get a reference on it on a backing bean?
    Thanks,
    regards!

  • What is the best way to move and resize layers?

    When I click on a layer to move and resize it in Elements 8 in Windows 7, it disappears.  After I go to Edit/Undo, it reappears.  What should I do?

    I have PSEv.8 and Windows 7, and the Editor works like a charm for me.
    Try the following:
    Open picture 1, duplicate the background layer.
    Open picture 2, make a selection of something in the picture with one of the selection tools, and then go to Edit>copy. This puts the selection on the clipboard.
    Go back to to picture 1, go to Edit>paste, and the selection will be on its own layer
    Use the move tool to position and resize the selection.
    The middle layer can be dragged to the top. Here, this process will obscure visibility of Layer 1, but you can drag the layer structure back, of course.
    http://www.pixentral.com/show.php?picture=1D3wrzjD5r24U8LfdTA1sdUb0zJOY0
    I opened a picture of the house on the lake, copied/pasted the "Slick Rock Divide" sign as per above. The layer structure is represented in the print screen.
    You should note that it is best if the resolution of the picture files is the same, or close to it.

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • XSL-TEXT: how to import subtemplates in XSL and use xdofx tags?

    Hi,
    I am working on a BI Publisher Report (XML Publisher 5.6.3 in EBS) to generate labels on a label printer. The output needs to be in plain text format, therefore I decided to use the XSL-TEXT template and create my own XSL translation.
    In principle this works pretty fine, but there are two things that worry me a bit:
    1. Does anybody know how I could import other XSL files, like sub-templates in RTF? The problem I have is that I don't know the URI or the sub-template. At the moment I store those other XSL files in the OA_MEDIA folder, but this is not really nice. In RFT you can refer to subtemplates with some xdofx commands... this brings me to my second question:
    2. In RTF templates you can use the Oracle specific XML tags, including the <xdofx:%> and <xdoxslt:%> tags. Does anybody know if and how I can use them in XSL templates?
    Any ideas are highly appreciated!
    regards,
    David.

    Hi Vetsrini,
    1. but what is the absolute path for my subtemplates if I store them in the Template Manager? How can I refer to them?
    This is what the manual says for RTFs:
    >
    Enter the Import Syntax in the Primary Template
    Import the subtemplate to the primary template by entering the following syntax in the
    primary template. The import syntax tells the XML Publisher engine where to find the
    subtemplate RTF in the Template Manager. This syntax may be entered anywhere in the
    template prior to the call-template syntax:
    <?import:xdo://APPCODE.TEMPLATE_CODE.lang.TERR?>
    where
    APPCODE is the Application code you assigned to the subtemplate in the Template
    Manager. For example, if you associated this template with the Receivables application,
    enter "AR".
    TEMPLATE_CODE is the template Code you assigned to the subtemplate in the Template
    Manager. For example, AR_CommonComponents.
    >
    sounds good and easy to me. But I don't have a RTF template. I have just a plain XSLT and those XML Publisher tags do not work there. So how do I get the absolute path of my XSLT templates stored in the Template Manager?
    2. I've included the namespace, no error anymore. But the syntax does not result in actions:
    <xsl:value-of select="xdoxslt:substr((PRODUCT_NAME),1,2)"/>
    {code}
    This does not substring() my string, the full string is returned. But anyway, I don't get an error message anymore. Maybe I just used the wrong XDOXSLT function... I need to search for a list of XDOXSLT functions, but that's not very urgent for now. I think I can do the most with plain XSL and inside the DB itself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help needed in Drag and Drop and  resizing of image icons

    Hi all,
    I'm doing a project on Drag and Drop and resizing of image icons.
    There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
    After Dropping these icons on to the DropContainer i need to resize them.
    I have used the Rectangle object in resizing.
    The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
    can any one help me in fixing this error.
    if u want i can provide the source code.
    thanks in advance
    murali

    the major restrictions in its implemented only in
    jdk1.1.Why!

  • Upload and Resize Image not inserting filename in database

    I have a form that I created using the insert record form wizard. One of the fields is a file field and my form enctype is set to multipart/form-data. I then used the upload and resize image behavior and set the parameters. When testing the form the file uploads to the correct directory but no entry is made into the database for that particular field. The other fields are entered into the database just fine. If it helps, here is the code generated before the  tag:
    <br />
    <br /><?php require_once('../../Connections/test.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('../../includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('../../includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("../../");<br /><br />// Make unified connection variable<br />$conn_test = new KT_connection($test, $database_test);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />//start Trigger_ImageUpload trigger<br />//remove this line if you want to edit the code by hand <br />function Trigger_ImageUpload(&$tNG) {<br />  $uploadObj = new tNG_ImageUpload($tNG);<br />  $uploadObj->setFormFieldName("picture");<br />  $uploadObj->setDbFieldName("picture");<br />  $uploadObj->setFolder("../images/");<br />  $uploadObj->setResize("true", 120, 0);<br />  $uploadObj->setMaxSize(1500);<br />  $uploadObj->setAllowedExtensions("gif, jpg, jpe, jpeg, png, bmp");<br />  $uploadObj->setRename("auto");<br />  return $uploadObj->Execute();<br />}<br />//end Trigger_ImageUpload trigger<br /><br />// Make an insert transaction instance<br />$ins_team = new tNG_insert($conn_test);<br />$tNGs->addTransaction($ins_team);<br />// Register triggers<br />$ins_team->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_team->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$ins_team->registerTrigger("END", "Trigger_Default_Redirect", 99, "../team.php");<br />$ins_team->registerTrigger("AFTER", "Trigger_ImageUpload", 97);<br />// Add columns<br />$ins_team->setTable("team");<br />$ins_team->addColumn("id", "NUMERIC_TYPE", "POST", "id");<br />$ins_team->addColumn("sort", "NUMERIC_TYPE", "POST", "sort");<br />$ins_team->addColumn("name", "STRING_TYPE", "POST", "name");<br />$ins_team->addColumn("title", "STRING_TYPE", "POST", "title");<br />$ins_team->addColumn("description", "STRING_TYPE", "POST", "description");<br />$ins_team->addColumn("picture", "FILE_TYPE", "FILES", "picture");<br />$ins_team->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsteam = $tNGs->getRecordset("team");<br />$row_rsteam = mysql_fetch_assoc($rsteam);<br />$totalRows_rsteam = mysql_num_rows($rsteam);<br />?>

    If the reason is about memory, warning message should be happened when upload the image, because "show thumbnail" means resize at second time, how come you failed to resize the picture that system let it upload succeed at the first time by the same resize process?
    upload procedure
    a.jpg: 2722x1814, 1.2mb
    upload condition: fixed width 330px, 1.5mb
    "upload and resize" a.jpg -> file upload -> "resize engine" -> passed (but not work and no warning message)
    "show thumbnail" a.jpg -> "resize engine" -> failed (not enough memory)
    it doesn't make sense.
    and you miss an important key point, I upload the same picture myself, and resize work, so I said it happened at random, and that's why I am so worried.

  • Parsing DOM with XSL and output as HTML

    In a servlet I am fetching data from DB into an DOM-tree (using ordinary JDBC and building the XML-DOM while fetching rows). This is done in a servlet, and before I response to the browser i use Oracle XML-parser to join my DOM-tree with an XSL-file. If I try to my DOM-tree out before parsing, it contains data. But the parsed DOM only contains XSL-tags, no data. What do I do wrong?
    Here is the code:
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    //No problem finding the XSL-file...
    URL xslURL = createURL("employee.xsl");
    parser.parse(xslURL);
    xslDoc = parser.getDocument();
    XSLStylesheet xsl = new XSLStylesheet(xslDoc, xslURL);
    XSLProcessor processor = new XSLProcessor();
    processor.showWarnings(true);
    processor.setErrorStream(System.out);
    //XML doc does contain data!!!
    DocumentFragment result =
    processor.processXSL(xsl, xmlDoc);
    xmlOut = new XMLDocument();
    Element root = xmlOut.createElement("root");
    xmlOut.appendChild(root);
    root.appendChild(result);
    xmlOut.print(out); // Result is only the XSL-file.....
    Regards Frank =:>

    Sorry, but I still can not make it work. Here are the XSL and XML-files. My XML test file (which reflects the DOM I am makings
    is:
    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE employees SYSTEM "employee.dtd">
    <?xml:stylesheet type="text/xsl" href="employee.xsl" ?>
    <employees>
    <employee>
    <id>1</id>
    <firstname>Frank</firstname>
    <lastname>Nilsen</lastname>
    </employee>
    <employee>
    <id>2</id>
    <firstname>Ronald</firstname>
    <lastname>Reagen</lastname>
    </employee>
    </employees>
    XSL-file is:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    <xsl:template match="/">
    <HTML>
    <BODY>
    <xsl:for-each select="employees/employee">
    <font color="red"><xsl:value-of select="id"/></font>
    <xsl:value-of select="firstname"/>
    <xsl:value-of select="lastname"/>
    </xsl:for-each>
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    Regards,
    Frank =:>

  • Use of Java Swing +Applescript to move and resize Mac OS X windows using

    Here is an interesting use of Java on Mac OS X and Applescript to
    enable moving and resizing of windows using mouse and keyboard:
    [MoveResize tool|http://code.google.com/p/sandipchitalesmacosxstuff/#Move_and_resize_windows_on_Mac_OS_X]
    How it works:
    The implementation uses Applescript to get the front most window and
    it's bounds. It sends the bounds rectangle to a server implemented in
    Java over a socket connection. The Java server takes the screen shot
    of the full Desktop and uses it as the Image label (a JLabel with
    ImageIcon) as the content pane of an undecorated JFrame which has the
    same bounds as the Desktop. A JPanel with semitransparent background
    and a dark rounded rectangular border is given the same bounds that
    were received over the socket. This JPanel is added to the
    PALETTE_LAYER of the JFrame's layered pane - which makes it appear
    floating in front of the front window. A Mouse and a Key listener
    added to the JPanel allow moving and resizing of the JPanel. When the
    user types the ENTER key the JFrame is hidden and the new bounds of
    the JPanel are sent back to the Applescript over the socket connection
    which moves and resizes the front most window.
    Enjoy!
    Sandip
    Edited by: chitale on May 14, 2009 4:12 AM

    Copy the /Home/Documents/ folder to the NAS drive. That drive needs to support AFP or you may run into filename problems and/or other file related problems due to filesystem differences.
    Once the folder has been moved to the NAS select the folder on the NAS and CTRL- or RIGHT-click. Select Make Alias from the drop down menu. You should now have an alias named "Documents alias." On the Mac put the /Home/Documents/ folder in the Trash but don't delete it. Copy the alias file from the NAS to the /Home/ folder. Rename it to simply "Documents." Double-click on it to be sure it opens the folder on the NAS. If so you can empty the Trash. You're done.

  • XSL and Schema

    I'm using CS3 to create a series of XSL files to transform XML but when i'm in DW, in the bindings tab, when I create a fragment XSL and point it to attach to a remote source I get
    'unable to locate or parse the xml source'
    I'm sure my source is correct
    Thanks

    ottz0 wrote:
     I'm sure my source is correct
    Maybe it is, but without seeing the XML source you're trying to load, it's impossible for anyone to help.
    A quick way to verify that an XML document is correctly formed is to load it into the latest version of any browser except Internet Explorer. If the XML is correctly formed, the browser will display the document tree. If not, it will display an error message.

  • Using resourceDescription in SUBSCRIPTIONBUNDLED_Email.xsl and xml's.

    Hello all,
    We are trying to use the Primitive Template "resourceDescription" (as described in "Customizing Notifications"-pdf) in the SUBSCRIPTIONBUNDLED_EMAIL.xsl and SUBSCRIPTIONBUNDLED_en.xml.
    Could anyone urgently let me know if it's possible to use this Primitive Template in the xsl and xml mentioned?
    It looks like the "resourceDescription" is not being passed on to the bundlednotificationdata-section in the xml?
    Any other suggestion in how to get the "resourceDescription" available in Daily Summary Subscription emails?
    Thanks in advance,
    Tim.

    Hello Alan,
    Yes; as far as I know the only way to get your changes to any of the email notification xml files visible is by restarting the server
    The notification email xsl I'm working on is the one for the daily notifications (subscriptionbundled_email.xsl).
    My problem is that it seems that the resourceDescription is not being passed on by the java code that is populating the section in the xml file containg the resource information...
    Unfortunately no confirmation about this yet (raised OSS with SAP as well).
    I'm expecting this resourceDescription to contain the text that you can fill in using standard KM in the Description field of a resource.
    I do wonder how/where your users populate the subject and description fields? Standard SAP KM or custom app?
    Cheers,
    Tim.

  • How do I allow the user to select and resize the CNiGraph while executing?

    I am writing an application with Measurement Studio and Visual C++ that will allow the user to create graphs on the fly. I need to give them the capability to select a graph and resize it in a manner consistent with most other Windows programs (i.e. resize handles). I have tried various implementations of the CRectTracker class and can get it to work for Microsoft controls, but I can not get it to work with the CNiGraph (the only one I have tried so far). The code runs but I never get the selection box or handles around the control. Is there a way to do this and is there an example anywhere that I can go from? Any help would be appreciated.

    Never mind. I have now found the way to do this.

  • Firefox "X" close and "_" minimize and Resize become unusable

    After running for a few minutes and visiting several web sites, in Firefox ver 3.6.13 the "X" close and "_" minimize and Resize buttons on the top right of the browser window become locked and unresponsive. this has just started recently. I've tried an overlay re-install with no effect. Any fix ideas would be appreciated.

    This happens to me too. It used to happen once in a while, probably due to hibernating and leaving firefox open for long periods or with too many tabs. Restarting the browser solves the problem.
    But after updating to 3.6.13 and some extensions/addons, it happens almost every time. The minimize, resize, close buttons do not work. I can still switch between the tabs I have open and make new tabs, but the title bar keeps the title of the last tab I was on when it froze. When smaller frames are open, such as download box or save as box, those freezes and can't be close either.
    If I minimize through "show desktop," the window doesn't open up again.

  • Stop JPanel auto positioning and resizing in Netbeans

    Hi,
    I'm working on a Swing application in Netbeans. In my program I had several JPanels. At any one time, only one JPanel is visible.
    I dragged my JPanels to the JFrame in the Swing editor. Each time the user clicks on the switch function button, another JPanel should be displayed.
    However, the new panel does not display correctly. It remained at the position where I had dragged (randomly) on Netbeans, instead of the new size and location I set it to prior to setting it visible. I tried to tinker with it, and realized that Netbeans helped me reposition my JPanel back to its original position. For my function to work, I suspect I should disable auto positioning and resizing.
    How do I turn it off?
    Thanks in advance,
    eddy05

    eddy05 wrote:
    That's what the JComponent.setSize() and JComponent.setLocation() do right, to resize and relocate JComponents and its subclasses.This only sets the properties of that particular JComponent. The layout manager of the container that holds it can choose to use these properties or not depending on what layout manager is being used.
    I wanted to perform the above functions, but Netbeans' behaviour keeps interfering, hence my request on how the behaviour can be turned off =)By dropping a JPanel into your JFrame (the JFrame's contentPane actually), NetBeans is by default going to use the GroupLayout, and the properties of the JComponent noted above will be ignored. One solution alluded to above is to have the JFrame's contentPane use a null layout, but while this might work in the short run, in the long run it will hurt you. Better is to read up on the various layout managers available for your use in the Sun Swing tutorials and start to play with them in your code.

  • Video Crop and Resize

    Not sure if this is a bug but it's frustrating! I'm using the
    Mac version of Flash CS3. I set everything up correctly to crop a
    video clip (dragging the sliders in the 'Crop and Resize' tab). I
    then start the queue etc. The resulting flv has NOT cropped as I
    specified?? I get strange sizes, distortions etc. This also happens
    by direct import to the stage (embed or external).
    Also I find that I need to check the 'Resize Video' check box
    even if I don't want to resize the video to get Flash to import at
    the correct size of the original! This renders the cropping tool
    useless. Any ideas anyone?

    I've since done some tests. The issue appears to be related
    to the source video and not the Flash Video Encoder, particularly
    the compression format. I have a set of clips at the same size but
    the compression formats are different (I checked the movie
    properties in QuickTime). Sorenson versions seem to crop and resize
    OK, but the DV format doesn't.
    At least the Flash side of things are fine.

Maybe you are looking for

  • Session Rules from Servlet to JSP

    I'm getting a null pointer exception from the else statement in the JSP below when I check to see if a user has been authenticated by a servlet. Are there any problems with the else statement to cause an exception? <% /**Verify Authenticationt*/ Http

  • AP Payment term

    Hi, I need to create a payment term for invoices dated from the 25th of the prior month through the 24th of the current month, payment is due in full (net) by the 25th of the next (proximo) month. e.g. Invoice range 06-25-2010 to 07-24-2010 due in fu

  • How to display the error message on screen in display mode

    Hi all, How to display error message as as status message on the screen(module pool). The requirement is if I call the screen, it should get with the error message in the status bar. If I write with error message 'E' error mesage information displays

  • I am unable to open my itunes after maverick update.  Any suggestions?

    I am unable to open my itunes after maverick update.  Any suggestions?

  • UP loading Customer open item and balance

    Dear All, We are going live in few days. My client had given me a file for  all the open items and a file for the balances. We lready have the customer masters in SAP. I have to upload the open items as well balances to SAP using LSMW.  I know for up