Stylesheet referanse i stylesheet

Discussion in 'XML' started by =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=, Jul 3, 2004.

  1. Jeg skal ha en referanse til et stylesheet(xsl) i en xml fil, altså:
    <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>

    Problemet er at xml fila genereres av en annen xsl fil. Hvordan setter
    man inn et stylesheet referanse i en xml fil ved hjelp av xsl blir da
    spørsmålet..jeg får bare feilmelding på "?".

    Jørn T
    =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=, Jul 3, 2004
    #1
    1. Advertising

  2. Jørn Tommy Kinderås <> wrote:

    Wops, wrong langauge.

    --In english---
    I'm generating a xml file with a xsl stylesheet. However the generated
    xml should contain a reference to a xsl file, like:
    <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>

    But how does one crate this reference within a xsl stylesheet?

    Jørn T
    =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=, Jul 3, 2004
    #2
    1. Advertising

  3. Jørn Tommy Kinderås wrote:
    > Jørn Tommy Kinderås <> wrote:
    >
    > Wops, wrong langauge.
    >
    > --In english---
    > I'm generating a xml file with a xsl stylesheet. However the generated
    > xml should contain a reference to a xsl file, like:
    > <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>
    >
    > But how does one crate this reference within a xsl stylesheet?
    >
    > Jørn T


    With <xsl:processing-instruction/>.

    http://www.w3.org/TR/xslt#element-processing-instruction

    Ciao,
    Igor
    Igor Zlatkovic, Jul 4, 2004
    #3
  4. Igor Zlatkovic <> wrote:

    > Jørn Tommy Kinderås wrote:
    > > Jørn Tommy Kinderås <> wrote:
    > >
    > > Wops, wrong langauge.
    > >
    > > --In english---
    > > I'm generating a xml file with a xsl stylesheet. However the generated
    > > xml should contain a reference to a xsl file, like:
    > > <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>
    > >
    > > But how does one crate this reference within a xsl stylesheet?
    > >
    > > Jørn T

    >
    > With <xsl:processing-instruction/>.
    >
    > http://www.w3.org/TR/xslt#element-processing-instruction
    >

    Thanks.

    JT
    =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=, Jul 4, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Uli

    stylesheet question

    Uli, Jul 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    334
  2. Valerian John

    Changing stylesheet

    Valerian John, Aug 22, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    403
    Jerry III
    Aug 22, 2003
  3. Steven An
    Replies:
    1
    Views:
    499
    Martin Honnen
    Nov 23, 2004
  4. David Blickstein
    Replies:
    3
    Views:
    1,037
    David Blickstein
    Aug 2, 2005
  5. David Blickstein
    Replies:
    14
    Views:
    6,327
    Harrie
    Oct 16, 2005
Loading...

Share This Page