|
List Info
Thread: parsing tag body
|
|
| parsing tag body |

|
2007-01-03 10:37:20 |
i created an extension as instructed in
http://meta.wikimedia.org/wiki/Extending_wiki_markup
i use it basically as:
<my_tag>
<another_tag>...</another_tag>
</my_tag>
the $input parameter to my function contains '<another
tag>...</another tag>', which i want to process:
$localParser = new Parser();
$output = $localParser->parse($input,
$parser->mTitle, $parser->mOptions, false);
but $output->getText() returns
<another_tag>foo</another_tag>
how should i properly parse the text?
thanks,
ittay
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
|
|
| parsing tag body |

|
2007-01-03 11:03:53 |
ok, i used the parser itself, not creating a local one. that
solved this.
another question. the text returned by my taq is surrounded
by a table, but it looks like once it is returned, the table
is not parsed:
{|
<my_tag>
<another_tag>...</another_tag>
</my_tag>
|}
(my_tag returns something like '|foon|-')
thanks for your help,
ittay
Ittay Dror wrote:
> i created an extension as instructed in
http://meta.wikimedia.org/wiki/Extending_wiki_markup
>
> i use it basically as:
> <my_tag>
> <another_tag>...</another_tag>
> </my_tag>
>
> the $input parameter to my function contains
'<another tag>...</another tag>', which i want
to process:
> $localParser = new Parser();
> $output = $localParser->parse($input,
$parser->mTitle, $parser->mOptions, false);
>
>
> but $output->getText() returns
<another_tag>foo</another_tag>
>
> how should i properly parse the text?
>
> thanks,
> ittay
>
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
|
|
| parsing tag body |

|
2007-01-03 11:05:11 |
On 03/01/07, Ittay Dror <ittayd qlusters.com> wrote:
> ok, i used the parser itself, not creating a local one.
that solved this.
>
> another question. the text returned by my taq is
surrounded by a table, but it looks like once it is
returned, the table is not parsed:
> {|
> <my_tag>
> <another_tag>...</another_tag>
> </my_tag>
> |}
>
> (my_tag returns something like '|foon|-')
Parser hook extensions of this variety are expected to
return HTML output.
Rob Church
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
|
|
| parsing tag body |

|
2007-01-03 11:20:22 |
looking at the page source, the table seems to be rendered
after the tag's output.
Ittay Dror wrote:
> ok, i used the parser itself, not creating a local one.
that solved this.
>
> another question. the text returned by my taq is
surrounded by a table,
> but it looks like once it is returned, the table is not
parsed:
> {|
> <my_tag>
> <another_tag>...</another_tag>
> </my_tag>
> |}
>
> (my_tag returns something like '|foon|-')
>
> thanks for your help,
> ittay
>
> Ittay Dror wrote:
>> i created an extension as instructed in
>>
http://meta.wikimedia.org/wiki/Extending_wiki_markup
>>
>> i use it basically as:
>> <my_tag>
>> <another_tag>...</another_tag>
>> </my_tag>
>>
>> the $input parameter to my function contains
'<another
>> tag>...</another tag>', which i want to
process:
>> $localParser = new Parser(); $output =
$localParser->parse($input,
>> $parser->mTitle, $parser->mOptions, false);
>>
>> but $output->getText() returns
<another_tag>foo</another_tag>
>> how should i properly parse the text?
>>
>> thanks,
>> ittay
>>
>
>
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
|
|
| parsing tag body |

|
2007-01-03 12:17:03 |
Rob Church wrote:
> On 03/01/07, Ittay Dror <ittayd qlusters.com> wrote:
>> ok, i used the parser itself, not creating a local
one. that solved this.
>>
>> another question. the text returned by my taq is
surrounded by a table, but it looks like once it is
returned, the table is not parsed:
>> {|
>> <my_tag>
>> <another_tag>...</another_tag>
>> </my_tag>
>> |}
>>
>> (my_tag returns something like '|foon|-')
>
> Parser hook extensions of this variety are expected to
return HTML output.
ok, but even if i return
<tr><td>foo</td></tr>, the text is
still rendered outside of the <table> tags
>
>
> Rob Church
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
|
|
[1-5]
|
|