Click here to Skip to main content
14,447,475 members
   

XML / XSL

 
Questionreconfirm Pin
santoshkumar11876-Mar-12 8:06
Membersantoshkumar11876-Mar-12 8:06 
AnswerRe: reconfirm Pin
Chandrasekharan P9-Apr-12 22:02
MemberChandrasekharan P9-Apr-12 22:02 
Questionxml data will not display on the screen on a php page Pin
awolarczuk1-Mar-12 1:05
Memberawolarczuk1-Mar-12 1:05 
Questiongenerating html tree from xml file using xslt. Pin
anikbutt2210-Feb-12 2:41
Memberanikbutt2210-Feb-12 2:41 
QuestionHow to open zipfile and xls Pin
Themba Zwane8-Feb-12 8:53
MemberThemba Zwane8-Feb-12 8:53 
AnswerRe: How to open zipfile and xls Pin
Richard MacCutchan8-Feb-12 22:54
communityengineerRichard MacCutchan8-Feb-12 22:54 
AnswerRe: How to open zipfile and xls Pin
ZurdoDev19-Mar-12 10:02
mveZurdoDev19-Mar-12 10:02 
QuestionImplementing Apriori Algorithm with XQuery Pin
helloworld202018-Jan-12 2:47
Memberhelloworld202018-Jan-12 2:47 
Hi,

I am trying to implement Apriori Algorithm(Mining Association Rules from XML Data) with XQuery. Unfortunately, I am not familiar with XQuery language. So, I need your help to fix the bug in the code given below

xquery version "1.0";

declare function  apriori($l,  $L,  $minsup, $total, $src)
{
let $C := removeDuplicate(candidateGen($l))
let $l := getLargeItemsets($C, $minsup, $total, $src)
let $L := $l union $L
return if (empty($l)) then
$L
else
 apriori($l, $L, $minsup, $total, $src)
}

let $src := doc(/transactions.xml)//items
let $minsup := 0.4
let $total := count($src) * 1.00
let $C := distinct-values($src/*)
let $l :=(for $itemset in $C
let $items := (for $item in $src/*
where $itemset = $item
return $item)
let $sup := (count($items) * 1.00) div $total
where $sup >= $minsup
return <largeItemset>
<items> {$itemset} </items>
<support> {$sup} </support>
</largeItemset>)
let $L := $l
return <largeItemsets> {apriori($l, $L,$minsup, $total, $src)}
</largeItemsets>


Error:
[DataDirect][XQuery][err:XPST0003]Error at line 14, column 1. Expected ";", but encountered "let"

Thanks for any help Smile | :)
Questionsplitting the xmlnode based on nodelength Pin
harinit11-Jan-12 23:20
Memberharinit11-Jan-12 23:20 
AnswerRe: splitting the xmlnode based on nodelength Pin
chriselst13-Jan-12 1:48
Memberchriselst13-Jan-12 1:48 
GeneralRe: splitting the xmlnode based on nodelength Pin
harinit16-Jan-12 23:37
Memberharinit16-Jan-12 23:37 
AnswerRe: splitting the xmlnode based on nodelength Pin
woopsydoozy16-Mar-12 8:59
Memberwoopsydoozy16-Mar-12 8:59 
QuestionVStudio and xsd.exe create different schema Pin
Tomerland4-Jan-12 11:22
MemberTomerland4-Jan-12 11:22 
Questionhow to look for a VALUE in an xml document. Not a node. Pin
dotolee12-Dec-11 8:22
Memberdotolee12-Dec-11 8:22 
AnswerRe: how to look for a VALUE in an xml document. Not a node. Pin
Tarun.K.S12-Dec-11 19:10
MemberTarun.K.S12-Dec-11 19:10 
AnswerRe: how to look for a VALUE in an xml document. Not a node. Pin
Member 86251126-Mar-12 23:40
MemberMember 86251126-Mar-12 23:40 
QuestionHow to load xml questions into jquery flipcard? Pin
burakmartonalti14-Nov-11 20:16
Memberburakmartonalti14-Nov-11 20:16 
QuestionXslt Transformation Pin
tellaston134527-Oct-11 7:03
Membertellaston134527-Oct-11 7:03 
QuestionException: "XsltContext is needed for this query because of an unknown function" Pin
NarVish20-Oct-11 23:57
MemberNarVish20-Oct-11 23:57 
AnswerRe: Exception: "XsltContext is needed for this query because of an unknown function" Pin
NarVish21-Oct-11 1:49
MemberNarVish21-Oct-11 1:49 
QuestionXPath problem with % value Pin
NarVish18-Oct-11 1:29
MemberNarVish18-Oct-11 1:29 
AnswerRe: XPath problem with % value Pin
jschell18-Oct-11 9:52
Memberjschell18-Oct-11 9:52 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 19:39
MemberNarVish18-Oct-11 19:39 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 23:00
MemberNarVish18-Oct-11 23:00 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 23:36
MemberNarVish18-Oct-11 23:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.