Produced by Araxis Merge on 6/9/2017 3:50:00 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:50:00 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-common\src\main\resources\gov\va\nvap\common\xsl | XmlToString.xsl | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 974 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | <!-- Copyr ight (c) 2 001-2004, Evan Lenz All rights reserved. Redistrib ution | |||||
| 2 | an d use in s ource and binary for ms, with o r without modificati on, are pe rmitted | |||||
| 3 | pr ovided tha t the foll owing cond itions are met: * Re distributi ons of sou rce | |||||
| 4 | co de must re tain the a bove copyr ight notic e, this li st of cond itions and | |||||
| 5 | th e followin g disclaim er. * Redi stribution s in binar y form mus t reproduc e | |||||
| 6 | th e above co pyright no tice, this list of c onditions and the fo llowing di sclaimer | |||||
| 7 | in the docum entation a nd/or othe r material s provided with the distributi on. | |||||
| 8 | * Neither th e name of XMLPortfol io.com nor the names of its co ntributors | |||||
| 9 | ma y be used to endorse or promot e products derived f rom this s oftware wi thout | |||||
| 10 | sp ecific pri or written permissio n. THIS SO FTWARE IS PROVIDED B Y THE COPY RIGHT | |||||
| 11 | HO LDERS AND CONTRIBUTO RS "AS IS" AND ANY E XPRESS OR IMPLIED WA RRANTIES, INCLUDING, | |||||
| 12 | BU T NOT LIMI TED TO, TH E IMPLIED WARRANTIES OF MERCHA NTABILITY AND FITNES S | |||||
| 13 | FO R A PARTIC ULAR PURPO SE ARE DIS CLAIMED. I N NO EVENT SHALL THE COPYRIGHT | |||||
| 14 | OW NER OR CON TRIBUTORS BE LIABLE FOR ANY DI RECT, INDI RECT, INCI DENTAL, SP ECIAL, | |||||
| 15 | EX EMPLARY, O R CONSEQUE NTIAL DAMA GES (INCLU DING, BUT NOT LIMITE D TO, PROC UREMENT | |||||
| 16 | OF SUBSTITUT E GOODS OR SERVICES; LOSS OF U SE, DATA, OR PROFITS ; OR BUSIN ESS | |||||
| 17 | IN TERRUPTION ) HOWEVER CAUSED AND ON ANY TH EORY OF LI ABILITY, W HETHER IN CONTRACT, | |||||
| 18 | ST RICT LIABI LITY, OR T ORT (INCLU DING NEGLI GENCE OR O THERWISE) ARISING IN | |||||
| 19 | AN Y WAY OUT OF THE USE OF THIS S OFTWARE, E VEN IF ADV ISED OF TH E POSSIBIL ITY | |||||
| 20 | OF SUCH DAMA GE. --> | |||||
| 21 | <xsl:style sheet | |||||
| 22 | version="1 .0" | |||||
| 23 | ||||||
| 24 | xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" | |||||
| 25 | > | |||||
| 26 | ||||||
| 27 | ||||||
| 28 | <xsl:outpu t | |||||
| 29 | omit-xml-d eclaration ="yes" | |||||
| 30 | /> | |||||
| 31 | ||||||
| 32 | ||||||
| 33 | <xsl:param | |||||
| 34 | name="use- empty-synt ax" | |||||
| 35 | select="tr ue()" | |||||
| 36 | /> | |||||
| 37 | ||||||
| 38 | <xsl:param | |||||
| 39 | name="excl ude-unused -prefixes" | |||||
| 40 | select="tr ue()" | |||||
| 41 | /> | |||||
| 42 | ||||||
| 43 | ||||||
| 44 | <xsl:param | |||||
| 45 | name="star t-tag-star t" | |||||
| 46 | select="'& lt;'" | |||||
| 47 | /> | |||||
| 48 | ||||||
| 49 | <xsl:param | |||||
| 50 | name="star t-tag-end" | |||||
| 51 | select="'> '" | |||||
| 52 | /> | |||||
| 53 | ||||||
| 54 | <xsl:param | |||||
| 55 | name="empt y-tag-end" | |||||
| 56 | select="'/ >'" | |||||
| 57 | /> | |||||
| 58 | ||||||
| 59 | <xsl:param | |||||
| 60 | name="end- tag-start" | |||||
| 61 | select="'& lt;/'" | |||||
| 62 | /> | |||||
| 63 | ||||||
| 64 | <xsl:param | |||||
| 65 | name="end- tag-end" | |||||
| 66 | select="'> '" | |||||
| 67 | /> | |||||
| 68 | ||||||
| 69 | <xsl:param | |||||
| 70 | name="spac e" | |||||
| 71 | select="' '" | |||||
| 72 | /> | |||||
| 73 | ||||||
| 74 | <xsl:param | |||||
| 75 | name="ns-d ecl" | |||||
| 76 | select="'x mlns'" | |||||
| 77 | /> | |||||
| 78 | ||||||
| 79 | <xsl:param | |||||
| 80 | name="colo n" | |||||
| 81 | select="': '" | |||||
| 82 | /> | |||||
| 83 | ||||||
| 84 | <xsl:param | |||||
| 85 | name="equa ls" | |||||
| 86 | select="'= '" | |||||
| 87 | /> | |||||
| 88 | ||||||
| 89 | <xsl:param | |||||
| 90 | name="attr ibute-deli miter" | |||||
| 91 | select="'& quot;'" | |||||
| 92 | /> | |||||
| 93 | ||||||
| 94 | <xsl:param | |||||
| 95 | name="comm ent-start" | |||||
| 96 | select="'& lt;!--'" | |||||
| 97 | /> | |||||
| 98 | ||||||
| 99 | <xsl:param | |||||
| 100 | name="comm ent-end" | |||||
| 101 | select="'- ->'" | |||||
| 102 | /> | |||||
| 103 | ||||||
| 104 | <xsl:param | |||||
| 105 | name="pi-s tart" | |||||
| 106 | select="'& lt;?'" | |||||
| 107 | /> | |||||
| 108 | ||||||
| 109 | <xsl:param | |||||
| 110 | name="pi-e nd" | |||||
| 111 | select="'? >'" | |||||
| 112 | /> | |||||
| 113 | ||||||
| 114 | ||||||
| 115 | <xsl:templ ate | |||||
| 116 | name="xml- to-string" | |||||
| 117 | > | |||||
| 118 | ||||||
| 119 | <xsl:param | |||||
| 120 | name="node -set" | |||||
| 121 | select="." | |||||
| 122 | /> | |||||
| 123 | ||||||
| 124 | <xsl:apply -templates | |||||
| 125 | select="$n ode-set" | |||||
| 126 | mode="xml- to-string" | |||||
| 127 | > | |||||
| 128 | ||||||
| 129 | <xsl:with- param | |||||
| 130 | name="dept h" | |||||
| 131 | select="1" | |||||
| 132 | /> | |||||
| 133 | ||||||
| 134 | </xsl:appl y-template s> | |||||
| 135 | ||||||
| 136 | </xsl:temp late> | |||||
| 137 | ||||||
| 138 | ||||||
| 139 | <xsl:templ ate | |||||
| 140 | match="/" | |||||
| 141 | name="xml- to-string- root-rule" | |||||
| 142 | > | |||||
| 143 | ||||||
| 144 | <xsl:call- template | |||||
| 145 | name="xml- to-string" | |||||
| 146 | /> | |||||
| 147 | ||||||
| 148 | </xsl:temp late> | |||||
| 149 | ||||||
| 150 | ||||||
| 151 | <xsl:templ ate | |||||
| 152 | match="/" | |||||
| 153 | mode="xml- to-string" | |||||
| 154 | > | |||||
| 155 | ||||||
| 156 | <xsl:param | |||||
| 157 | name="dept h" | |||||
| 158 | /> | |||||
| 159 | ||||||
| 160 | <xsl:apply -templates | |||||
| 161 | mode="xml- to-string" | |||||
| 162 | > | |||||
| 163 | ||||||
| 164 | <xsl:with- param | |||||
| 165 | name="dept h" | |||||
| 166 | select="$d epth" | |||||
| 167 | /> | |||||
| 168 | ||||||
| 169 | </xsl:appl y-template s> | |||||
| 170 | ||||||
| 171 | </xsl:temp late> | |||||
| 172 | ||||||
| 173 | ||||||
| 174 | <xsl:templ ate | |||||
| 175 | match="*" | |||||
| 176 | mode="xml- to-string" | |||||
| 177 | > | |||||
| 178 | ||||||
| 179 | <xsl:param | |||||
| 180 | name="dept h" | |||||
| 181 | /> | |||||
| 182 | ||||||
| 183 | <xsl:varia ble | |||||
| 184 | name="elem ent" | |||||
| 185 | select="." | |||||
| 186 | /> | |||||
| 187 | ||||||
| 188 | <xsl:value -of | |||||
| 189 | select="$s tart-tag-s tart" | |||||
| 190 | /> | |||||
| 191 | ||||||
| 192 | <xsl:call- template | |||||
| 193 | name="elem ent-name" | |||||
| 194 | > | |||||
| 195 | ||||||
| 196 | <xsl:with- param | |||||
| 197 | name="text " | |||||
| 198 | select="na me()" | |||||
| 199 | /> | |||||
| 200 | ||||||
| 201 | </xsl:call -template> | |||||
| 202 | ||||||
| 203 | <xsl:apply -templates | |||||
| 204 | select="@* " | |||||
| 205 | mode="xml- to-string" | |||||
| 206 | /> | |||||
| 207 | ||||||
| 208 | <xsl:for-e ach | |||||
| 209 | select="na mespace::* " | |||||
| 210 | > | |||||
| 211 | ||||||
| 212 | <xsl:call- template | |||||
| 213 | name="proc ess-namesp ace-node" | |||||
| 214 | > | |||||
| 215 | ||||||
| 216 | <xsl:with- param | |||||
| 217 | name="elem ent" | |||||
| 218 | select="$e lement" | |||||
| 219 | /> | |||||
| 220 | ||||||
| 221 | <xsl:with- param | |||||
| 222 | name="dept h" | |||||
| 223 | select="$d epth" | |||||
| 224 | /> | |||||
| 225 | ||||||
| 226 | </xsl:call -template> | |||||
| 227 | ||||||
| 228 | </xsl:for- each> | |||||
| 229 | ||||||
| 230 | <xsl:choos e> | |||||
| 231 | ||||||
| 232 | <xsl:when | |||||
| 233 | test="node () or not( $use-empty -syntax)" | |||||
| 234 | > | |||||
| 235 | ||||||
| 236 | <xsl:value -of | |||||
| 237 | select="$s tart-tag-e nd" | |||||
| 238 | /> | |||||
| 239 | ||||||
| 240 | <xsl:apply -templates | |||||
| 241 | mode="xml- to-string" | |||||
| 242 | > | |||||
| 243 | ||||||
| 244 | <xsl:with- param | |||||
| 245 | name="dept h" | |||||
| 246 | select="$d epth + 1" | |||||
| 247 | /> | |||||
| 248 | ||||||
| 249 | </xsl:appl y-template s> | |||||
| 250 | ||||||
| 251 | <xsl:value -of | |||||
| 252 | select="$e nd-tag-sta rt" | |||||
| 253 | /> | |||||
| 254 | ||||||
| 255 | <xsl:call- template | |||||
| 256 | name="elem ent-name" | |||||
| 257 | > | |||||
| 258 | ||||||
| 259 | <xsl:with- param | |||||
| 260 | name="text " | |||||
| 261 | select="na me()" | |||||
| 262 | /> | |||||
| 263 | ||||||
| 264 | </xsl:call -template> | |||||
| 265 | ||||||
| 266 | <xsl:value -of | |||||
| 267 | select="$e nd-tag-end " | |||||
| 268 | /> | |||||
| 269 | ||||||
| 270 | </xsl:when > | |||||
| 271 | ||||||
| 272 | <xsl:other wise> | |||||
| 273 | ||||||
| 274 | <xsl:value -of | |||||
| 275 | select="$e mpty-tag-e nd" | |||||
| 276 | /> | |||||
| 277 | ||||||
| 278 | </xsl:othe rwise> | |||||
| 279 | ||||||
| 280 | </xsl:choo se> | |||||
| 281 | ||||||
| 282 | </xsl:temp late> | |||||
| 283 | ||||||
| 284 | ||||||
| 285 | <xsl:templ ate | |||||
| 286 | name="proc ess-namesp ace-node" | |||||
| 287 | > | |||||
| 288 | ||||||
| 289 | <xsl:param | |||||
| 290 | name="elem ent" | |||||
| 291 | /> | |||||
| 292 | ||||||
| 293 | <xsl:param | |||||
| 294 | name="dept h" | |||||
| 295 | /> | |||||
| 296 | ||||||
| 297 | <xsl:varia ble | |||||
| 298 | name="decl aredAbove" | |||||
| 299 | > | |||||
| 300 | ||||||
| 301 | <xsl:call- template | |||||
| 302 | name="isDe claredAbov e" | |||||
| 303 | > | |||||
| 304 | ||||||
| 305 | <xsl:with- param | |||||
| 306 | name="dept h" | |||||
| 307 | select="$d epth - 1" | |||||
| 308 | /> | |||||
| 309 | ||||||
| 310 | <xsl:with- param | |||||
| 311 | name="elem ent" | |||||
| 312 | select="$e lement/.." | |||||
| 313 | /> | |||||
| 314 | ||||||
| 315 | </xsl:call -template> | |||||
| 316 | ||||||
| 317 | </xsl:vari able> | |||||
| 318 | ||||||
| 319 | <xsl:if | |||||
| 320 | ||||||
| 321 | test="(not ($exclude- unused-pre fixes) or ($element | $element //@* | $el ement//*)[ namespace- uri()=curr ent()]) an d not(stri ng($declar edAbove)) and name() !='xml'" | |||||
| 322 | > | |||||
| 323 | ||||||
| 324 | <xsl:value -of | |||||
| 325 | select="$s pace" | |||||
| 326 | /> | |||||
| 327 | ||||||
| 328 | <xsl:value -of | |||||
| 329 | select="$n s-decl" | |||||
| 330 | /> | |||||
| 331 | ||||||
| 332 | <xsl:if | |||||
| 333 | test="name ()" | |||||
| 334 | > | |||||
| 335 | ||||||
| 336 | <xsl:value -of | |||||
| 337 | select="$c olon" | |||||
| 338 | /> | |||||
| 339 | ||||||
| 340 | <xsl:call- template | |||||
| 341 | name="ns-p refix" | |||||
| 342 | > | |||||
| 343 | ||||||
| 344 | <xsl:with- param | |||||
| 345 | name="text " | |||||
| 346 | select="na me()" | |||||
| 347 | /> | |||||
| 348 | ||||||
| 349 | </xsl:call -template> | |||||
| 350 | ||||||
| 351 | </xsl:if> | |||||
| 352 | ||||||
| 353 | <xsl:value -of | |||||
| 354 | select="$e quals" | |||||
| 355 | /> | |||||
| 356 | ||||||
| 357 | <xsl:value -of | |||||
| 358 | select="$a ttribute-d elimiter" | |||||
| 359 | /> | |||||
| 360 | ||||||
| 361 | <xsl:call- template | |||||
| 362 | name="ns-u ri" | |||||
| 363 | > | |||||
| 364 | ||||||
| 365 | <xsl:with- param | |||||
| 366 | name="text " | |||||
| 367 | select="st ring(.)" | |||||
| 368 | /> | |||||
| 369 | ||||||
| 370 | </xsl:call -template> | |||||
| 371 | ||||||
| 372 | <xsl:value -of | |||||
| 373 | select="$a ttribute-d elimiter" | |||||
| 374 | /> | |||||
| 375 | ||||||
| 376 | </xsl:if> | |||||
| 377 | ||||||
| 378 | </xsl:temp late> | |||||
| 379 | ||||||
| 380 | ||||||
| 381 | <xsl:templ ate | |||||
| 382 | name="isDe claredAbov e" | |||||
| 383 | > | |||||
| 384 | ||||||
| 385 | <xsl:param | |||||
| 386 | name="elem ent" | |||||
| 387 | /> | |||||
| 388 | ||||||
| 389 | <xsl:param | |||||
| 390 | name="dept h" | |||||
| 391 | /> | |||||
| 392 | ||||||
| 393 | <xsl:if | |||||
| 394 | test="$dep th > 0" | |||||
| 395 | > | |||||
| 396 | ||||||
| 397 | <xsl:choos e> | |||||
| 398 | ||||||
| 399 | <xsl:when | |||||
| 400 | ||||||
| 401 | test="$ele ment/names pace::*[na me(.)=name (current() ) and .=cu rrent()]" | |||||
| 402 | > | |||||
| 403 | 1 | |||||
| 404 | ||||||
| 405 | </xsl:when > | |||||
| 406 | ||||||
| 407 | <xsl:when | |||||
| 408 | test="$ele ment/names pace::*[na me(.)=name (current() )]" | |||||
| 409 | /> | |||||
| 410 | ||||||
| 411 | <xsl:other wise> | |||||
| 412 | ||||||
| 413 | <xsl:call- template | |||||
| 414 | name="isDe claredAbov e" | |||||
| 415 | > | |||||
| 416 | ||||||
| 417 | <xsl:with- param | |||||
| 418 | name="dept h" | |||||
| 419 | select="$d epth - 1" | |||||
| 420 | /> | |||||
| 421 | ||||||
| 422 | <xsl:with- param | |||||
| 423 | name="elem ent" | |||||
| 424 | select="$e lement/.." | |||||
| 425 | /> | |||||
| 426 | ||||||
| 427 | </xsl:call -template> | |||||
| 428 | ||||||
| 429 | </xsl:othe rwise> | |||||
| 430 | ||||||
| 431 | </xsl:choo se> | |||||
| 432 | ||||||
| 433 | </xsl:if> | |||||
| 434 | ||||||
| 435 | </xsl:temp late> | |||||
| 436 | ||||||
| 437 | ||||||
| 438 | <xsl:templ ate | |||||
| 439 | match="@*" | |||||
| 440 | mode="xml- to-string" | |||||
| 441 | > | |||||
| 442 | ||||||
| 443 | <xsl:value -of | |||||
| 444 | select="$s pace" | |||||
| 445 | /> | |||||
| 446 | ||||||
| 447 | <xsl:call- template | |||||
| 448 | name="attr ibute-name " | |||||
| 449 | > | |||||
| 450 | ||||||
| 451 | <xsl:with- param | |||||
| 452 | name="text " | |||||
| 453 | select="na me()" | |||||
| 454 | /> | |||||
| 455 | ||||||
| 456 | </xsl:call -template> | |||||
| 457 | ||||||
| 458 | <xsl:value -of | |||||
| 459 | select="$e quals" | |||||
| 460 | /> | |||||
| 461 | ||||||
| 462 | <xsl:value -of | |||||
| 463 | select="$a ttribute-d elimiter" | |||||
| 464 | /> | |||||
| 465 | ||||||
| 466 | <xsl:call- template | |||||
| 467 | name="attr ibute-valu e" | |||||
| 468 | > | |||||
| 469 | ||||||
| 470 | <xsl:with- param | |||||
| 471 | name="text " | |||||
| 472 | select="st ring(.)" | |||||
| 473 | /> | |||||
| 474 | ||||||
| 475 | </xsl:call -template> | |||||
| 476 | ||||||
| 477 | <xsl:value -of | |||||
| 478 | select="$a ttribute-d elimiter" | |||||
| 479 | /> | |||||
| 480 | ||||||
| 481 | </xsl:temp late> | |||||
| 482 | ||||||
| 483 | ||||||
| 484 | <xsl:templ ate | |||||
| 485 | match="com ment()" | |||||
| 486 | mode="xml- to-string" | |||||
| 487 | > | |||||
| 488 | ||||||
| 489 | <xsl:value -of | |||||
| 490 | select="$c omment-sta rt" | |||||
| 491 | /> | |||||
| 492 | ||||||
| 493 | <xsl:call- template | |||||
| 494 | name="comm ent-text" | |||||
| 495 | > | |||||
| 496 | ||||||
| 497 | <xsl:with- param | |||||
| 498 | name="text " | |||||
| 499 | select="st ring(.)" | |||||
| 500 | /> | |||||
| 501 | ||||||
| 502 | </xsl:call -template> | |||||
| 503 | ||||||
| 504 | <xsl:value -of | |||||
| 505 | select="$c omment-end " | |||||
| 506 | /> | |||||
| 507 | ||||||
| 508 | </xsl:temp late> | |||||
| 509 | ||||||
| 510 | ||||||
| 511 | <xsl:templ ate | |||||
| 512 | match="pro cessing-in struction( )" | |||||
| 513 | mode="xml- to-string" | |||||
| 514 | > | |||||
| 515 | ||||||
| 516 | <xsl:value -of | |||||
| 517 | select="$p i-start" | |||||
| 518 | /> | |||||
| 519 | ||||||
| 520 | <xsl:call- template | |||||
| 521 | name="pi-t arget" | |||||
| 522 | > | |||||
| 523 | ||||||
| 524 | <xsl:with- param | |||||
| 525 | name="text " | |||||
| 526 | select="na me()" | |||||
| 527 | /> | |||||
| 528 | ||||||
| 529 | </xsl:call -template> | |||||
| 530 | ||||||
| 531 | <xsl:value -of | |||||
| 532 | select="$s pace" | |||||
| 533 | /> | |||||
| 534 | ||||||
| 535 | <xsl:call- template | |||||
| 536 | name="pi-t ext" | |||||
| 537 | > | |||||
| 538 | ||||||
| 539 | <xsl:with- param | |||||
| 540 | name="text " | |||||
| 541 | select="st ring(.)" | |||||
| 542 | /> | |||||
| 543 | ||||||
| 544 | </xsl:call -template> | |||||
| 545 | ||||||
| 546 | <xsl:value -of | |||||
| 547 | select="$p i-end" | |||||
| 548 | /> | |||||
| 549 | ||||||
| 550 | </xsl:temp late> | |||||
| 551 | ||||||
| 552 | ||||||
| 553 | <xsl:templ ate | |||||
| 554 | match="tex t()" | |||||
| 555 | mode="xml- to-string" | |||||
| 556 | > | |||||
| 557 | ||||||
| 558 | <xsl:call- template | |||||
| 559 | name="text -content" | |||||
| 560 | > | |||||
| 561 | ||||||
| 562 | <xsl:with- param | |||||
| 563 | name="text " | |||||
| 564 | select="st ring(.)" | |||||
| 565 | /> | |||||
| 566 | ||||||
| 567 | </xsl:call -template> | |||||
| 568 | ||||||
| 569 | </xsl:temp late> | |||||
| 570 | ||||||
| 571 | ||||||
| 572 | <xsl:templ ate | |||||
| 573 | name="elem ent-name" | |||||
| 574 | > | |||||
| 575 | ||||||
| 576 | <xsl:param | |||||
| 577 | name="text " | |||||
| 578 | /> | |||||
| 579 | ||||||
| 580 | <xsl:value -of | |||||
| 581 | select="$t ext" | |||||
| 582 | /> | |||||
| 583 | ||||||
| 584 | </xsl:temp late> | |||||
| 585 | ||||||
| 586 | ||||||
| 587 | <xsl:templ ate | |||||
| 588 | name="attr ibute-name " | |||||
| 589 | > | |||||
| 590 | ||||||
| 591 | <xsl:param | |||||
| 592 | name="text " | |||||
| 593 | /> | |||||
| 594 | ||||||
| 595 | <xsl:value -of | |||||
| 596 | select="$t ext" | |||||
| 597 | /> | |||||
| 598 | ||||||
| 599 | </xsl:temp late> | |||||
| 600 | ||||||
| 601 | ||||||
| 602 | <xsl:templ ate | |||||
| 603 | name="attr ibute-valu e" | |||||
| 604 | > | |||||
| 605 | ||||||
| 606 | <xsl:param | |||||
| 607 | name="text " | |||||
| 608 | /> | |||||
| 609 | ||||||
| 610 | <xsl:varia ble | |||||
| 611 | name="esca ped-markup " | |||||
| 612 | > | |||||
| 613 | ||||||
| 614 | <xsl:call- template | |||||
| 615 | name="esca pe-markup- characters " | |||||
| 616 | > | |||||
| 617 | ||||||
| 618 | <xsl:with- param | |||||
| 619 | name="text " | |||||
| 620 | select="$t ext" | |||||
| 621 | /> | |||||
| 622 | ||||||
| 623 | </xsl:call -template> | |||||
| 624 | ||||||
| 625 | </xsl:vari able> | |||||
| 626 | ||||||
| 627 | <xsl:choos e> | |||||
| 628 | ||||||
| 629 | <xsl:when | |||||
| 630 | test="$att ribute-del imiter = & quot;'&quo t;" | |||||
| 631 | > | |||||
| 632 | ||||||
| 633 | <xsl:call- template | |||||
| 634 | name="repl ace-string " | |||||
| 635 | > | |||||
| 636 | ||||||
| 637 | <xsl:with- param | |||||
| 638 | name="text " | |||||
| 639 | select="$e scaped-mar kup" | |||||
| 640 | /> | |||||
| 641 | ||||||
| 642 | <xsl:with- param | |||||
| 643 | name="repl ace" | |||||
| 644 | select="&q uot;'" ;" | |||||
| 645 | /> | |||||
| 646 | ||||||
| 647 | <xsl:with- param | |||||
| 648 | name="with " | |||||
| 649 | select="'& amp;apos;' " | |||||
| 650 | /> | |||||
| 651 | ||||||
| 652 | </xsl:call -template> | |||||
| 653 | ||||||
| 654 | </xsl:when > | |||||
| 655 | ||||||
| 656 | <xsl:when | |||||
| 657 | test="$att ribute-del imiter = ' "'" | |||||
| 658 | > | |||||
| 659 | ||||||
| 660 | <xsl:call- template | |||||
| 661 | name="repl ace-string " | |||||
| 662 | > | |||||
| 663 | ||||||
| 664 | <xsl:with- param | |||||
| 665 | name="text " | |||||
| 666 | select="$e scaped-mar kup" | |||||
| 667 | /> | |||||
| 668 | ||||||
| 669 | <xsl:with- param | |||||
| 670 | name="repl ace" | |||||
| 671 | select="'& quot;'" | |||||
| 672 | /> | |||||
| 673 | ||||||
| 674 | <xsl:with- param | |||||
| 675 | name="with " | |||||
| 676 | select="'& amp;quot;' " | |||||
| 677 | /> | |||||
| 678 | ||||||
| 679 | </xsl:call -template> | |||||
| 680 | ||||||
| 681 | </xsl:when > | |||||
| 682 | ||||||
| 683 | <xsl:other wise> | |||||
| 684 | ||||||
| 685 | <xsl:call- template | |||||
| 686 | name="repl ace-string " | |||||
| 687 | > | |||||
| 688 | ||||||
| 689 | <xsl:with- param | |||||
| 690 | name="text " | |||||
| 691 | select="$e scaped-mar kup" | |||||
| 692 | /> | |||||
| 693 | ||||||
| 694 | <xsl:with- param | |||||
| 695 | name="repl ace" | |||||
| 696 | select="$a ttribute-d elimiter" | |||||
| 697 | /> | |||||
| 698 | ||||||
| 699 | <xsl:with- param | |||||
| 700 | name="with " | |||||
| 701 | select="'' " | |||||
| 702 | /> | |||||
| 703 | ||||||
| 704 | </xsl:call -template> | |||||
| 705 | ||||||
| 706 | </xsl:othe rwise> | |||||
| 707 | ||||||
| 708 | </xsl:choo se> | |||||
| 709 | ||||||
| 710 | </xsl:temp late> | |||||
| 711 | ||||||
| 712 | ||||||
| 713 | <xsl:templ ate | |||||
| 714 | name="ns-p refix" | |||||
| 715 | > | |||||
| 716 | ||||||
| 717 | <xsl:param | |||||
| 718 | name="text " | |||||
| 719 | /> | |||||
| 720 | ||||||
| 721 | <xsl:value -of | |||||
| 722 | select="$t ext" | |||||
| 723 | /> | |||||
| 724 | ||||||
| 725 | </xsl:temp late> | |||||
| 726 | ||||||
| 727 | ||||||
| 728 | <xsl:templ ate | |||||
| 729 | name="ns-u ri" | |||||
| 730 | > | |||||
| 731 | ||||||
| 732 | <xsl:param | |||||
| 733 | name="text " | |||||
| 734 | /> | |||||
| 735 | ||||||
| 736 | <xsl:call- template | |||||
| 737 | name="attr ibute-valu e" | |||||
| 738 | > | |||||
| 739 | ||||||
| 740 | <xsl:with- param | |||||
| 741 | name="text " | |||||
| 742 | select="$t ext" | |||||
| 743 | /> | |||||
| 744 | ||||||
| 745 | </xsl:call -template> | |||||
| 746 | ||||||
| 747 | </xsl:temp late> | |||||
| 748 | ||||||
| 749 | ||||||
| 750 | <xsl:templ ate | |||||
| 751 | name="text -content" | |||||
| 752 | > | |||||
| 753 | ||||||
| 754 | <xsl:param | |||||
| 755 | name="text " | |||||
| 756 | /> | |||||
| 757 | ||||||
| 758 | <xsl:call- template | |||||
| 759 | name="esca pe-markup- characters " | |||||
| 760 | > | |||||
| 761 | ||||||
| 762 | <xsl:with- param | |||||
| 763 | name="text " | |||||
| 764 | select="$t ext" | |||||
| 765 | /> | |||||
| 766 | ||||||
| 767 | </xsl:call -template> | |||||
| 768 | ||||||
| 769 | </xsl:temp late> | |||||
| 770 | ||||||
| 771 | ||||||
| 772 | <xsl:templ ate | |||||
| 773 | name="pi-t arget" | |||||
| 774 | > | |||||
| 775 | ||||||
| 776 | <xsl:param | |||||
| 777 | name="text " | |||||
| 778 | /> | |||||
| 779 | ||||||
| 780 | <xsl:value -of | |||||
| 781 | select="$t ext" | |||||
| 782 | /> | |||||
| 783 | ||||||
| 784 | </xsl:temp late> | |||||
| 785 | ||||||
| 786 | ||||||
| 787 | <xsl:templ ate | |||||
| 788 | name="pi-t ext" | |||||
| 789 | > | |||||
| 790 | ||||||
| 791 | <xsl:param | |||||
| 792 | name="text " | |||||
| 793 | /> | |||||
| 794 | ||||||
| 795 | <xsl:value -of | |||||
| 796 | select="$t ext" | |||||
| 797 | /> | |||||
| 798 | ||||||
| 799 | </xsl:temp late> | |||||
| 800 | ||||||
| 801 | ||||||
| 802 | <xsl:templ ate | |||||
| 803 | name="comm ent-text" | |||||
| 804 | > | |||||
| 805 | ||||||
| 806 | <xsl:param | |||||
| 807 | name="text " | |||||
| 808 | /> | |||||
| 809 | ||||||
| 810 | <xsl:value -of | |||||
| 811 | select="$t ext" | |||||
| 812 | /> | |||||
| 813 | ||||||
| 814 | </xsl:temp late> | |||||
| 815 | ||||||
| 816 | ||||||
| 817 | <xsl:templ ate | |||||
| 818 | name="esca pe-markup- characters " | |||||
| 819 | > | |||||
| 820 | ||||||
| 821 | <xsl:param | |||||
| 822 | name="text " | |||||
| 823 | /> | |||||
| 824 | ||||||
| 825 | <xsl:varia ble | |||||
| 826 | name="ampE scaped" | |||||
| 827 | > | |||||
| 828 | ||||||
| 829 | <xsl:call- template | |||||
| 830 | name="repl ace-string " | |||||
| 831 | > | |||||
| 832 | ||||||
| 833 | <xsl:with- param | |||||
| 834 | name="text " | |||||
| 835 | select="$t ext" | |||||
| 836 | /> | |||||
| 837 | ||||||
| 838 | <xsl:with- param | |||||
| 839 | name="repl ace" | |||||
| 840 | select="'& amp;'" | |||||
| 841 | /> | |||||
| 842 | ||||||
| 843 | <xsl:with- param | |||||
| 844 | name="with " | |||||
| 845 | select="'& amp;amp;'" | |||||
| 846 | /> | |||||
| 847 | ||||||
| 848 | </xsl:call -template> | |||||
| 849 | ||||||
| 850 | </xsl:vari able> | |||||
| 851 | ||||||
| 852 | <xsl:varia ble | |||||
| 853 | name="ltEs caped" | |||||
| 854 | > | |||||
| 855 | ||||||
| 856 | <xsl:call- template | |||||
| 857 | name="repl ace-string " | |||||
| 858 | > | |||||
| 859 | ||||||
| 860 | <xsl:with- param | |||||
| 861 | name="text " | |||||
| 862 | select="$a mpEscaped" | |||||
| 863 | /> | |||||
| 864 | ||||||
| 865 | <xsl:with- param | |||||
| 866 | name="repl ace" | |||||
| 867 | select="'& lt;'" | |||||
| 868 | /> | |||||
| 869 | ||||||
| 870 | <xsl:with- param | |||||
| 871 | name="with " | |||||
| 872 | select="'& amp;lt;'" | |||||
| 873 | /> | |||||
| 874 | ||||||
| 875 | </xsl:call -template> | |||||
| 876 | ||||||
| 877 | </xsl:vari able> | |||||
| 878 | ||||||
| 879 | <xsl:call- template | |||||
| 880 | name="repl ace-string " | |||||
| 881 | > | |||||
| 882 | ||||||
| 883 | <xsl:with- param | |||||
| 884 | name="text " | |||||
| 885 | select="$l tEscaped" | |||||
| 886 | /> | |||||
| 887 | ||||||
| 888 | <xsl:with- param | |||||
| 889 | name="repl ace" | |||||
| 890 | select="'] ]>'" | |||||
| 891 | /> | |||||
| 892 | ||||||
| 893 | <xsl:with- param | |||||
| 894 | name="with " | |||||
| 895 | select="'] ]&gt;' " | |||||
| 896 | /> | |||||
| 897 | ||||||
| 898 | </xsl:call -template> | |||||
| 899 | ||||||
| 900 | </xsl:temp late> | |||||
| 901 | ||||||
| 902 | ||||||
| 903 | <xsl:templ ate | |||||
| 904 | name="repl ace-string " | |||||
| 905 | > | |||||
| 906 | ||||||
| 907 | <xsl:param | |||||
| 908 | name="text " | |||||
| 909 | /> | |||||
| 910 | ||||||
| 911 | <xsl:param | |||||
| 912 | name="repl ace" | |||||
| 913 | /> | |||||
| 914 | ||||||
| 915 | <xsl:param | |||||
| 916 | name="with " | |||||
| 917 | /> | |||||
| 918 | ||||||
| 919 | <xsl:varia ble | |||||
| 920 | name="stri ngText" | |||||
| 921 | select="st ring($text )" | |||||
| 922 | /> | |||||
| 923 | ||||||
| 924 | <xsl:choos e> | |||||
| 925 | ||||||
| 926 | <xsl:when | |||||
| 927 | test="cont ains($stri ngText,$re place)" | |||||
| 928 | > | |||||
| 929 | ||||||
| 930 | <xsl:value -of | |||||
| 931 | select="su bstring-be fore($stri ngText,$re place)" | |||||
| 932 | /> | |||||
| 933 | ||||||
| 934 | <xsl:value -of | |||||
| 935 | select="$w ith" | |||||
| 936 | /> | |||||
| 937 | ||||||
| 938 | <xsl:call- template | |||||
| 939 | name="repl ace-string " | |||||
| 940 | > | |||||
| 941 | ||||||
| 942 | <xsl:with- param | |||||
| 943 | name="text " | |||||
| 944 | ||||||
| 945 | select="su bstring-af ter($strin gText,$rep lace)" | |||||
| 946 | /> | |||||
| 947 | ||||||
| 948 | <xsl:with- param | |||||
| 949 | name="repl ace" | |||||
| 950 | select="$r eplace" | |||||
| 951 | /> | |||||
| 952 | ||||||
| 953 | <xsl:with- param | |||||
| 954 | name="with " | |||||
| 955 | select="$w ith" | |||||
| 956 | /> | |||||
| 957 | ||||||
| 958 | </xsl:call -template> | |||||
| 959 | ||||||
| 960 | </xsl:when > | |||||
| 961 | ||||||
| 962 | <xsl:other wise> | |||||
| 963 | ||||||
| 964 | <xsl:value -of | |||||
| 965 | select="$s tringText" | |||||
| 966 | /> | |||||
| 967 | ||||||
| 968 | </xsl:othe rwise> | |||||
| 969 | ||||||
| 970 | </xsl:choo se> | |||||
| 971 | ||||||
| 972 | </xsl:temp late> | |||||
| 973 | ||||||
| 974 | </xsl:styl esheet> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.