Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The XPath function element-available() should, aroding to the rec, return true "if and only if the <argument> is the name of an instruction". That is, not for all known XSLT elements.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | origin
Files: files | file ages | folders
SHA1: eb05498afc649a1e6b6bf6cb86d81ed9d9609a15
User & Date: rolf 2008-05-24 21:59:58
Context
2008-05-24
22:01
See file. check-in: b4d7122edf user: rolf tags: trunk, origin
21:59
The XPath function element-available() should, aroding to the rec, return true "if and only if the <argument> is the name of an instruction". That is, not for all known XSLT elements. check-in: eb05498afc user: rolf tags: trunk, origin
2008-03-04
21:04
See file. Leaf check-in: 1b5b7e10e4 user: rolf tags: tdom-0.8.3-postrelease, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/tdom.tcl.

535
536
537
538
539
540
541
542
543
544



545
546



547
548
549








550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
                                            nodeListType nodeList args} {

    if {[llength $args] != 2} {
        error "element-available(): wrong # of args!"
    }
    foreach { arg1Typ arg1Value } $args break
    set str [::dom::xpathFuncHelper::coerce2string $arg1Typ $arg1Value ]
    switch $str {
        xsl:stylesheet -
        xsl:transform -



        xsl:include -
        xsl:import -



        xsl:strip-space -
        xsl:preserve-space -
        xsl:template -








        xsl:apply-templates -
        xsl:apply-imports -
        xsl:call-template -
        xsl:element -
        xsl:attribute -
        xsl:attribute-set -
        xsl:text -
        xsl:processing-instruction -
        xsl:comment -
        xsl:copy -
        xsl:value-of -
        xsl:number -
        xsl:for-each -
        xsl:if -
        xsl:choose -
        xsl:when -
        xsl:otherwise -
        xsl:sort -
        xsl:variable -
        xsl:param -
        xsl:copy-of -
        xsl:with-param -
        xsl:key -
        xsl:message -
        xsl:decimal-format -
        xsl:namespace-alias -
        xsl:output -
        xsl:fallback {
            return [list bool true]
        }
        default {
            return [list bool false]
        }
    }







|
|
|
>
>
>
|
|
>
>
>
|
|
|
>
>
>
>
>
>
>
>





<









<
<
<

<

<
<

<
<
<







535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568

569
570
571
572
573
574
575
576
577



578

579


580



581
582
583
584
585
586
587
                                            nodeListType nodeList args} {

    if {[llength $args] != 2} {
        error "element-available(): wrong # of args!"
    }
    foreach { arg1Typ arg1Value } $args break
    set str [::dom::xpathFuncHelper::coerce2string $arg1Typ $arg1Value ]
    # The XSLT recommendation says: "The element-available
    # function returns true if and only if the expanded-name
    # is the name of an instruction." The following xsl
    # elements are not in the category instruction.
    # xsl:attribute-set 
    # xsl:decimal-format 
    # xsl:include
    # xsl:key 
    # xsl:namespace-alias
    # xsl:output
    # xsl:param
    # xsl:strip-space
    # xsl:preserve-space
    # xsl:template
    # xsl:import
    # xsl:otherwise
    # xsl:sort
    # xsl:stylesheet
    # xsl:transform
    # xsl:with-param
    # xsl:when
    switch $str {
        xsl:apply-templates -
        xsl:apply-imports -
        xsl:call-template -
        xsl:element -
        xsl:attribute -

        xsl:text -
        xsl:processing-instruction -
        xsl:comment -
        xsl:copy -
        xsl:value-of -
        xsl:number -
        xsl:for-each -
        xsl:if -
        xsl:choose -



        xsl:variable -

        xsl:copy-of -


        xsl:message -



        xsl:fallback {
            return [list bool true]
        }
        default {
            return [list bool false]
        }
    }