An SLD stored in workspace can be previewed directly from the style editor as long as the layer is in the same workspace.
If the layer is in a different workspace the SLD-editor preview throws an error :
Code="layer not defined" locator="layers". Could not find layer
Note: the direct layer preview (from the main menu) does not throw this error but works fine
Windows Server 2012
Possibly related to