1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-01 14:06:55 +03:00
Files
libxslt/tests/xmlspec/REC-xml-2e.xsl
Daniel Veillard 1a3df8fbed The XML Rec formatting test starts looking okay, also added
apply-imports support:
- FEATURES libxslt/imports.h libxslt/pattern.[ch]
  libxslt/xsltInternals.h libxslt/transform.[ch]
  libxslt/templates.c libxslt/xslt.c:
  Added apply-imports, keep a stack of running templates
- libxslt/xsltutils.c: bugfixes, gather the output informations
  down the cascade
- tests/xmlspec/Makefile.am tests/xmlspec/REC-xml-2e.xsl
  tests/xmlspec/diffspec.xsl tests/xmlspec/xmlspec.xsl: running
  the real set of transformation on XML-1.0 2e generages a near
  perfect HTML. Needs just more number fixes and implementation
  and an obscure problem in 3.3.3
Daniel
2001-02-14 14:45:10 +00:00

32 lines
670 B
XML

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="diffspec.xsl"/>
<xsl:template match="loc[@role='erratumref']">
<xsl:choose>
<xsl:when test="$show.diff.markup='0'">
<!-- nop -->
</xsl:when>
<xsl:otherwise>
<xsl:apply-imports/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="loc[@role='erratumref']" mode="text">
<xsl:choose>
<xsl:when test="$show.diff.markup='0'">
<!-- nop -->
</xsl:when>
<xsl:otherwise>
<xsl:apply-imports/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>