<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-guide.
</pre>
<p><a href="https://github.com/macports/macports-guide/commit/b651f0b0119b1d5dd53729bf039ecda9bf82bf43">https://github.com/macports/macports-guide/commit/b651f0b0119b1d5dd53729bf039ecda9bf82bf43</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b651f0b0119b1d5dd53729bf039ecda9bf82bf43
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Wed Nov 16 22:14:43 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> Use processing instruction for macro-param
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Although it would compile, using a custom tag throws errors when
</span><span style='display:block; white-space:pre;color:#404040;'> validating against the Docbook DTD.
</span>---
guide/resources/base.xsl | 4 ++--
guide/xml/macros.xml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/guide/resources/base.xsl b/guide/resources/base.xsl
</span><span style='display:block; white-space:pre;color:#808080;'>index 2fc0750..c2e657f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/guide/resources/base.xsl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/guide/resources/base.xsl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,8 +42,8 @@
</span> </xsl:template>
<!-- replace macro-param with value -->
<span style='display:block; white-space:pre;background:#ffe0e0;'>- <xsl:template match="macro-param" mode="macro-replace">
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <xsl:variable name="name" select="@name" />
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <xsl:template match="processing-instruction('macro-param')" mode="macro-replace">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <xsl:variable name="name" select="substring-before(substring-after(., 'name="'), '"')" />
</span> <xsl:copy-of select="following::macro-with-param[@name = $name]/text()" />
</xsl:template>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/guide/xml/macros.xml b/guide/xml/macros.xml
</span><span style='display:block; white-space:pre;color:#808080;'>index 98d1d8a..4638317 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/guide/xml/macros.xml
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/guide/xml/macros.xml
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@
</span> <section id='macros'>
<warning role='macro-outdated'><para>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- This section is outdated <macro-param name="reason" /> and needs to be reworked.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ This section is outdated <?macro-param name="reason" ?> and needs to be reworked.
</span> Please see <xref linkend="project.docs" /> if you can contribute updated instructions.
</para></warning>
</pre><pre style='margin:0'>
</pre>