Skip to Content

Creating a ResourceFilter with JAVA

Hi, all!

I asked through the OSS if it was possible to display XML documents from a repository branch (several subfolders) as a flat structure (traverse the tree and ignore folder location, just display them as if they were all in the same folder). I was told that it wasn't, but however, it could be a possibility to create a ResourceFilter with JAVA to perform this task. Now, I've searched the web and all documentation I could find, but not much useful info on how to do this. If anyone has any idea of where to find information about this, or maybe even another solution to the problem, I'd be really happy!

Have a nice weekend!

Best Regards,

Hans Petter Bjørn

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jan 09, 2004 at 07:32 PM

    If this what you searching for:

    http://help.sap.com/sapdocu/netweaver/portals/ep50sp4/helpdata/EN/76/6eb13b7466fc29e10000000a11402f/frameset.htm

    Content Filter Managers

    When a client requests contents of a resource and a filter is configured for that resource then the content is always returned via the filter. The content itself is fetched from the repository manager, and then passed on to a filter manager for processing. Different filter managers are responsible for different types of file transformations. Currently the following managers are available:

    The Xslt filter manager transforms an XML document into a document with a different format. In the transformation process, an XSLT style sheet is applied to document and then a program called a formatter program creates a version of the document with the desired output format. With the help of the Xslt filter manager an XML file can be transformed and displayed in the formats:

    HTML, XHTML, WML, PLAIN, VRML, RSS and SVG-XML

    The Html filter manager changes the layout of an HTML document. It transforms an HTML document to a document with new formatting by applying a cascading stylesheet.

    At a technical level, the processes controlled by the different filter managers are executed by the Publishing Pipeline. This is responsible for actually converting a resource from one layout or format to another. For example, when an XML file is converted into a RSS file that is suitable for news items, the Publishing Pipeline performs the following steps:

    The XML file is translated into an internal XML that is represented as an XML DOM.

    An XSLT stylesheet is applied to the XML DOM. This adds layout information to the XML DOM and prepares it for the conversion to the new RSS format.

    A program called a formatter converts the XML DOM into the RSS output format and displays it for viewing.

    Add comment
    10|10000 characters needed characters exceeded