XSLT : Change element content to attribute

Hi:
I'm new to XSLT and am confused.
I'm trying to place images in InDesign from FileMaker 12 generated XML files.
I can't export the image containers, so the best I can get out of filemaker is the following XML for images:
<href>file:///images/A772.pdf</href>
What I'd like is:
<a href="file:///images/A772.pdf"></a>
So I can import them into Indesign.
How do I convert the <href> content to an href attribute of <a> using XSLT?
Thanks,
Cam

<href> is an element tag within your XML, it is not the same as the HTML attribute for an anchor element tag.
When XSLT sees the <href> element it will use the value within that element which is as it stands now file:///images/A772.pdf
This now brings up a question in my mind, What does a .pdf file have in common with an image?
If it is an image that you are trying to show then the value of the <href> element should show that as in
<href><img src="/image/A772.pdf" alt="myImage"></href>
If it is a link that you want to show, then the value should be as follows
<href><a href="/image/A772.pdf">A772.pdf</a></href>
Gramps

Similar Messages

  • Changing the Content of a Document at creation time using Java

    Hi,
    I made a ClassObject 'Division' that is a subclass of the
    oracle.ifs.beans.Document,
    and I want to change the content of a Division instance while it
    is being created because I can't change the editor (Epic) that
    creates this object.
    (and it has to be at creation time!)
    To do this, I made a server-side class S_Division that
    implements the extendedPreUpdate method.
    I was able to get the content of the object when that method was
    called for the 4th time
    and that way I could change some attributes of that object that
    depend on that content.
    My problem is that I need to change the origal content into
    something else using that extendedPreUpdate method
    and I don't know how.
    The bean-side Document class has an easy method setContent
    (DocumentDefinition) for changing the content of its instances,
    but the server-side S_Document doesn't!
    So how can I do that using the server-side classes?
    Maybe using the update(OperationState,
    S_LibraryObjectDefinition) method?
    Can someone give me some help or an example that shows me the
    way?
    Thanx,
    Gerd Vanhoof

    Hi,
    I made a ClassObject 'Division' that is a subclass of the
    oracle.ifs.beans.Document,
    and I want to change the content of a Division instance while it
    is being created because I can't change the editor (Epic) that
    creates this object.
    (and it has to be at creation time!)
    To do this, I made a server-side class S_Division that
    implements the extendedPreUpdate method.
    I was able to get the content of the object when that method was
    called for the 4th time
    and that way I could change some attributes of that object that
    depend on that content.
    My problem is that I need to change the origal content into
    something else using that extendedPreUpdate method
    and I don't know how.
    The bean-side Document class has an easy method setContent
    (DocumentDefinition) for changing the content of its instances,
    but the server-side S_Document doesn't!
    So how can I do that using the server-side classes?
    Maybe using the update(OperationState,
    S_LibraryObjectDefinition) method?
    Can someone give me some help or an example that shows me the
    way?
    Thanx,
    Gerd Vanhoof

  • [svn:fx-trunk] 7784: adding xslt change so info related to Alternative shows up in the asdoc

    Revision: 7784
    Author:   [email protected]
    Date:     2009-06-12 07:46:21 -0700 (Fri, 12 Jun 2009)
    Log Message:
    adding xslt change so info related to Alternative shows up in the asdoc
    QE Notes: None.
    Doc Notes: None.
    Modified Paths:
        flex/sdk/trunk/asdoc/templates/class-parts.xslt
    Added Paths:
        flex/sdk/trunk/asdoc/templates/images/P_AlternativeMetadataIndicator_30x28_N.png

    I've checked the resolution in Photoshop just as a double-check and it shows resolution as 300 PPI. When you say "because they can be mixed" do you mean because elements and graphics with the PDF can be of varying resolutions? I hadn't thought of that, if that's what you meant. I do have some items within my pdf that might be lower resolution.
    If these show up in my Preflight Panel as an issue, does this mean they would be flagged also with the Printer? In trying to find a resolution I read several forum discussions about how Printers often run your document through a Preflight process and will send it back when there are low resolution images in the document.
    Is there some other way to be sure these images are in the InDesign document as 300 PPI so I can know they will in fact print correctly?
    PS - Peter - thanks for the super quick response! And I saw your the highlighted "Exceptional Contributor" on the right sidebar for the InDesign forum - clearly well-deserved! Congrats

  • Changing the document size Attribute

    Is it possible to change the document size Attribute to read in Kilobytes or MegaBytes, not just in bytes?
    Thanks,

    Could you provide an example procedure to display the document size? We also want to display the item size in MBytes within a content area.
    Thanks

  • CATS - It is possible to change the content of the Rejection e-mail?

    Hi all,
    we are in ECC 6.0 and have implemented CATS.
    Do you know if it is possible (and how!) to change the content of the e-mail that is sent to the employee in case of CATS rejection?
    Thanks and regards,
    Cristiana

    Hello, nice idea!
    I did figure out that the program use text elements, however, one is not allowed to change them. I then raised an OSS note and SAP raplied that I couldn't change the text elements - I really don't like the email that is sent from CATS rejection!
    I really ike the sound of your idea. I am not familiar with translations though. Would you be able to detail it a bit more about how to translate a text element?
    When I get to the text element screen, if i follow menu path Goto > Translation, a screen pops up asking me to chose a Target Language. What should I do then? Select the target language to EN (the original language is EN) ? And then, how do I make sure that the program uses the translated text?
    Thanks a lot for your help!
    Cheers,
    Cristiana

  • How to change the "content created" date/time in FCPX?

    Since I've had problems importing my whole iMovie event library into FCPX I decided to run some tests with importing individual files (part of iMovie events and originally imported from camera into iMovie). Some of them for some reason got the wrong "content created" date/time in them while in iMovie they have the right date/time set. Does anybody have an idea on how to change the "content created" timestamp?

    I had a bunch of DV files that imported stamped with the file modification date and time.  I did not find a way to change it in FCPX. With FCPX not running, I used A Better Finder Attributes to modify the creation and modification dates of the files in the event folder. FCPX reconnected to them but the event still showed the old range of dates so I created a new event and moved the clips to it. Maybe ther is a beter way but that is how I did it.

  • What happened to Change Layer Content?

    This question is related to Photoshop Elements 10.
    Photoshop Elements 5.0 had the command "Change Layer Content" under the "Layers" menu. It would allow me to select from solid colors, gradients and patterns in shapes (rectangles, circles, or pre-made shapes. I used it a lot but I don't see it in this new version of Photoshop! What happened to that command? Is there some new command to replace it that I just don't see because I am really having a difficult time locating it!   

    I have some actions i made for elements to do that if your interested.
    You can do it without actions, but it's far from convenient.

  • Big Permissions Problem: "You Cannot Change The Contents Of This Folder"

    I installed Tiger some time ago (and need to upgrade now from 10.4.6 to 10.4.9).
    I haven't used it much since some of my software will only run under Panther.
    In any case, I'm using it now and have been having big permissions/user accounts problems.
    I have two users on the computer "robert" and "ra", both with admin privileges (I set up two because I was trying to get around these problems -- I'd be very happy with just one).
    I have 10.4.6 installed on an external HD and boot from that into Tiger (I have Tiger on another external HD as a backup, and my main HD in the iMac has 10.3.9 -- that's what I boot from when I need to run older programs).
    In any case, both "robert" and "ra" have ADMIN privileges. But I get weird ownership problems. For instance, if I am logged in as "ra" and try to play a Realplayer file streaming from the web (in Firefox 1.x), I get the error
    /Users/robert/Desktop/307e6wz7 could not be saved, because you cannot change the contents of that folder.
    I check the ownership of the "Desktop" folder -- read/write for "ra".
    If I right-click I can save the Realplayer file to the desktop.
    Same with other links.
    I've also noticed other ownership problems (blocked folders at finder level) but can't duplicate tonight. Is this an obscure error, or is there something amiss in ownership recognition? Is there some way I can sort all out? Login in as "root" and set all right?
    Thanks
    G4 iMac   Mac OS X (10.4.6)  

    Yes they do. When you installed them you dragged these particular apps to the Applications folder. Doing so automatically attributes the program with the ownership attributes of the account owner who installed them - 'robert.'
    Proper application installers install apps under the system/admin ownership. You can try to fix these apps by changing their permissions:
    Select the app and CTRL-click to open the contextual menu. Choose Show Package Contents from the contextual menu. Select the Contents folder and press COMMAND-I to open the Get Info window. In the Ownership and Permissions section click on the tiny arrow icon to expose the panel. Click on the little lock icon to authenticate. Change permissions as follows:
    Owner = system with Read/Write privileges
    Group = admin with Read/Write privileges
    Other with Read-Only privileges
    Click on the Apply To Enclosed Items button. Close the lock by clicking again on the lock icon.

  • Someone is changing elements with the Dev tools on my computer how do i reverse the changes

    i am new to computers you could call me technically retarded sometimes my pages are padded and sometimes they dont work at all this part or that will be missing or i will get a ridiculous redirect i really dont understand it but im reading about it in the forums
    please help me it seems a touch suspicuous there are things encrypted with 256 encryption hidden photos and all kinds of other stuff
    sincerely
    James r fair
    Portland Or
    SalpareBay Marina
    8/30/2014

    Unknown property '-moz-border-radius'. Declaration dropped. 0:1
    Unknown property '-moz-border-radius-bottomleft'. Declaration dropped. 0:1
    Unknown property '-moz-border-radius-topleft'. Declaration dropped. 0:1
    Expected 'none' or URL but found 'alpha('. Error in parsing value for 'filter'. Declaration dropped. 0:1
    Unknown property '-moz-box-shadow'. Declaration dropped. 0:1
    Unknown property '-moz-border-top-left-radius'. Declaration dropped. 0:1
    Unknown property '-moz-border-top-right-radius'. Declaration dropped. 0:1
    Expected color but found 'top'. Error in parsing value for 'background-image'. Declaration dropped. 0:1
    Expected media feature name but found '-webkit-min-device-pixel-ratio'. 0:1
    Error in parsing value for 'image-rendering'. Declaration dropped. 0:1
    Expected color but found 'none'. Error in parsing value for 'background-color'. Declaration dropped. 0:1
    Error in parsing value for '-moz-transition'. Declaration dropped. 0:1
    Error in parsing value for 'transition'. Declaration dropped. 0:1
    Unknown property 'zoom'. Declaration dropped. 0:1
    Expected color but found 'right'. Error in parsing value for 'background-image'. Declaration dropped. 0:1
    Expected color but found 'bottom'. Error in parsing value for 'background-image'. Declaration dropped. 0:1
    Expected color but found 'left'. Error in parsing value for 'background-image'. Declaration dropped. 0:1
    Unknown property '-moz-background-size'. Declaration dropped. 0:1
    Expected color but found 'auto'. Error in parsing value for 'border-left'. Declaration dropped. 0:1
    Error in parsing value for 'border-right'. Declaration dropped. 0:1
    Unknown pseudo-class or pseudo-element '-ms-clear'. Ruleset ignored due to bad selector. 0:1
    Unknown pseudo-class or pseudo-element '-webkit-scrollbar'. Ruleset ignored due to bad selector. 0:1
    Unknown pseudo-class or pseudo-element '-webkit-scrollbar-button'. Ruleset ignored due to bad selector. 0:1
    Unknown pseudo-class or pseudo-element '-webkit-scrollbar-corner'. Ruleset ignored due to bad selector. 0:1
    Unknown pseudo-class or pseudo-element '-webkit-scrollbar-thumb'. Ruleset ignored due to bad selector. 0:1
    this is my gmail
    rocky fair
    portland or
    On Sat, Aug 30, 2014 at 12:32 PM, Mozilla Support Forum <[email protected]> wrote:
    Mozilla Support
    someone is changing elements with the Dev tools on my computer how do i reverse the changes
    cor-el Aug 30, 2014 5:32:47 AM
    Can you attach a screenshot?
    http://en.wikipedia.org/wiki/Screenshot
    https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot
    Make sure that you do not exceed the maximum size of 1 MB
    This isn't done via the developer tools, but more likely by an extension or security software.
    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    Hold down the Shift key and left-click the Reload button
    Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    Do NOT click the Reset button on the Safe Mode start window
    https://support.mozilla.org/kb/Safe+Mode
    https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Mark it as solved This doesn't solve my problem
    Browse for unsolved questions and help a Firefox user
    Solving 1 issue helps up to 1,000 users a day!
    This email is automatically sent by a robot. Our robot can’t respond to your question, but our forum contributors can! If you want to respond to them, please click here.
    Change your email preferences
    Unsubscribe from these emails

  • I have 5 html pages that share a common header, footer, and sidebar. how do i use my nav bar to change the content of the body without duplicating a lot of code?

    i have 5 html pages that share a common header, footer, and sidebar. how do i use my nav bar to change the content of the body without duplicating a lot of code? thank you!

    i inherited the website. It’s for a non-profit and is not very
    sophisticated, and neither am I in webdesign. It currently has multiple
    pages that are identical except for that body section, so whenever i change
    the navigation (in the sidebar) I have to update every html page.  I want
    to have one basic page, and just call in the different body content based
    on the link the user selects from the nav bar. How can i do that using a
    script? i am using Dreamweaver.
    ~ in love and light ~
    Jeannie
    On Sat, Feb 7, 2015 at 4:07 AM, Ben Pleysier <[email protected]>

  • I am trying to ask a question about iPhones, but it will not let me post - I get a message similar to this - you are not allowed to change the content.  Any help on this matter?

    I am trying to ask the following question: Just updated my iPhone5 to V 7.1.2 and can no longer print to my MFC 7860W from this phone.  I researched this issue on this forum and found answers from last October/November.....  Wary of downloading anything that was posted that long ago.  Wondering if there is anyway around this issue, with more recent information?  I was able to use this printer in the past by using Brother's iPrint App. 
    Thanks!!
    But when I hit post, I get an error message at the top - "you are not allowed to change this content"  Can anyone help me?

    I am assuming you got that message when attempting to post an old thread. The old post is probably locked/archived.
    FYI, posting on old threads usually yields no responses at all.
    I have requested that this post be moved to the iPhone forum where you might get assistance.
    Barry

  • After upgrading to Maverick, when I double click on the attchment I get this message "...could not be saved, because you cannot change the contents of that fold

    After upgrading to Maverick, when I double click on the attachment I get this message "...could not be saved, because you cannot change the contents of that folder. Change the folder properties and try again, or try saving in a different location." It happens for all types of files.
    Any suggestions as how to fix this?
    I'm on a Mac OS X 10.9.3 with Thunderbird 24.5.0

    Thunderbird > preferences (I think on a mac) and under attachments set the folder

  • Firefox crashes whenever i want to install any addon or download any file. Some times i am receiving error while downloading any file like "could not be saved, because you cannot change the contents of that folder"

    I am the user of latest firefox 3.6.6 browser. I am getting problems of frequent crashes whenever i tries to install any addon. The crashes also occures whenever i want to download any file.
    I am also receiving errors while downloading any file like:
    "C:\Users\****\AppData\Local\Temp\******.001.part could not be saved, because you cannot change the contents of that folder.
    Change the folder properties and try again, or try saving in a different location. I already changed it many many times but still the same problem."
    Adobe flash palyer is also giving problems of not responding. I am using updated version of it already. Java is also updated.
    I already uninstalled firefox compeletly and re installed it many many times but still the same problem. I also scanned my computer with avira and malware bytes' Anti malware and got no dection. Please ractify this problem ASAP lest my profession will suffer.
    == Crash ID(s) ==
    b7f518f2-8d86-41ca-8bab-aee632100709; 1d790e10-d8eb-4904-98c9-94bc62100708; f042d319-b9f8-42ed-a8cb-57c7d2100708

    Please help.
    It is getting worse
    Adobe flash player is crashing. I already uninstalled and re installed the latest ver. Also it is hanging randomly.
    Please help.

  • I am getting the following error: Unable to authenticate the package: B_SPACE_NUTRITION.itmsp                     ERROR ITMS-9000: "OPS/ibooks.ncx(5): element "content" not allowed yet; missing required element "navLabel"" at Book (MZItmspBookPackage)

    I am getting the following error when attempting to deliver my iBooks Author book package via iTunes Producer: "
    Unable to authenticate the package: B_SPACE_NUTRITION.itmsp
                        ERROR ITMS-9000: "OPS/ibooks.ncx(5): element "content" not allowed yet; missing required element "navLabel"" at Book (MZItmspBookPackage)"
    I understand that there's something wrong with the TOC file (.ncx), but I have tried everything and nothing seems to work. Every section of the TOC is labeled, so not sure why the navLabel issue is happenening.
    Any help is GREATLY appreciated! Thank you.

    Similar issues looks like. Are you using a template other than those in iBooks Author? That's what I did, and that was definitely part of the issue.
    After digging through .ibooks code for hours and still not seeing the problem, I decided to reach out to one of the Apple epub conversion affiliates in iTunes Connect. They said they could repair the file without a problem, started working on it, only to come back a week later and say they couldn't work on .ibooks or .iba files yet.
    So, in complete frustration, I decided to transfer my content page by page from the blank template I downloaded from a vendor online to one of the "textbook" templates in IBA. This was a long process as I had to unlock and clear out the formatting of the template. But, once that was done and content was transferred over, all was good. I submitted/delivered the same content and preview book within the new template and it went right through the first time (all metadata was exactly the same as well).
    Now, the iBookstore approval waiting process begins!
    Good luck!

  • When firefox trys to auto update, or I manually download the new version, or some but not all downloads off of the web, I get this error message. C:\Users\John\AppData\Local\Temp could not be saved, because you cannot change the contents of that folder.

    First off, when firefox trys to auto update, it fails. It tells me to try and download the new version from mozilla's site. When I try to download the new version I get this: (C:\Users\John\AppData\Local\Temp could not be saved, because you cannot change the contents of that folder.)
    This is the same message I have been getting when I try to download other things off the net. (When I use other browsers to download I dont have this problem)

    Please help.
    It is getting worse
    Adobe flash player is crashing. I already uninstalled and re installed the latest ver. Also it is hanging randomly.
    Please help.

Maybe you are looking for