473,503 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSL, XSLT frustration

Hello Readers

I need a solution stylesheet that will transform XML to XML. However I
want the stylesheet to output a complete stylesheet tag too i.e. <?
xsl:stylesheet version..... ? to the resultant XML document.
Any ideas please? I hope Ihave explained it all well enough.
Thank you
BB
Aug 12 '08 #1
4 1222

Uzytkownik "Badbetty" <bc*@genie.co.uknapisal w wiadomosci
news:52**********************************@x41g2000 hsb.googlegroups.com...
I need a solution stylesheet that will transform XML to XML. However I
want the stylesheet to output a complete stylesheet tag too i.e. <?
xsl:stylesheet version..... ? to the resultant XML document.
Any ideas please? I hope Ihave explained it all well enough.
Thank you
BB
show us what you tried to do. what problem exactly you have?
--
td
Aug 14 '08 #2
Badbetty wrote:
Hello Readers

I need a solution stylesheet that will transform XML to XML. However I
want the stylesheet to output a complete stylesheet tag too i.e. <?
xsl:stylesheet version..... ? to the resultant XML document.
Any ideas please? I hope Ihave explained it all well enough.
Thank you
BB
I expect you want the <xsl:pi>...</xsl:pielement.

Putting a stylesheet 'processing instruction' (not the same as an
opening tag) into the XML is not something I would do myself. I
prefer to allow for different outputs from the same source.
Aug 15 '08 #3
Ken Starks wrote:
Badbetty wrote:
>Hello Readers

I need a solution stylesheet that will transform XML to XML. However I
want the stylesheet to output a complete stylesheet tag too i.e. <?
xsl:stylesheet version..... ? to the resultant XML document.
Any ideas please? I hope Ihave explained it all well enough.
Thank you
BB
I expect you want the <xsl:pi>...</xsl:pielement.

Putting a stylesheet 'processing instruction' (not the same as an
opening tag) into the XML is not something I would do myself. I
prefer to allow for different outputs from the same source.
If you are controlling the document generation, then you will continue
to allow for this. Adding a stylesheet PI is simply a way to recommend
to the downstream user "if you want to see this the way I suggest, use
this stylesheet". You may in many cases be dealing with users who would
have no clue what to do with an XML file and may just blindly open it in
a browser, expecting it to do something meaningful...

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Aug 17 '08 #4
Peter Flynn wrote:
Ken Starks wrote:
>Badbetty wrote:
>>Hello Readers

I need a solution stylesheet that will transform XML to XML. However I
want the stylesheet to output a complete stylesheet tag too i.e. <?
xsl:stylesheet version..... ? to the resultant XML document.
Any ideas please? I hope Ihave explained it all well enough.
Thank you
BB
I expect you want the <xsl:pi>...</xsl:pielement.

Putting a stylesheet 'processing instruction' (not the same as an
opening tag) into the XML is not something I would do myself. I
prefer to allow for different outputs from the same source.

If you are controlling the document generation, then you will continue
to allow for this. Adding a stylesheet PI is simply a way to recommend
to the downstream user "if you want to see this the way I suggest, use
this stylesheet". You may in many cases be dealing with users who would
have no clue what to do with an XML file and may just blindly open it in
a browser, expecting it to do something meaningful...

///Peter
Thanks Peter. Yes, I thought of this about five minutes after sending
my response. I realised that I include a stylesheet PI quite regularly
in work for a charitable organisation sometimes work for.

They do indeed use the filing system not a server, and just click on it.
Aug 17 '08 #5

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

Similar topics

10
11028
by: Frog | last post by:
Hi, i'm not a programmer so I have a very stupid question. I'm trying to make a practical script. I need to run an executable program in it but i can't get it to work. Maybe someone here can...
2
5196
by: Iain Toft | last post by:
I'm having problems displaying the ? euro dollar sign in XML produced from an XSL transform. SQL Server 2000 is used to produce XML (SELECT .. FOR XML) from a database table containing data. The...
2
3883
by: ted | last post by:
Was wondering if XSLT alone is appropriate for the following situation. From XML, I'm creating a small website (around 50 pages) with pages that link to each other through a nav menu and a...
2
2773
by: Tom Corcoran | last post by:
I am working to ease updating of a html page by transforming 2 xml files. I was going to use xslt for this and had bought 2 unopened books, wrox xslt and o'reilly's xslt cookbook. But am now...
1
3577
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by...
3
2181
by: Teksure | last post by:
Hi group, searching in the Internet I found two products for XML which incorporate a very robust debugger for XSL/XSLT, I would like you to see these products and then, give me your opinion about...
3
3071
by: Ian Roddis | last post by:
Hello, I want to embed SQL type queries within an XML data record. The XML looks something like this: <DISPLAYPAGE> <FIELD NAME="SERVER" TYPE="DROPDOWN"> <OPTION>1<OPTION> <OPTION>2<OPTION>...
1
2390
by: Sergey Dubinets | last post by:
In effort to prioritize our goals we composed the list of random features each of them may add value to set of XSLT tools offered from Microsoft. 1. XSLTc (Compiler for XSLT...
12
11550
by: Chris | last post by:
Hi, Just wondering if anyone out there knows if it is possible to convert a CSV to xml using XSLT? I've seen a lot of examples of xml to CSV, but is it possible to go back the other way? I...
2
22748
jkmyoung
by: jkmyoung | last post by:
Here's a short list of useful xslt general tricks that aren't taught at w3schools. Attribute Value Template Official W3C explanation and example This is when you want to put dynamic values...
0
7205
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
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.