I have simple code blocks that I would like to show the noweb generated source for inside the same org-mode file. eg:
#+NAME: example
#+BEGIN_SRC java :classname Test :results code :exports both :tangle yes :noweb yes
<<preface>>
String result = "hello world";
<<end>>
#+END_SRC
where preface
and end
are something like this:
#+NAME: teststart
#+BEGIN_SRC java +n :results none :exports code :tangle yes :noweb yes
public class Test {
public static void main(String[] args)
{
#+END_SRC
#+NAME: testend
#+BEGIN_SRC java +n :classname Test :results none :exports code :tangle yes :noweb yes
System.out.print(result);
}
}
#+END_SRC
I can do a file include, eg:
#+INCLUDE: "./Test.java" src java
and see it in exports, but not the org-mode file itself.