dbertoni 2002/12/20 16:21:47
Modified: c/src/XSLT KeyDeclaration.hpp
Log:
Added information from Locator.
Revision Changes Path
1.11 +62 -10 xml-xalan/c/src/XSLT/KeyDeclaration.hpp
Index: KeyDeclaration.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/KeyDeclaration.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- KeyDeclaration.hpp 25 Nov 2002 18:11:52 -0000 1.10
+++ KeyDeclaration.hpp 21 Dec 2002 00:21:47 -0000 1.11
@@ -68,6 +68,10 @@
+#include <PlatformSupport/XalanLocator.hpp>
+
+
+
class XPath;
@@ -82,17 +86,23 @@
/**
* Construct an object containing attributes of an "xsl:key" element
*
- * @param qname name of element
+ * @param qname name of element
* @param matchPattern XPath for "match" attribute
- * @paramuse XPath for "use" attribute
+ * @param use XPath for "use" attribute
*/
KeyDeclaration(
- const XalanQName& qname,
- const XPath& matchPattern,
- const XPath& use) :
+ const XalanQName& qname,
+ const XPath& matchPattern,
+ const XPath& use,
+ const XalanDOMString& uri,
+ XalanLocator::size_type lineNumber,
+ XalanLocator::size_type columnNumber) :
m_qname(&qname),
m_match(&matchPattern),
- m_use(&use)
+ m_use(&use),
+ m_uri(&uri),
+ m_lineNumber(lineNumber),
+ m_columnNumber(columnNumber)
{
}
@@ -100,7 +110,10 @@
KeyDeclaration() :
m_qname(0),
m_match(0),
- m_use(0)
+ m_use(0),
+ m_uri(0),
+ m_lineNumber(0),
+ m_columnNumber(0)
{
}
@@ -148,13 +161,52 @@
return m_match;
}
+ /**
+ * Retrieves the URI.
+ *
+ * @return A pointer to a URI string.
+ */
+ const XalanDOMString*
+ getURI() const
+ {
+ return m_uri;
+ }
+
+ /**
+ * Retrieves the line number where the xsl:key element occurred.
+ *
+ * @return The line number
+ */
+ XalanLocator::size_type
+ getLineNumber() const
+ {
+ return m_lineNumber;
+ }
+
+ /**
+ * Retrieves the column number where the xsl:key element occurred.
+ *
+ * @return The column number
+ */
+ XalanLocator::size_type
+ getColumnNumber() const
+ {
+ return m_columnNumber;
+ }
+
private:
- const XalanQName* m_qname;
+ const XalanQName* m_qname;
+
+ const XPath* m_match;
+
+ const XPath* m_use;
+
+ const XalanDOMString* m_uri;
- const XPath* m_match;
+ XalanLocator::size_type m_lineNumber;
- const XPath* m_use;
+ XalanLocator::size_type m_columnNumber;
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]