Changeset 646
- Timestamp:
- Dec 8, 2009, 5:29:27 PM (15 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CIN.m
r598 r646 111 111 S ZI="" 112 112 F S ZI=$O(C0CXP(ZI)) Q:ZI="" D ; FOR EACH XPATH 113 . D DEMUX ("ZJ",ZI) ;113 . D DEMUX^C0CMXP("ZJ",ZI) ; 114 114 . W ZJ,! 115 115 . S ZK=$P(ZJ,"^",3) ; PULL OUT THE XPATH … … 131 131 D CCRRPC^C0CCCR(.ZT,C0CDFN,"LABLIMIT:T-1000") 132 132 M @AOUT=ZT 133 Q134 ;135 DEMUX(OUTX,INX) ;PARSES XPATH PASSED BY VALUE IN INX TO REMOVE [x] MULTIPLES136 ; RETURNS OUTX: MULTIPLE^SUBMULTIPLE^XPATH137 N ZX,ZY,ZZ,ZZ1,ZMULT,ZSUB138 S (ZMULT,ZSUB)=""139 S ZX=$P(INX,"[",2)140 I ZX'="" D ; THERE IS A [x] MULTIPLE141 . S ZY=$P(INX,"[",1) ;FIRST PART OF XPATH142 . S ZMULT=$P(ZX,"]",1) ; NUMBER OF THE MULTIPLE143 . S ZX=ZY_$P(ZX,"]",2) ; REST OF THE XPATH144 . I $P(ZX,"[",2)'="" D ; A SUB MULTIPLE EXISTS145 . . S ZZ=$P(ZX,"[",1) ; FIRST PART OF XPATH146 . . S ZX=$P(ZX,"[",2) ; DELETE THE [147 . . S ZSUB=$P(ZX,"]",1) ; NUMBER OF THE SUBMULTIPLE148 . . S ZX=ZZ_$P(ZX,"]",2) ; REST OF THE XPATH149 E S ZX=INX ;NO MULTIPLE HERE150 S @OUTX=ZMULT_"^"_ZSUB_"^"_ZX ;RETURN MULTIPLE^SUBMULTIPLE^XPATH151 133 Q 152 134 ; -
ccr/trunk/p/C0CMXML.m
r639 r646 181 181 D END^C0CMXMLB ;END THE DOCUMENT 182 182 M @ZRTN=^TMP("MXMLBLD",$J) 183 K ^TMP("MXMLBLD",$J) ,^TMP("MXMLDOM",$J)183 K ^TMP("MXMLBLD",$J) 184 184 Q 185 185 ; -
ccr/trunk/p/C0CMXP.m
r640 r646 87 87 Q 88 88 ; 89 DEMUX(OUTX,INX) ;PARSES XPATH PASSED BY VALUE IN INX TO REMOVE [x] MULTIPLES 90 ; RETURNS OUTX: MULTIPLE^SUBMULTIPLE^XPATH 91 N ZX,ZY,ZZ,ZZ1,ZMULT,ZSUB 92 S (ZMULT,ZSUB)="" 93 S ZX=$P(INX,"[",2) 94 I ZX'="" D ; THERE IS A [x] MULTIPLE 95 . S ZY=$P(INX,"[",1) ;FIRST PART OF XPATH 96 . S ZMULT=$P(ZX,"]",1) ; NUMBER OF THE MULTIPLE 97 . S ZX=ZY_$P(ZX,"]",2) ; REST OF THE XPATH 98 . I $P(ZX,"[",2)'="" D ; A SUB MULTIPLE EXISTS 99 . . S ZZ=$P(ZX,"[",1) ; FIRST PART OF XPATH 100 . . S ZX=$P(ZX,"[",2) ; DELETE THE [ 101 . . S ZSUB=$P(ZX,"]",1) ; NUMBER OF THE SUBMULTIPLE 102 . . S ZX=ZZ_$P(ZX,"]",2) ; REST OF THE XPATH 103 E S ZX=INX ;NO MULTIPLE HERE 104 S @OUTX=ZMULT_"^"_ZSUB_"^"_ZX ;RETURN MULTIPLE^SUBMULTIPLE^XPATH 105 Q 106 ; 89 107 UPDIE ; INTERNAL ROUTINE TO CALL UPDATE^DIE AND CHECK FOR ERRORS 90 108 K ZERR
Note:
See TracChangeset
for help on using the changeset viewer.