[prev in list] [next in list] [prev in thread] [next in thread] 

List:       horde-dev
Subject:    Re: [dev] [horde] Help File syntax
From:       Ralf Lang <lang () b1-systems ! de>
Date:       2012-03-09 11:48:03
Message-ID: 4F59EDF3.5040504 () b1-systems ! de
[Download RAW message or body]

Am 21.02.2012 14:32, schrieb Jan Schneider:
>
> Zitat von Ralf Lang <lang@b1-systems.de>:
>
>> Is this intended or a bug?
>>
>> <entry id="XXXAPP-overview">
>> <title>XXXAPP Title</title>
>> <para>Hier bekommen Sie weitere Informationen</para>
>>
>> <heading>Informationen und Handbuch</heading>
>> <para>Übersicht XXXAPP Service</para><para><eref
>> url="http://www.XXXAPP.de/XXXAPP">http://www.XXXAPP.de/XXXAPP</eref></para>
>>
>>
>> ....
>>
>> This one works. If I don't wrap the eref into a <para></para>, it's
>> not displayed. If I wrap the <eref> together with other content like
>> this:
>> <para>sometexthere<eref url="kk">kk</eref></para>, then sometexthere
>> is not displayed.
>>
>> If this is intended syntax, I will write a little example. If this is
>> a bug, I will open a bug report.
>
> Sounds like bug. A quick look at the help parser didn't reveal any
> obvious reasons for that behavior though.
>

I think it's _processNode.
It only returns the node's value if there are no children.

SimpleXML cannot deal with DOM style mixing of text content and children.

Solutions:

Internally convert text content to <text>text</text> nodes before 
passing to simpleXml (rather ugly)

Using DOM instead of SimpleXml for parsing
I don't consider the latter a BC break because the help is part of 
Horde_Core and Horde_Core depends on php-dom

I'll try this.

-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang@b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
-- 
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@lists.horde.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic