FYI, I'm using XSL FO.
I have templates for each element that I will be displaying. What I want to do is prevent all of the elements I do not use (but that do exist in the document) from being displayed.
I tried the following but I get a blank document:
And:
I would think that first one would catch ALL elements that were not already handled by the defined [tt]<xsl:template />[/tt]s.
I am also importing external stylesheets like so:
You'll notice that there is a [tt]hidden.xsl[/tt] stylesheet. That's the one that for now that has all of the "manually" hidden elements.
I tried changing the imports to includes and also tried changing just the hidden one to include.
---------------------------------------
TINSTAAFL, which is why I contribute.
I have templates for each element that I will be displaying. What I want to do is prevent all of the elements I do not use (but that do exist in the document) from being displayed.
I tried the following but I get a blank document:
Code:
<xsl:template match="*" />
And:
Code:
<xsl:template match="*" priority="2" />
I would think that first one would catch ALL elements that were not already handled by the defined [tt]<xsl:template />[/tt]s.
I am also importing external stylesheets like so:
Code:
<!-- Import Page Layout -->
<xsl:import href="page.xsl" />
<!-- Import Common -->
<xsl:import href="common.xsl" />
<!-- Import Hidden -->
<xsl:import href="hidden.xsl" />
<!-- Import Information -->
<xsl:import href="information.xsl" />
<!-- Import Authors -->
<xsl:import href="authors.xsl" />
<!-- Import Reviewers -->
<xsl:import href="reviewers.xsl" />
<!-- Import Editors -->
<xsl:import href="editors.xsl" />
<!-- Import Sections -->
<xsl:import href="sections.xsl" />
<!-- Import References -->
<xsl:import href="references.xsl" />
You'll notice that there is a [tt]hidden.xsl[/tt] stylesheet. That's the one that for now that has all of the "manually" hidden elements.
I tried changing the imports to includes and also tried changing just the hidden one to include.
---------------------------------------
TINSTAAFL, which is why I contribute.