D
danmc91
I have a set of xml files and a .xsl file which I use to produce html
output. However, I want 2 versions of each html file. In one version,
I want the whole thing. In the second version I only want whats
inclosed by the <body> tag.
So, I tried defining a parameter which I can override on the command
line and doing something like:
<xsl:if test="$header = 'yes'">
<html>
<head>
<!--head stuff here-->
</head>
<body>
</xsl:if>
and a similar thing at the end for the closing body and html tags.
However xsltproc does not like this since I've wrapped the opening tags
and closing tags in their own if's.
Any suggestions on how to deal with this without resorting to some
awk/sed hacks?
Thanks
-Dan
output. However, I want 2 versions of each html file. In one version,
I want the whole thing. In the second version I only want whats
inclosed by the <body> tag.
So, I tried defining a parameter which I can override on the command
line and doing something like:
<xsl:if test="$header = 'yes'">
<html>
<head>
<!--head stuff here-->
</head>
<body>
</xsl:if>
and a similar thing at the end for the closing body and html tags.
However xsltproc does not like this since I've wrapped the opening tags
and closing tags in their own if's.
Any suggestions on how to deal with this without resorting to some
awk/sed hacks?
Thanks
-Dan