473,406 Members | 2,745 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,406 software developers and data experts.

Question about xslt-parser in Linux

Hello,

I apoligize in advance if this post is off-topic in this group.

I have been converting xml to html with an xslt stylesheet using the
program xslt-parser that comes with RH 7.3.

The output mirrors that in the xslt file. The only exception are the
first two lines of each file I convert to html.

Every file that is converted from xml to html using xslt has the first
2 line as:

Content-Type: text.xml
Content-Length: (some integer)

I want to remove the above two lines. Does anybody know who to do
this?

I use the below command line script to convert an xml file to html
using xslt.

bash-2.05a$ xslt-parser -s test.xsl test.xml > test.html

Any help or guidance will be appreciated.

TIA

James
Jul 20 '05 #1
1 1986
mountain1228 wrote:
Hello,

I apoligize in advance if this post is off-topic in this group.

I have been converting xml to html with an xslt stylesheet using the
program xslt-parser that comes with RH 7.3.

The output mirrors that in the xslt file. The only exception are the
first two lines of each file I convert to html.

Every file that is converted from xml to html using xslt has the first
2 line as:

Content-Type: text.xml
Content-Length: (some integer)

I want to remove the above two lines. Does anybody know who to do
this?

I use the below command line script to convert an xml file to html
using xslt.

bash-2.05a$ xslt-parser -s test.xsl test.xml > test.html

Any help or guidance will be appreciated.


Try to use xsltproc:

bash-2.05a$ xsltproc test.xsl test.xml > test.html

--
To reply by e-mail, please remove the extra dot
in the given address: m.collado -> mcollado

Jul 20 '05 #2

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

Similar topics

3
by: Justine Hlista | last post by:
I'm using xalan-j_2_6_0 and trying to get an example from Michael Kay's book to work: <xsl:template match="/"> <xsl:variable name="rainbow"> <color>red</color> <color>blue</color>...
3
by: Phil | last post by:
Hi everybody, I am a XSLT beginner and the following problem really makes me crazy ! I have a main "contacts.xml" document which contains references to several contact data XML files. My aim...
9
by: Weekend | last post by:
Currently, i want to develope a multiple choice exam website. The content of the test is store in an XML file. I want to carry out some function. Could you tell me which programming language should...
5
by: dennis | last post by:
Hi, First of all, hi to you all. I'm working on a Delphi project wich is becoming near it's deadline. I have a very simple XSLT question wich i hope one of you folks can help me with? The...
4
by: RJN | last post by:
Hi Pardon me for posting an XML question here. Can XSLT be applied for transforming .txt files or are they applicable only for xml to xml transformation. Currently all the clients send file...
4
by: gabo22003 | last post by:
Hello, I need to write html "templates" for a web application. Basically I am displaying items on a website where I may or may not have 3 pieces of information, that being: color, size and mft....
18
by: yinglcs | last post by:
Hi, I have a newbie XSLT question. I have the following xml, and I would like to find out the children of feature element in each 'features' element. i.e. for each <featuresI would like to...
2
by: 张韡武 | last post by:
We have preffered language set as variable in xslt: <xsl:variable name="preferred_language"> zh </xsl:variable> Data: <name xml:lang="de">Raw Materials (Mining incl.)</name> <name...
14
by: Lee | last post by:
I have a xml file, here is sample part: <?xml version="1.0" encoding="UTF-8"?> <ProducsList> <Product id="1"> <SpecList> <Spec> <SpecLabel>Height</SpecLabel> <SpecValue>10</SpecValue>...
2
by: astroboiii | last post by:
New to the whole xml thing and finding w3schools to be an excellent resource. Now down to my question: I have several xml files I need to parse through and grab relevant information from and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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,...
0
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,...
0
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...

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.