FileDocCategorySizeDatePackage
FuncUnparsedEntityURI.javaAPI DocJava SE 5 API1639Fri Aug 26 14:56:08 BST 2005com.sun.org.apache.xpath.internal.functions

FuncUnparsedEntityURI

public class FuncUnparsedEntityURI extends FunctionOneArg
xsl.usage
advanced

Fields Summary
Constructors Summary
Methods Summary
public com.sun.org.apache.xpath.internal.objects.XObjectexecute(com.sun.org.apache.xpath.internal.XPathContext xctxt)
Execute the function. The function must return a valid object.

param
xctxt The current execution context.
return
A valid XObject.
throws
javax.xml.transform.TransformerException


    String name = m_arg0.execute(xctxt).str();
    int context = xctxt.getCurrentNode();
    DTM dtm = xctxt.getDTM(context);
    int doc = dtm.getDocument();
    
    String uri = dtm.getUnparsedEntityURI(name);

    return new XString(uri);