Skip Menu |

This queue is for tickets about the XML-GXML CPAN distribution.

Report information
The Basics
Id: 27185
Status: new
Priority: 0/
Queue: XML-GXML

People
Owner: Nobody in particular
Requestors: RSAVAGE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.4
Fixed in: (no value)



Subject: Macro expansion on multiple tags only takes place one first copy
(1) Here is my test file. You'll notice there are lots of tags called 'node'. Only the first appears in the output. <treepad_xml version="1.0"> <database> <name> Environment </name> <node> <title>A</title> <article datatype="Text">AA</article> <node> <title>B</title> <article datatype="Text">BB</article> </node> <node> <title>C</title> <article datatype="Text">CC</article> <node> <title>D</title> <article datatype="Text">DD</article> </node> </node> <node> <title>E</title> <article datatype="Text">EE</article> <node> <title>F</title> <article datatype="Text">FF</article> </node> <node> <title>G</title> <article datatype="Text">GG</article> <node> <title>H</title> <article datatype="Text">HH</article> <node> <title>I</title> <article datatype="Text">II</article> </node> </node> <node> <title>J</title> <article datatype="Text">JJ</article> </node> </node> </node> </node> </database> </treepad_xml> (2) Here is the template: <node> <table> <tr><td>title</td><td>%%%title%%%</td></tr> <tr><td>article</td><td>%%%article%%%</td></tr> </table> </node> (3) Here is the output: <database> <name> Environment </name> <table> <tr><td>title</td><td>A</td></tr> <tr><td>article</td><td>AA</td></tr> </table> </database> I expected the template to be used to expand /every/ <node> in the input.