473,385 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Stylesheet referanse i stylesheet

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
Jul 20 '05 #1
3 1404
Jørn Tommy Kinderås <jo****@idi.ntnu.no.invalid> 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
Jul 20 '05 #2
Jørn Tommy Kinderås wrote:
Jørn Tommy Kinderås <jo****@idi.ntnu.no.invalid> 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-pr...ng-instruction

Ciao,
Igor
Jul 20 '05 #3
Igor Zlatkovic <ig**@zlatkovic.com> wrote:
Jørn Tommy Kinderås wrote:
Jørn Tommy Kinderås <jo****@idi.ntnu.no.invalid> 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-pr...ng-instruction

Thanks.

JT
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sarah Haskins | last post by:
I have a few questions about this problem I'm having involving XML, DTD, and XSL. I'm working with this DTD which defines a stylesheet, as such... <?xml version="1.0" encoding="UTF-8"?>...
1
by: Steven An | last post by:
I'm gonna describe the situation I'm dealing with..but if you're not interested, just skip to the last line where I bluntly ask my question :) Here's my scenario: I've got a huge website that...
4
by: Catherine Lynn Smith | last post by:
OK, I am learning my way around the new DOM, but I am still at a loss on finding a few things. I have an HTML document that links to a stylesheet. /* START STYLESHEET EXAMPLE */ /*...
5
by: David Trimboli | last post by:
I'm writing HTML 4.01 and CSS 2 pages that include a CSS-driven pop-up menu. What I'm trying to do is create a screen style that uses the menu, links, etc. normally, and a print style that removes...
7
by: pintihar | last post by:
Hi, As a follow on from an earlier post I have another question about xslt. Is it possible to create the stylsheet programatically? Is this sensible? In the first phase I needed to map element...
0
by: barney.b | last post by:
Hi, I'm trying to pre-process an XSL stylesheet with another stylesheet, before using the result to transform an XML document. i.e.: stylesheet(xsl) --> preprocessor(xsl) --> temp(xsl)...
0
by: hq4000 | last post by:
Given AStyleSheet.xsl : <AStyleSheet> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.mytest.mytest2.mytest3.com" version="1.0"> <xsl:output method="xml"...
3
by: gdelfino | last post by:
I have an XML file which I transform into XHTML using stylesheetA.xsl. I also have stylesheetB.xsl which transforms my XML file into an Excel XML document. As both Excel and most new browsers...
1
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.