[yelp-xsl] Print full QName for unmatched elements.



commit 9fc79e25c5e1d3fc58dadb04ad0437268f1901b9
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date:   Sat Mar 6 00:32:58 2010 +0000

    Print full QName for unmatched elements.
    
    Since the stylesheets now need to handle namespaced elements, print the full
    QName so we can tell to what namespace unmatched elements belong.
    
    Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>

 xslt/docbook/html/db2html.xsl  |    2 +-
 xslt/docbook/html/db2xhtml.xsl |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xslt/docbook/html/db2html.xsl b/xslt/docbook/html/db2html.xsl
index 855a890..842de35 100644
--- a/xslt/docbook/html/db2html.xsl
+++ b/xslt/docbook/html/db2html.xsl
@@ -80,7 +80,7 @@ DocBook to HTML
 <xsl:template match="*">
   <xsl:message>
     <xsl:text>Unmatched element: </xsl:text>
-    <xsl:value-of select="local-name(.)"/>
+    <xsl:value-of select="name(.)"/>
   </xsl:message>
   <xsl:apply-templates select="node()"/>
 </xsl:template>
diff --git a/xslt/docbook/html/db2xhtml.xsl b/xslt/docbook/html/db2xhtml.xsl
index cd76726..387491d 100644
--- a/xslt/docbook/html/db2xhtml.xsl
+++ b/xslt/docbook/html/db2xhtml.xsl
@@ -79,7 +79,7 @@ DocBook to XHTML
 <xsl:template match="*">
   <xsl:message>
     <xsl:text>Unmatched element: </xsl:text>
-    <xsl:value-of select="local-name(.)"/>
+    <xsl:value-of select="name(.)"/>
   </xsl:message>
   <xsl:apply-templates select="node()"/>
 </xsl:template>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]