Hi Matthias,

The reason it doesn’t work is that right now the {{include}} Macro can only 
include Heading sections. I supposed you’re using the {{id}} macro to generate 
an anchor and that is not supported by the include macro right now.

If you check the documentation for the include macro you’ll see it says that 
section is to include a … section. A section in XWiki markup is the content 
that comes just after a Heading.

Including what comes after an anchor would be very complex and there would be 
no delimitation of beginning and end.

So to make it work on your side, you need to refactor your content to use a 
heading.

Thanks
-Vincent

> On 08 Apr 2016, at 08:58, Matthias Barmeier <matthias.barme...@sourcepark.de> 
> wrote:
> 
> Hi,
> 
> @Marius: No that does not work :(
> 
> Adding .WebHome leads to the same exception:
> 
> org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
> [HFSS.properties] in document 
> [produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
>       at 
> org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
>       at 
> org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
>       at 
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
>       at 
> org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
>       at 
> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
>       at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
>       at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
>       at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
>       at 
> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
> 
> Does anybody has another hint ?
> 
> I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable Version.
> 
> Ciao
>    Matze
> 
> Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:
>> On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
>> matthias.barme...@sourcepark.de> wrote:
>> 
>>> Hi,
>>> 
>>> I try to embedd a table (in a section) from another wiki page. I tried to
>>> use the include macro in the following form:
>>> 
>>> {{include reference="Synaptic.Technik.Konfigurationsdateien"}}
>>> 
>>> The whole document is embedded as expected. After adding the section
>>> attribute:
>>> 
>>> 
>>> {{include reference="Synaptic.Technik.Konfigurationsdateien"
>>> section="HFSS.properties"/}}
>>> 
>> Try with reference="Synaptic.Technik.Konfigurationsdateien.WebHome" . Does
>> it work? See http://jira.xwiki.org/browse/XWIKI-13066
>> 
>> 
>>> I get:
>>> Failed to execute the [include] macro. Cause: [Cannot find section
>>> [HFSS.properties] in document
>>> [produkte:Synaptic.Technik.Konfigurationsdateien]]. Click on this message
>>> for details.
>>> 
>>> but the document contains the necessary heading.
>>> 
>>> This link works perfect when added to the document:
>>> 
>> 
>>> [[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]
>>> 
>> The link reference is handled a bit differently (for the moment) than the
>> include reference. See
>> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HLinksyntaximprovementsforNestedPages
>> 
>> Hope this helps,
>> Marius
>> 
>> 
>>> Can any body give me a hint what is wrong ?
>>> 
>>> Thanks.
>>> 
>>> Ciao
>>> 
>>>      Matthias
>>> _______________________________________________
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>> 
>> _______________________________________________
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> 
> -- 
> -----------------------------------
> SOURCEPARK GmbH
> 
> Dipl.-Inform. Matthias Barmeier
> Geschäftsführer
> 
> Partner der Allianz für Cyber-Sicherheit
> des Bundesamtes für Sicherheit in der
> Informationstechnik (BSI)
> 
> Hohenzollerndamm 150
> 14199 Berlin
> 
> Tel:    +49 (0)30/398 068 30
> Fax:    +49 (0)30/398 068 39
> e-mail: matthias.barme...@sourcepark.de
> WWW:    www.sourcepark.de
> -----------------------------------
> Sitz der Gesellschaft: Berlin
> Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
> Geschäftsführer: Matthias Barmeier, Harald Dürr
> -----------------------------------
> 
> Wichtiger Hinweis: Die vorgenannten Angaben werden jeder
> E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse
> auf den Rechtscharakter der E-Mail zu.
> 
> Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
> Informationen enthalten. Wenn Sie nicht der richtige Adressat
> sind oder diese E-Mail irrtümlich erhalten haben, informieren
> Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
> Das unerlaubte Kopieren sowie die unbefugte Weitergabe
> dieser E-Mail ist nicht gestattet.
> 
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to