mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-09-17 03:22:14 +03:00
* libxslt/transform.c libxslt/xslt.c libxslt/xsltInternals.h: fixed exclude-result-prefixes handling and how namespaces propagate from the stylesheet to the result in general, this is a serious cleanup. * tests/general/bug-3[67]-inc.xsl tests/general/bug-6-.xsl tests/general/itemschoose.out tests/namespaces/extra.xsl tests/REC/test-10-1.xsl tests/REC/test-10-2.xsl tests/REC/test-11.2-1.xsl tests/REC/test-11.2-2.xsl tests/REC/test-11.2-6.xsl tests/REC/test-15-1.xsl tests/REC/test-16.1-1.xsl tests/REC/test-16.1-2.xsl tests/REC/test-5.4-1.out tests/REC/test-5.4-2.out tests/REC/test-5.4-3.out tests/REC/test-5.4-4.out tests/REC/test-7.1.1-2.out tests/REC/test-7.1.1-2.xsl tests/REC/test-7.1.1-3.out tests/REC/test-7.1.1-3.xsl tests/REC/test-7.1.1.out tests/REC/test-7.1.3.xsl tests/REC/test-7.3.xsl tests/REC/test-7.4.xsl tests/REC/test-7.6.1-1.xsl tests/REC/test-7.6.1-2.xsl tests/REC/test-7.6.1-3.xsl tests/REC/test-7.6.2-1.xsl: fixed and rechecked all the tests where the namespace propagation was wrong either taht the rules were not applied correctly or that superfluous namespaces were declared in the stylesheets Daniel
33 lines
742 B
XML
33 lines
742 B
XML
<?xml version= "1.0"?>
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:my="http://my/namespace"
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
exclude-result-prefixes="my">
|
|
|
|
<!-- Root Node -->
|
|
<xsl:template match="/">
|
|
<html>
|
|
<head>
|
|
<title><xsl:value-of select="my:document/my:name"/></title>
|
|
</head>
|
|
<xsl:apply-templates/>
|
|
</html>
|
|
</xsl:template>
|
|
|
|
<!-- Header and Body for the Document -->
|
|
<xsl:template match="my:document">
|
|
<body>
|
|
<h1><xsl:value-of select="my:name"/></h1>
|
|
<xsl:apply-templates/>
|
|
<hr/>
|
|
</body>
|
|
</xsl:template>
|
|
|
|
<!--Don't display name-->
|
|
<xsl:template match="my:name">
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|