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. Advertisements

  2. 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. Advertisements

  3. With <xsl:processing-instruction/>.

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

    Ciao,
    Igor
     
    Igor Zlatkovic, Jul 4, 2004
    #3
  4. =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=, Jul 4, 2004
    #4
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.