This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: generate xsl 1.0 from 2.0 question



thanks jeni, I came to sort of the same conclusion(our posts crossed), post
starts with line about coffee kicking in.
><xsl:template name="createChoose">
><xsl:param name="translatorName" />
>  <temp:choose>
>    <xsl:for-each select="$translator[@name = $translatorName]
>                            /(* | processing-instruction())">
>      <xsl:call-template name="translator" />
>    </xsl:for-each>
>  </temp:choose>
></xsl:template>

>[Note that I've swapped the child::node()[name() != ''] for something>
>that explicitly selects the nodes that have names (i.e. elements and
>processing instructions) using XPath 2.0 general steps. I suspect that
>you're just after the elements, in which case you could just use
>$translator[@name = $translatorName]/*.]

yep I was just after the elements. :) thanks again.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]