1

xml からリストを使用して ComboBox を生成し、それらのアイテムからリンクを作成しようとしています。次に、同じことをしたいと思いますが、リストと 2 番目の xml プロパティを使用します。

ComboBox - リストが「name」プロパティです。

http://hpn-marketing.com/drmc/content/index.php/specialty/flashxml/

リスト - リストは「名前」プロパティです。

hpn-marketing.com/drmc/content/index.php/physician/flashxml/

リンク例:

  <specialty specialties_id="1" name="Pediatrics"/>

リンクを生成します: /content/index.php/physician/specialty/1

  <physician physician_id="1" permalink="" name="Fugate, James K. Jr, MD"...

リンクを生成します: /content/index.php/physician/single/1

前もって感謝します。

アダム

4

1 に答える 1

0

これにより、正しい方向に進むことができます。

<xsl:template match="specialty">
 <xsl:text>content/index.php/physician/</xsl:text>
 <xsl:choose>
    <xsl:when test="@specialties_id">
      <xsl:value-of select="concat('specialty/', @specialties_id)" />
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="concat('single/', @physician_id)" />
    </xsl:otherwise>
 </xsl:choose>
</template>
于 2009-07-13T19:43:42.133 に答える