Question about xslt-parser in Linux

M

mountain1228

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
 
M

Manuel Collado

mountain1228 said:
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
 

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
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top