grim/purple-objects-docbook

Parents db3d1d037da5
Children 2a53897c7904
updated enum.xsl to support the use of << in a value for flags values and updated blistnodeflags.enum to use it
--- a/graphs/blistnodeflags.enum Mon May 06 03:10:52 2013 -0500
+++ b/graphs/blistnodeflags.enum Mon May 06 21:55:56 2013 -0500
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<enumeration name="PurpleBlistNodeFlags">
- <item name="PURPLE_BLIST_NODE_FLAG_NO_SAVE" value="1"/>
+ <item name="PURPLE_BLIST_NODE_FLAG_NO_SAVE" value="1 &lt;&lt; 0"/>
</enumeration>
--- a/sheets/enum.xsl Mon May 06 03:10:52 2013 -0500
+++ b/sheets/enum.xsl Mon May 06 21:55:56 2013 -0500
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings"
+>
<xsl:import href="common.xsl"/>
<!-- main template -->
@@ -25,7 +28,7 @@
<!-- check if we have a value and output it -->
<xsl:if test="@value">
<xsl:text> : </xsl:text>
- <xsl:value-of select="@value"/>
+ <xsl:value-of select="str:replace(@value, '&lt;', '\&lt;')"/>
</xsl:if>
<!-- left align the item -->