public class KeyTable extends Object
Constructor and Description |
---|
KeyTable(int doc,
PrefixResolver nscontext,
QName name,
Vector keyDeclarations,
XPathContext xctxt)
Build a keys table.
|
Modifier and Type | Method and Description |
---|---|
int |
getDocKey()
Get the document root matching this key.
|
QName |
getKeyTableName()
Get Key Name for this KeyTable
|
XNodeSet |
getNodeSetDTMByKey(QName name,
XMLString ref)
Given a valid element key, return the corresponding node list.
|
public KeyTable(int doc, PrefixResolver nscontext, QName name, Vector keyDeclarations, XPathContext xctxt) throws TransformerException
doc
- The owner document key.nscontext
- The stylesheet's namespace context.name
- The key namekeyDeclarations
- The stylesheet's xsl:key declarations.TransformerException
public int getDocKey()
public XNodeSet getNodeSetDTMByKey(QName name, XMLString ref)
name
- The name of the key, which must match the 'name' attribute on xsl:key.ref
- The value that must match the value found by the 'match' attribute on xsl:key.name
and the reference ref
. If no node is referenced by this key, an empty node set is returned.public QName getKeyTableName()
Copyright © 2021 JBoss by Red Hat. All rights reserved.