Stylesheet referanse i stylesheet

Joined
Jun 20, 2004
Messages
8
Reaction score
0
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
 
Joined
Jun 20, 2004
Messages
8
Reaction score
0
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
 

Igor Zlatkovic

Usenet Archive
Joined
Jun 30, 2004
Messages
5
Reaction score
0
Jørn Tommy Kinderås said:
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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top