Gif file in a xsl:include

Hi,
Can a .gif file be included in a xsl:include?
I cannot use <img src="/images/delete.gif"/> since the "src" part is
1)going to be dynamic and
2)cannot be returned as a TAG in the XML as well.
Thanks in advance...

why can't you make the image path a variable or parameter...
<xsl:param name="imgPath" select="your_code_or_set_it_externally" />
<IMG>
     <xsl:attribute name="SRC">
          <xsl:value-of select="$imgPath" />
     </xsl:attribute>
</IMG>

Similar Messages

  • Importing gif file to ImageIcon

    Hi,
    I am trying to use a gif file that I have included in my project (using Windows XP). I am trying to stick the image from the gif file into a ImageIcon variable, and sticking the variable into a label. Here is the code that I am using to have the program access the gif file:
    private ImageIcon redX = new ImageIcon( " \\JAVA programs\\Week 8\\lab8_1a\\redshd.gif " );
    I have a classPath setup in my environment variables/system variables as follows:
    .;C:\Documents and Settings\Jim Roth\My Documents\Visual Studio Projects\Programs
    and the path to the gif file is as follows:
    C:\Documents and Settings\Jim Roth\My Documents\Visual Studio Projects\Programs\JAVA programs\Week 8\Lab8_1A\redshd.gif
    When I run the program, the screen comes up empty. I am using a basic frame, with a GridLayout. When I change the input into the label to a string, it shows up on the label when the program runs.
    In debug mode, I am not quite sure of what the values apply to, but oneonf them shows up as 'null'.
    I think my problem lies with the program just not finding the gif.file. Any suggestions?
    Thanks a lot!
    Jimbo

    OK, here is the program.....it is my very first stab at anything gui. We are supposed to display a tic tac toe grid, and have it randomly put x's and o's (or something simiilar) in a3x3 grid in a random fashion. Here it is:
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class TicTacToe extends JFrame
    private ImageIcon redX = new ImageIcon("\\JAVA programs\\Week 8\\lab8_1a\\redshd.gif");
    private ImageIcon blueCirc = new ImageIcon("\\JAVA programs\\Week 8\\lab8_1a\\qmark.gif");
    /** Default constructor for TicTacToe */
    public TicTacToe()
    setLayout(new GridLayout(3,3,2,2));//sets grid layout for a 3x3 grid with 2 pixel spacing
    //add 9 JLabels to hold image icons
    for(int i =0; i < 10; ++i)
    add(this.generateJLabel());
    public static void main(String[] args)
    TicTacToe game = new TicTacToe();
    game.setTitle("Tic Tac Toe");
    game.setLocationRelativeTo(null);
    game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    game.setSize(250, 250);
    game.setVisible(true);
    protected JLabel generateJLabel()
    Random rand = new Random();//instantiate random object to generate ints
    int randNum = rand.nextInt(4);//generate ints between 0 and 4 (exclusive)
    /*The following switch statement looks at random number generated by the Random
    object and assigns an image to a JLabel according to the int returned./
    switch (randNum)
    case 1:
    JLabel temp = new JLabel(this.redX);
    return temp;
    case 2:
    JLabel temp1 = new JLabel(this.blueCirc);
    return temp1;
    default:
    JLabel temp2 = new JLabel();
    return temp2;
    }

  • CS4 - Getting error when opening a .gif file - file-format module cannot parse the file.

    I am getting this popup error when trying to open a .gif file:
    "Could not complete your request because the file-format module cannot parse the file."
    This comes up every time I try to open a .gif file.  Even if I make a .gif file (like the image included in this post), save it and then try to open it again, I get the same error.  I tried reinstalling CS4, but the error is still there.  I have also done the reset on start-up and nothing.  Some have suggested that I open it in (Windows XP Pro) MS Paint and then save it again.  Did it and this does NOT work for me, either. 
    I know it's a Photoshop problem because I can see this file everywhere, except Photoshop.  It will open here, there and everywhere, except for Photoshop.
    I've searched the Adobe Commmunity and it looks like no one has come up with a fix for this.  I'm just currious after 5 years with this problem, has there been a solution?
    Scott

    One of the files that has the error is in my first post.
    Adobe Photoshop Version: 11.0
    Operating System: Windows XP 32-bit
    Version: 5.1 Service Pack 3
    System architecture: AMD CPU Family:15, Model:10, Stepping:0 with MMX, SSE Integer, SSE FP, SSE2
    Physical processor count: 6
    Processor speed: 3210 MHz
    Video Card: NVIDIA GeForce GTX 460
    Video Mode: 1280 x 1024 x 4294967296 colors
    Video Card Driver: nv4_disp.dll
    Driver Version: 6.14.13.0623
    Built-in memory: 3289 MB
    Free memory: 257 MB
    Memory available to Photoshop: 1677 MB
    Memory used by Photoshop: 69 %
    Image cache levels: 4
    Serial number: xxxxxxxxxxxxxxx
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS4\
    Temporary file path: C:\DOCUME~1\xxxxxx\LOCALS~1\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      F:\, 233.7G, 145.7G free
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS4\Plug-ins\
    Additional Plug-ins folder: not set
    Installed components:
       ACE.dll   ACE 2008/08/27-18:10:41     
       AdobeLinguistic.dll   Adobe Linguisitc Library   4.0.0  
       AdobeLM.dll   AdobeLM   3.0.11.10077    53.352460
       AdobeLM_libFNP.dll   FLEXnet Publisher (32 bit)   11.5.0.1 build 57427  
       AdobeOwl.dll   Adobe Owl
       AdobeOwlCanvas.dll   Adobe Owl Canvas  
       AdobePDFL.dll   PDFL 2008/08/20-20:15:08  
       AdobeUpdater.dll   Adobe Updater Library   
       AdobeXMP.dll   Adobe XMP Core 
       AdobeXMPFiles.dll   Adobe XMP Files   4.2.2   53.352624
       AdobeXMPScript.dll   Adobe XMP Script   4.2.2   53.352624
       adobe_caps.dll   Adobe CAPS   2,0,99,0   2.135373
       adobe_epic.dll   Adobe EPIC   3.0.1.10077    53.352460
       adobe_eula.dll   Adobe EPIC EULA   3.0.1.10077
       AFlamingo.dll   AFlamingo
       AGM.dll   AGM      
       ahclient.dll    AdobeHelp Dynamic Link Library   1, 3, 12, 0  
       aif_core.dll   AIF   1.0 
       aif_ogl.dll   AIF   1.0  
       amtlib.dll   AMTLib   2.0.1.10077    53.352460
       amtservices.dll   AMTServices   2.0.1.10077    53.352460
       ARE.dll   ARE 2008/08/27-18:10:41     
       asneu.dll    AsnEndUser Dynamic Link Library   1, 6, 0, 8  
       authplay.dll        
       AXE8SharedExpat.dll   AXE8SharedExpat
       AXEDOMCore.dll   AXEDOMCore
       Bib.dll   BIB      
       BIBUtils.dll   BIBUtils      
       cg.dll   NVIDIA Cg Runtime   2.0.0015  
       cgGL.dll   NVIDIA Cg Runtime   2.0.0015  
       CoolType.dll   CoolType 2008/08/27-18:10:41     
       data_flow.dll   AIF   1.0   53.352475
       ExtendScript.dll   ExtendScript      
       FileInfo.dll   Adobe XMP FileInfo   4.2.2  
       FNP_Act_Installer.dll   FLEXnet Publisher (32 bit)     
       icucnv36.dll 
       icudt36.dll     
       image_flow.dll   AIF   1.0   53.352475
       image_runtime.dll   AIF   1.0   53.352475
       JP2KLib.dll   JP2KLib 2008/06/11-20:19:53   53.100857   53.100857
       libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   10.0  
       MPS.dll   MPS 2008/07/07-10:33:04   53.350311   53.350311
       msvcp71.dll   Microsoft® Visual Studio .NET   7.10.3077.0  
       msvcr71.dll   Microsoft® Visual Studio .NET   7.10.3052.4  
       pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop CS4   CS4  
       Plugin.dll   Adobe Photoshop CS4   CS4  
       PlugPlug.dll   Adobe(R) CSXS PlugPlug Standard Dll (32 bit)   1.0.0.73  
       PSArt.dll   Adobe Photoshop CS4   CS4  
       PSViews.dll   Adobe Photoshop CS4   CS4  
       registration.dll   Registration   
       SCCore.dll   ScCore      
       shfolder.dll   Microsoft(R) Windows (R) 2000 Operating System     
       WRServices.dll   WRServices
    Installed plug-ins:
       3D Studio 11.0
       ADM 3.11x01
       Accented Edges 11.0
       Angled Strokes 11.0
       Average 11.0
       BMP 11.0
       Bas Relief 11.0
       Camera Raw 5.0
       Chalk & Charcoal 11.0
       Charcoal 11.0
       Chrome 11.0
       Cineon 11.0   
       Clouds 11.0
       Collada 11.0
       Color Halftone 11.0
       Colored Pencil 11.0
       CompuServe GIF 11.0
       Conté Crayon 11.0
       Craquelure 11.0
       Crop and Straighten Photos 11.0
       Crop and Straighten Photos Filter 11.0
       Crosshatch 11.0
       Crystallize 11.0
       Cutout 11.0
       Dark Strokes 11.0
       De-Interlace 11.0
       Dicom 11.0
       Difference Clouds 11.0
       Diffuse Glow 11.0
       Displace 11.0
       Dry Brush 11.0
       Embed Watermark 3.0
       Entropy 11.0
       Extrude 11.0
       FXG 11.0
       FastCore Routines 11.0
       Fibers 11.0
       Film Grain 11.0
       Filmstrip 11.0
       Filter Gallery 11.0
       Fresco 11.0
       Glass 11.0
       Glowing Edges 11.0
       Google Earth 4 11.0
       Grain 11.0
       Graphic Pen 11.0
       HDRMergeUI 11.0
       Halftone Pattern 11.0
       IFF Format 11.0
       Ink Outlines 11.0
       Kurtosis 11.0
       Lens Blur 11.0
       Lens Correction 11.0
       Lens Flare 11.0
       Lighting Effects 11.0
       Liquify 11.0
       MMXCore Routines 11.0
       Matlab Operation 11.0
       Maximum 11.0
       Mean 11.0
       Measurement Core 11.0
       Median 11.0
       Mezzotint 11.0
       Minimum 11.0
       Mosaic Tiles 11.0
       Multiprocessor Support 11.0
       NTSC Colors 11.0
       Neon Glow 11.0
       Note Paper 11.0
       Ocean Ripple 11.0
       OpenEXR 11.0
       PCX 11.0
       PNG 11.0
       Paint Daubs 11.0
       Palette Knife 11.0
       Patchwork 11.0
       Paths to Illustrator 11.0
       Photocopy 11.0
       Photoshop 3D Engine 11.0
       Picture Package Filter 11.0
       Pinch 11.0
       Pixar 11.0
       Plaster 11.0
       Plastic Wrap 11.0
       Pointillize 11.0
       Polar Coordinates 11.0
       Portable Bit Map 11.0
       Poster Edges 11.0
       Radial Blur 11.0
       Radiance 11.0
       Range 11.0
       Read Watermark 3.0
       Reticulation 11.0
       Ripple 11.0
       Rough Pastels 11.0
       Save for Web & Devices 11.0
       ScriptingSupport 11.0
       Send Video Preview to Device 11.0
       Shear 11.0
       Skewness 11.0
       Smart Blur 11.0
       Smudge Stick 11.0
       Solarize 11.0
       Spatter 11.0
       Spherize 11.0
       Sponge 11.0
       Sprayed Strokes 11.0
       Stained Glass 11.0
       Stamp 11.0
       Standard Deviation 11.0
       Sumi-e 11.0
       Summation 11.0
       Targa 11.0
       Texturizer 11.0
       Tiles 11.0
       Torn Edges 11.0
       Twain Acquire 11.0
       Twain Select 11.0
       Twirl 11.0
       U3D 11.0
       Underpainting 11.0
       Vanishing Point 11.0
       Variance 11.0
       Variations 11.0 (11.0x001)
       Video Preview 11.0
       WIA Support 11.0
       Water Paper 11.0
       Watercolor 11.0
       Wave 11.0
       Wavefront|OBJ 11.0
       Wind 11.0
       Wireless Bitmap 11.0
       ZigZag 11.0
    Plug-ins that failed to load: NONE
    Flash:
       Connections
       Kuler
    Installed TWAIN devices:
       WIA-hp officejet 6100 series
       hp officejet 6100 series TWAIN

  • Xalan, xsl:include, The system cannot find the file specified

     

    Hi
    Xalan is unable to parse stylesheets which contain xsl:include
    directives, even if the file being included is in the same directory.
    I'm currently porting our web application to weblogic 6.0 sp2 running on
    Windows 2000. The application works fine except for one annoying problem,
    this problem only manifests on Weblogic 6.0 sp2.
    I've got a servlet which makes use of a jsp tag. The tag uses the
    ServletContext.getResource() to reference a stylesheet in the webapps' xsl
    subdirectory. If that stylesheet contains an xsl:include e.g. <xsl:include
    href="myother.xsl"/>, myother.xsl is contained in the same directory as the
    stylesheet containing the include. Xalan fails to parse the stylesheet. The
    following exception is thrown "org.apache.xalan.XSLProcessorException: The
    system cannot find the file specified".
    I've currently amended the weblogic classpath as follows
    set
    CLASSPATH=.;c:\myjars\xerces.jar;c:\myjars\xalan.jar;c:\myjars\bsf.jar;c:\my
    jars\js.jar;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
    xerces v1.4
    xalan v1.2.2
    bsf (as supplied with xalan 1.2.2)
    js (Mozilla Rhino 15R2)
    The code in the jsp tag to load the stylesheet is as follows
    XSLTProcessor processor =
    XSLTProcessorFactory.getProcessorUsingLiaisonName("org.apache.xalan.xpath.xd
    om.XercesLiaison");
    URL styleSheetUrl =
    pageContext.getServletContext().getResource("/xsl/myxsl.xsl");
    StylesheetRoot stylesheet = processor.processStylesheet(new
    XSLTInputSource(styleSheetUrl.toExternalForm()));
    Any help would be appreciated.
    Regards
    Tony

  • Xsl:include and WAR Files

              We are trying to deploy our application using WAR file approach. We are using
              Weblogic 6.0 SP2 All our JSP and servlets are working fine.
              We have our reports generated based on XSL files. XSL files are put into the war
              file.
              In my transformation servlet, I am loading the original xsl file by calling getResourceAsStream(xslFileName);
              During the xsl transformation if we have any includes for another xsl file, I
              am getting an exception
              java.net.MalformedURLException: no protocol: myIncluded.xsl
              Basically in my original XSL file I have the following line
              <xsl:include href="myIncluded.xsl" />
              Could somebody tell me what I should doing to get rid off this exception.
              Thanks in advance
              SK
              

    The href attribute needs a protocal to determin what kind of uri it is dealing with file,http, etc..
    try changing this
    <xsl:include href="myIncluded.xsl" />to this
    <xsl:include href="file://./myIncluded.xsl" />
    or this
    <xsl:include href="file://myIncluded.xsl" />
    I'm not sure how this plays out seeing how your using the getResourceAsStream method. I dont know if getting a resource this way will allow the xsl processor to resolve the url correctly or not. You may have to use a jar protocal or something like that to get it to work. You may even need to specify the absolute url to the include file.

  • How to link a css file in the xsl file

    Hi
               I would like to know how to include link to my .css file in my .xsl file.
    The scenario here is I want include a background color in my ShowForm.I am trying to do the same using css.
    This is the code snippet in my css file
    .outerbody {
         background-color: B1C1CF;
    This is how I tried to include a link in my xsl file
    <link href="/irj/go/km/docs/Testing/MyNewsDemo/css_test.css" type=text/css rel=stylesheet>

    Hi
              Thanks a lot. It would be very helpful if you send me an example.
    As of now I have found a solution,I would like to share it here.
    I added a link to my css file in xsl:
    <link rel="stylesheet" type="text/css" href="/irj/go/km/docs/Testing/MyNewsDemo/css_test.css">
    </link>
    I replaced the standard class name "body" with my class name "outerbody" specified in the css file.
    <body class="outerbody">
    Edited by: SRIVIDHYA RAGHUNATH on Feb 25, 2009 11:19 AM

  • Problems faced when using xsl:include and extension functions

    I am Working in XML and XSLT using Oracle's XML Parser V2.
    Previously i had worked in Microsoft technology using MSXMLParser.
    I am facing some problems in XSLT. They are as below...
    1. Using <xsl-include href="Somexsl.xsl">
    the oraclexmlparser processor is giving the error : XSL-1002: Error while processing include XSL file (no protocol: Submenu.xsl).
    * Can u tell me why i am getting this error, and what is the fix for this.
    The same case with <xsl:import> too.
    2. In case i have to write some functions in the previous WD of xsl i used these statements
    <?xml version='1.0'?>
    <!DOCTYPE PageRoot SYSTEM "../../Common/dtd/PageNavBar.dtd">
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/TR/WD-xsl"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    result-ns="">
    <xsl:script xmlns:xsl="uri:xsl"><![CDATA[
    var strWebContentPath = "/SurSITE/Content/";
    var strWebImagePath = "/SurSITE/sursitegraphics/";
    function IncScript()
    return "<script language='javascript' src='/SurSITE/Includes/avalidations.js'></script>";
    ]]>
    </xsl:script>
    To call the function i used this
    <xsl:eval no-entities='true'> IncScript();</xsl:eval>
    * Can u tell me how do i do this now, i tried with the code above using the current name space (<xsl:stylesheet version="1.1"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />)
    Please use the example given above.
    I will be very greatfull to u if u can give me some suggestion or help for the above said problems.
    Thanking you and eagerly waiting for your reply(s).
    null

    The current version is "1.0" not "1.1"
    You haven't included the code for what your <xsl:include>
    statement looks like, which seems to be what it's complaining
    about...
    XSLT 1.0 has no <xsl:eval>, this is a microsoft specific tag
    from a pre-XSLT-1.0 version.
    XSLT 1.0 has no <xsl:script> element either.

  • Can I create a gif file with hyperlink hotspots?

    Hi everyone,
    I'm trying to create a gif file in Photoshop or Fireworks than I can upload to a website as a background image to my profile page, but I would like to be able to include a few different hyperlinks embedded within that gif file, so for instance if a user clicks on the text for a website this acts as a hyperlink and opens the site in a new browser window.
    Is this possible or not, my knowledge of Photoshop/Fireworks is quite limited but as far as I can tell, this is only possible if I'm exporting the image from Fireworks as an HTML document, and that's not what I need .. it has to be in a gif or jpeg format.
    Can someone put me out of my misery please and let me know if its possible to embed one or more hyperlinks within certain areas of a gif file?
    Many thanks in advance
    Wayne

    That's pretty much what I thought Chris, thanks very much for taking the time to reply to my post - its very much appreciated.
    Kind Regards,
    Wayne

  • XML/XSLT: Setting xsl:include href attribute with a variable

    I have a main layout stylesheet and depending on which page the user selects I want to use xsl:include to display the selected information in the 'content' DIV. The process works fine if hardcode it like this:
    <xsl:include href="welcome.xsl"/>
    <div id="content"
    <xsl:call-template name="welcome"/>
    </div>
    but, what I would like to do is have the name of the included template pulled from the xml file depending on which page was selected by the user. Something similar to this:
    <xsl:variable name="ss">
    <xsl:text><xsl:value-of select="root/stylesheet"/></xsl:text>
    </xsl:variable>
    <xsl:include href="{$ss}.xsl"/>
    <div id="content">
    <xsl:apply-template name="{$ss}"/>
    </div>
    So far I have tried using many different forms of code and have been unable to get this to work. Any ideas?
    EDIT: Okay, I have it partly figured out, at least why it isn't working. As far as I can tell, the 'xsl:include' tag must be a child of the 'xsl:stylesheet' tag, and is thus declared before the <xsl:template match="/"> which means it can't read the xml element to even store it in the variable. I have an idea of how to accomplish what I need, though.
    Last edited by munkyeetr (2009-01-28 03:29:58)

    I have attempted the same thing before as well. The only way I was able to dynamically build the xsl:include was to declare a new namespace e.g xmlns:out="output.xsl" in my XSL file and do something like the following:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:out="output.xsl">
    <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
    <xsl:varible name="xxx" select=" 'myFile.xsl' "/>
    <xsl:template match="/">
    <out:stylesheet version="1.0">
    <out:template match="/">
    <out:include>
    <xsl:attribute name="href">
    <xsl:value-of select="$xxx" />
    </xsl:attribute>
    </out:include>
    </out:template>
    </out:stylesheet>
    </xsl:template>
    </xsl:stylesheet>
    When applied to any valid XML document this produces the XSL file you are after as the output.
    To use this output against your intended XML source consider the following: A Java program can very quickly apply the above stylesheet to any XML source to get the output you want... then apply that XSL result to the actual XML document you are wanting to transform. From here you can do what you want with the transformed result.

  • xsl:include in XSL Workshop

    I am trying to use <xsl:include> for some proxy stylesheet. I use the form
    <xsl:include href="filename.xsl" />
    I get the following error when process the stylesheet:
    'Bad URI found while including/importing file: no protocol: filename.xsl'
    Currently I am just working with the workshops, I have not deployed the xsl stilesheets yet to the server.
    Everything works as expected in XMLSpy.
    Does anybody have an example of a working <xsl:include>?

    what about putting that file in the respository? or set up the XMLDIR and put it there? I have never done it but just a though.
    Ben

  • Calling an XSL file in an XSL file

    Hi,
    I'm importing xsl file into xi and uisng it for mapping.
    My query is im using a function in my mapping which is actually present in another xsl file
    how can i call the other xsl file in my present xsl file which is the base file for the mapping

    i'll be a bit more specific
    i'm using
    xsl mapping
    i have 2 map files
    nested_flow.xsl is my main map file
    and substring_flow.xsl is the map file im calling
    <u>nested_floe.xsl:</u>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
      <xsl:include href="substring_flow.xsl" />
    - <xsl:template match="/">
    - <substring_node_input>
    - <InputString>
      <xsl:value-of select="ns0:nested_node_input/Person/LName" />
      </InputString>
      </substring_node_input>
    - <nested_node_output>
    - <Emp>
    - <Innitial>
      <xsl:value-of select="ns0:substring_node_output/OutputString" />
      </Innitial>
      </Emp>
      </nested_node_output>
      </xsl:template>
      </xsl:stylesheet>
    <u>substring_flow.xsl:</u>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
    - <xsl:template match="/">
    - <substring_node_output>
    - <OutputString>
      <xsl:value-of select="substring(ns0:substring_node_input/InputString,0,1)" />
      </OutputString>
      </substring_node_output>
      </xsl:template>
      </xsl:stylesheet>
    im trying to use the substring function present in the second xsl file in the master xsl
    if u can observe the first xsl (nested_flow.xsl)
    i included substring_flow.xsl using the xsl:include and and i tried to map the input to this substring function(Person/LName to InputString) and inturn oputput from substring to the output side field (Output string to Emp/Innitial)
    but when i test the mapping it throws a Transformer error.
    "Transformer configuration exception occurred when loading XSLT"
    I'm importing both the map files in a single zip file into xi. and i'm using the master xsl file(nested_flow.xsl) in the interface mapping where it is reqd to specify the mapping.
    Message was edited by: Sidharth Velagapudi
    Message was edited by: Sidharth Velagapudi

  • Xsl:include return incorrect base url

    I am using FOP to generate PDF file in servlet.
              I have 2 stylesheets (e.g. a.xsl and b.xsl), they are located in <myapplication>\webapp\application\stylesheet.
              In a.xsl, it includes b.xsl:
              <xsl:include href="a.xsl"/>
              When I test the stylesheet in the command line (dos prompt), it runs fine. However, when I run it in weblogic (6.0), there is an error:
              org.xml.sax.SAXParseException: File "file://C:/bea/wlserver6.0/b.xsl" not found.
              The base url for b.xsl should be the same as a.url. I believe there is a bug in weblogic, isn't?
              Is there anyone who knows how to resolve this exception?
              Thanks.
              - Christina
              

    'set' is a reserved word. So is your column 'values'. Always avoid using reserved words.
    MySQL :: MySQL 5.5 Reference Manual :: 9.3 Reserved Words

  • Xsl:include from classpath

    We are using the XML SDK for Java. We've being trying to use the <xsl:include> tag to include stylesheets with header and footer templates into other stylesheets.
    I get the following error when I try to parse the stylesheet with my xml at run time on the server using the XMLProcessor class:
    XSL-1002: Error while processing include XSL file (no protocol: /common.xsl)
    The only way we can get the <xsl:include> to work is to use the fully qualified URL. For example:
    <xsl:include href="http://localhost/common.xsl"/>.
    Does anybody know how to get the processor to include using the classpath rather than making another request to the web server?
    null

    The transformer won't search the classpath, because that isn't an XSLT concept. If you want your program to control where an xsl:included document is to be loaded from, then you need to write a class that implements URIResolver and set your TransformerFactory to use it. You'd do that like this:SAXTransformerFactory factory = (SAXTransformerFactory) TransformerFactory.newInstance();
    factory.setURIResolver(new BasicURIResolver());(That's an example from code that I wrote.) That class that implements URIResolver simply has to take the href that it's given and do its own classpath search, like this:private static class BasicURIResolver implements URIResolver {
       * @see URIResolver#resolve(String, String)
      public Source resolve(String href, String base) throws TransformerException {
        String url = // some calculation from its parameters
        InputStream is = this.getClass().getResourceAsStream(url);
        return new StreamSource(is);
    }The "resolve" method will be called for every xsl:include, and I had to do some debugging to see what actually gets passed in its parameters. If you want the regular processing to take place instead of your own classpath search then I believe you can return null.
    You might want to invent your own convention, e.g. <xsl:include href="cp://myXSL.xsl"/>, to distinguish those XSLs for which you want to search the classpath.
    By the way, I believe the default, if you don't specify any path information at all, is for the transformer to search in the same directory as the containing XSL.
    PC&#178;

  • XSL Include

    When using XSL Include, is it possible to include HTML files as well? I would like to have a common footer on all of my xsl stylesheets and was hoping xsl-include would do the trick. It will bring in the text, but it strips all the <> tags and leaves me with just plain text. Is there something I can do to the include file to preserve all the HTML tags upon inclusion via xsl-include?

    What you can do is:
    1. Create named templates for
    "header" and "footer".
    2. Put these templates in an .xsl file
    called common.xsl
    3. <xsl:include href="common.xsl"/>
    in the stylesheet where you want
    to use the common header and
    footer.
    4. Add <xsl:call-template name="header"/>
    and <xsl:call-template name="footer"/>
    at the appropriate places in your
    new stylesheet.

  • Public Site Manager - GIF files

    It appears the PSM will only accept JPG or PNG files for album art. Since our current site uses GIF file in many feeds, I assume I'll have to convert all to a supported format. Question: Do I also have to manually replace each image that was manually uploaded to our iTunes U site?
    Or will the new PSM pull all images from rss feeds and trash any manually uploaded images from our old iTunes U site?
    thanks

    Found the answer
    http://deimos.apple.com/rsrc/doc/UsingiTunesUPublicSiteManager/CommonQuestions/c hapter14_section4.html
    iTunes U Public Site Manager copies course images from your original course pages, *except for feed groups*, and displays the images in your new collection pages as collection art. For collections created from a feed group in your original site, include image details within the feed itself. iTunes U Public Site Manager uses elements within the feed to populate your collection page.
    Message was edited by: rsb123
    Message was edited by: rsb123

Maybe you are looking for

  • Images won't embed to pdf

    I've recently upgraded from CS6 to CC. I create various marketing pieces that we send out to our printer and every file I create now no longer embedds images. You can view the pdf fine between machines but the embedded image that the printer needs se

  • Is it possible to duplicate (new and existing) events and paste them into a new calendar automatically?

    I have four google calendars connected to my mac via CalDav, and i need to have all the events in all those four calendars into a new one also in google calendar. So, i want to know if it is possible to configure an automator action or an applescript

  • Registry writing right before shutdown fails

    Hi, In my NDIS driver code I am trying to write a parameter to the registry (using NdisWriteConfiguration and then I call NdisCloseConfiguration). Usually it works fine, but when I do that just before shutdown the registry is not updated. Can you ple

  • Flash Active Content Update extension

    I am using flash for advertising, and I usually link to the customers page by this: on (release) { getURL(clickTag, "blank"); and in the script to publish the flash is this: <PARAM NAME=movie VALUE=" http://www.somesite.no/flash.swf?clickTag=http://w

  • Streaming iTunes through AirPort Extreme

    I did all the research into Extreme versus Express. I decided to buy the Extreme because there were more options for expansion. Immediately after purchasing it, I realized that I didn't see anywhere that the Extreme allows for streaming music from iT