problem external graphic && URL with parameters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • curwen

    #1

    problem external graphic && URL with parameters

    Hi,
    I have problem to create a well formed xsl-fo document using images
    dynamically generated from an http request

    using this tag:
    <fo:external-graphic content-type="content-type:image/gif"
    src="controller .jsp?page=test& mode=image" />

    doesn't work (it says a ';' is missing)
    the controller.jsp is sending a gif image to the browser and is
    working fine when called from simple html


    everithing works fine like this:
    <fo:external-graphic content-type="content-type:image/gif"
    src="mydomain.c om/image.gif" />


    any idea?
    thanks in advance
  • Philippe Poulard

    #2
    Re: problem external graphic &amp;&amp; URL with parameters

    curwen wrote:[color=blue]
    > Hi,
    > I have problem to create a well formed xsl-fo document using images
    > dynamically generated from an http request
    >
    > using this tag:
    > <fo:external-graphic content-type="content-type:image/gif"
    > src="controller .jsp?page=test& mode=image" />
    >
    > doesn't work (it says a ';' is missing)
    > the controller.jsp is sending a gif image to the browser and is
    > working fine when called from simple html
    >
    >
    > everithing works fine like this:
    > <fo:external-graphic content-type="content-type:image/gif"
    > src="mydomain.c om/image.gif" />
    >
    >
    > any idea?
    > thanks in advance[/color]

    hi,

    remember that fo is xml
    thus, & must be escaped unless it introduces an entity that ends with ;

    src="controller .jsp?page=test& amp;mode=image"

    --
    Cordialement,

    ///
    (. .)
    -----ooO--(_)--Ooo-----
    | Philippe Poulard |
    -----------------------

    Comment

    • curwen

      #3
      Re: problem external graphic &amp;&amp; URL with parameters

      many thanks!
      I guess what you're thinking: 'what a newby'



      Philippe Poulard <Philippe.Poula rd@sophia.inria .fr> wrote in message news:<bk4fhl$q4 b$1@news-sop.inria.fr>.. .[color=blue]
      > curwen wrote:[color=green]
      > > Hi,
      > > I have problem to create a well formed xsl-fo document using images
      > > dynamically generated from an http request
      > >
      > > using this tag:
      > > <fo:external-graphic content-type="content-type:image/gif"
      > > src="controller .jsp?page=test& mode=image" />
      > >
      > > doesn't work (it says a ';' is missing)
      > > the controller.jsp is sending a gif image to the browser and is
      > > working fine when called from simple html
      > >
      > >
      > > everithing works fine like this:
      > > <fo:external-graphic content-type="content-type:image/gif"
      > > src="mydomain.c om/image.gif" />
      > >
      > >
      > > any idea?
      > > thanks in advance[/color]
      >
      > hi,
      >
      > remember that fo is xml
      > thus, & must be escaped unless it introduces an entity that ends with ;
      >
      > src="controller .jsp?page=test& amp;mode=image"[/color]

      Comment

      Working...