Page MenuHomePhabricator

A simple XML "skin" to be used with XSLT
Closed, DeclinedPublic

Description

Author: rene.kijewski

Description:
It would be great, if there would be a very simple XML output/skin to be used with XSLT.
I mean a wiki text like

==Header==
*a
*b<ref name="ref">[http://example.com/ Reference]</ref>
text
<refences/>

could be rendered to something like

<mediawiki title="Wikipedia" wgArticlePath="/wiki/$1" . . .>

<user name="127.0.0.1" id="" newmessages="true" . . . />
<sidebar>
 . . .
</sidebar>
<page wgArticleId="4711" wgTitle="Test" wgCanonicalNamespace="" . . . />
 <content wgCurRevisionId="31173">
  <h indent="2" achnor="Header">Header</h>
  <list type="unordered">
   <li>a</li>
   <li>b<ref name="ref"/></li>
  </list>
  <p>text</p>
  <references/>
 </content>
 <references>
  <ref name="ref">
   <link href="http://example.com/">Reference</link>
  </ref>
 </references>
</page>
. . .

</mediawiki>

so that a really custom skin could be created. I don't know if this would be posible. Maybe it would break with too many existing extensions. The <content> would almost be the same as it's now with HTML. I know, a new skin would not be enough to achieve my proposal.


Version: unspecified
Severity: enhancement

Details

Reference
bz17829

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:36 PM
bzimport set Reference to bz17829.
bzimport added a subscriber: Unknown Object (MLST).

XSLT use to be fun years ago. Given the complexity of managing XSLT / XML output, we are not going to ever implement such support.

Mvolz changed the status of subtask T8884: Merge all skins' PHP files from Declined to Resolved.Apr 8 2015, 4:10 PM
matmarex changed the status of subtask T8884: Merge all skins' PHP files from Resolved to Declined.Apr 8 2015, 4:15 PM