473,657 Members | 2,680 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 1233

Uzytkownik "Badbetty" <bc*@genie.co.u knapisal w wiadomosci
news:52******** *************** ***********@x41 g2000hsb.google groups.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:styleshe et 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:styleshee t 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
11046
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 figure it out easily: ----- #! /python a = (recipient's e-mail address) pgp -feat a
2
5202
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 euro dollar displays fine in the database table and in the SQL Server generated XML(snippet below) but not in the transformed XML. In fact in this post it will probably appear as a question mark anyway! <transporttype>Vehicle types include...
2
3898
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 "crumb-trail" of links. I'm transforming the XML with XSLT through Saxon. The nav menu and "crumb-trail" show the user where they are within the site and is made by reflecting the XML tree structure. My problem now is that when I want to generate...
2
2789
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 wondering if I am better of learning XQuery instead? Any thought and opinions would be appreciated. Cheers - Tom. The Architect: "Hope, it is the quintessential human delusion,
1
3598
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 version 2 of XSLT processor based on some condition. Q) How and where shall I write logic or import desirable XSLT on the Fly ? Q) When we call AAA.XSLT then it will be processed by XSLT Processor 1
3
2193
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 the development environment or recommend me some other that you know. XML IDE's - http://xslt-process.sourceforge.net - http://www.mentattech.com/themes/mentat/alchemist/index.html Regards,
3
3082
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> <OPTION>3<OPTION> </FIELD>
1
2412
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 stylesheets, that generates .NET assemblies) 2. Performance improvements in the XslCompiledTransform
12
11579
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 don't want to have to use some external program or script to parse the csv first if possible
2
22766
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 in the attribute of an element. Instead of using the <xsl:attribute> element, you can simply place the xpath in the attribute itself. The most common usage of this is in creating hyperlinks.
0
8319
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8837
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8512
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8612
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6175
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2739
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 we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.