(refas tag="user")/path/to/user.xml(/refas)
Welcome back
##
(SQL mode="mask")
SELECT username,email FROM users;
[link action="showuser"
username="username "
]username [/link],
[link to="mailto:email "]email [/link]
(/SQL)
Becomes :
SELECT username,email FROM users;
username ,
email
Also when tags have tags embedded in their attributes like this :
data
converting the expression to XML like this;
b="d "
data
####
SELECT username,email FROM users;
username ,
email
becomes :
my @nodes = ( Node->new( SQL => { aXML_class => 'primary',
attr => { mode => "mask" },
contents => { 'SELECT * FROM users
',
[ Node->new( link => { aXML_class => 'tertiary',
attr => { action => 'showuser',
username => 'username' },
contents => 'username '
} ),
contents => 'username ' } ),
Node->new( link => { aXML_class => 'tertiary',
attr => { to => 'mailto://email ' },
contents => 'email '
} ),
],
'
'
}
} )
);
and
data
becomes :
b="d "
data
then becomes :
my @nodes = ( Node->new( a => { aXML_class => 'standard',
attr => { b => Node->new ( c => { aXML_class => 'standard',
contents => 'd'
}
)
},
contents => 'data' }
}
)
);