Web Development

General discussion


Page layout with a style sheet

By dennisbv ·
I am using Microsoft Log parser to pull out certain events from my event logs and the setup I decided to use and works great except for one thing. It will parse the records I want and displays them in an XML file that is linked to a style sheet. The problem is that when I print the report it will only print portrait and I miss some of the info (it displays correctly) How do control the page set up? here is the style sheet that I used from the documentation.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<xsl:for-each select="ROOT">
<HEAD><TITLE><xsl:value-of select="@CREATED_BY"/> Generated Log</TITLE></HEAD>
<BODY style="page-orientation:landscape">

<CENTER><H1><xsl:value-of select="@CREATED_BY"/> Generated Log</H1></CENTER>
<CENTER><H2>Generated on <xsl:value-of select="@DATE_CREATED"/></H2></CENTER>

<xsl:apply-templates select="ROW"/>


<xsl:template match="ROW">
<xsl:for-each select="*">
<xsl:value-of select="."/>


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Related Discussions

Related Forums