What Is XEML?
XEML
is an XML based application programming paradigm based on a concept called
xnodes
.
xnodes
are xml nodes of programming
metadata
.
XEML
attempts to standardize application development in order to maximize programming:
- simplicity
- reusability
- development speed
- language portability
- platform independence
|
|
XNode Reference
What we have here is hardly documentation yet. Consider it a place holder
and some formatting experimentation until we have time to get this written.
<
x:node
class
="org.xeml.util.XConnectionManager"
>
<
pooled-connection
driver
="com.mysql.jdbc.Driver"
maxconn
="3"
name
="conn1"
password
="mypassword"
url
="jdbc:mysql://myserver.com:mydb/mydb"
user
="myuser"
/>
<
pooled-connection
driver
="com.mysql.jdbc.Driver"
maxconn
="10"
name
="conn3"
password
="mypassword"
url
="jdbc:mysql://myotherserver.com:3306/myotherdb"
user
="myuser"
/>
<
x:execute-sql
>
<
statement
connection
="conn3"
returnrows
="SearchResults/Listing"
>
<![CDATA[
select Listing.Status,Listing.MLSNbr,
Listing.ListAgent,
Listing.Address1,
Listing.ListPrice,
Listing.City,
ListingExtra.PropertyDesc,
ListingExtra.PropertyImage
from Listing, ListingExtra
where Listing.MLSNbr=ListingExtra.MLSNbr
and Status=1
and ListPrice > ?
and ListPrice < ?
and ( concat(',',?,',') like concat('%,',Area,',%') or Zip=?)
order by ListPrice
LIMIT ?
]]>
</
statement
>
<
param
binddir
="1"
ref
="Search/PriceMin"
type
="Varchar2"
/>
<
param
binddir
="1"
ref
="Search/PriceMax"
type
="Varchar2"
/>
<
param
binddir
="1"
ref
="Search/Area"
type
="Varchar2"
/>
<
param
binddir
="1"
ref
="Search/Zip"
type
="Varchar2"
/>
<
param
binddir
="1"
ref
="rows"
type
="Number"
/>
</
x:execute-sql
>
<
x:execute-xsl
>
<
xsl:stylesheet
version
="1.0"
xmlns:xsl
="
http://www.w3.org/1999/XSL/Transform
"
>
<
xsl:output
indent
="no"
method
="xml"
omit-xml-declaration
="yes"
/>
<
xsl:param
name
="object.id"
/>
<
xsl:template
match
="*"
>
<
table
style
="background-color:#ffffff;"
width
="97%"
>
<
tr
>
<
td
style
="color:#0000bb;font-size:12pt;font-weight:bold;text-align:right;border-top:1pt solid #0000bb;"
>
Patti Morgan Listings
</
td
>
</
tr
>
<
xsl:for-each
select
="/*/object[@id=$object.id]/Featured/Listing"
>
[. . .]
</
xsl:template
>
</
xsl:stylesheet
>
</
x:execute-xsl
>
|
| | | | msnbc.com: Top msnbc.com headlines | | Suspected pirate 'mother ship' sunk | An Indian naval vessel sank a suspected pirate "mother ship" Wednesday in the Gulf of Aden and chased two attack boats into the night, in a day of escalating violence in the lawless seas.
| | As nest eggs shrink, many defer retirement | As financial markets have ravaged his savings, Gary Laursen, 62, has put his retirement on hold. He is one of millions of Americans confronting a stark reality about retirement.
| | NBC: Daschle to be Obama's HHS Secretary | The former Senate majority leader has been a close adviser to the president-elect throughout the campaign for the White House and recently wrote a book proposing health care improvements.
| |
| |