|
top
|
Subject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table Author: Ivan Pedruzzi Date: 16 Nov 2008 02:04 PM
|
Hi Lawrence,
I am not sure how you are planning to map all elements, the following XQuery does the most obvious one, assuming to process an XML document
as you posted at
http://www.stylusstudio.com/SSDN/default.asp?action=9&read=8114&fid=48
declare variable $product as document-node(element(*, xs:untyped)) external;
for $rev in $product/ProductInfo/Versions/VersionRec/Revisions/RevisionRec
let $name := $rev/../../../../ProductName
let $ver := concat($rev/../../VersionMajorNo, '.', $rev/../../VersionMinorNo)
return
ddtek:sql-insert("ibmproductlifecycle",
"SWTitleSynKey" , "",
"SWTitle" , $name,
"offeringType" , "",
"pid" , "",
"VersionNumber" , $ver,
"releaseNumber" , $rev/RevisionNo,
"modLevelNumber" , "",
"lifecyclePolicy" , "",
"exception" , "",
"eosAnnLetNo" , "",
"eosDate" , "",
"eomAnnLetNo" , "",
"eomDate" , "",
"gaAnnLetNo" , "",
"gaDate" , "",
"PLCMoreInfoURL" , ""
)
Hope this helps
Ivan Pedruzzi
Stylus Studio Team
|
|
|