public class EmptySource
extends java.lang.Object
implements javax.xml.transform.Source
EmptySource
for example if a URI is not accessible; the effect
is that the call on doc() or document() returns an empty sequence. This may
be useful to emulate the behaviour of earlier versions of XSLT.
The class is a singleton marker class.
See also bug 4752.
Modifier and Type | Method and Description |
---|---|
static EmptySource |
getInstance() |
java.lang.String |
getSystemId()
Get the system identifier that was set with setSystemId.
|
void |
setSystemId(java.lang.String systemId)
Set the system identifier for this Source.
|
public static EmptySource getInstance()
public void setSystemId(java.lang.String systemId)
setSystemId
in interface javax.xml.transform.Source
systemId
- The system identifier as a URL string.public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Source
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.