[oXygen-sdk] Resolving of images programatically
Jan Bevers
jbevers at sdl.com
Mon Feb 25 08:57:44 CST 2013
Hi
I'm trying to resolve content using a custom AuthorReferenceResolver.
My code looks like this:
public SAXSource resolveReference(AuthorNode node, String systemId,
AuthorAccess authorAccess, EntityResolver entityResolver) {
String outerXml = "<image href=\"GUID-527A0A8F-D089-438D-A4F7-28C6E999660D\"
/>";
InputSource inputSource = new InputSource();
inputSource.setCharacterStream(new StringReader(outerXml));
XMLReaderWithGrammar resolveXMLReaderWithGrammar =
authorAccess.getXMLUtilAccess().newNonValidatingXMLReader(this._grammarCache)
;
XMLReader reader = resolveXMLReaderWithGrammar.getXmlReader();
return new SAXSource(reader, inputSource);
}
If this gets executed my image element is not resolved. Is there anyway on
forcing this?
Thanks
Jan Bevers | Developer | SDL | Content Management Technologies Division | +32
(0)15 400 970 | jbevers at sdl.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20130225/ef25fa58/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 5562 bytes
Desc: image002.jpg
URL: <http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20130225/ef25fa58/attachment.jpg>
More information about the oXygen-sdk
mailing list