Flash:ComboBox 和 List 填充 XML 数据,然后创建链接

发布于 2024-07-27 01:21:11 字数 763 浏览 2 评论 0原文

我希望生成一个带有 xml 列表的 ComboBox,然后从这些项目创建链接。 其次,我想要同样的,但有一个列表和第二个 xml 属性。

ComboBox - 列表是“名称”属性。

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

列表 - 列表是“name”属性。

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

提前致谢。

亚当

I am looking to generate a ComboBox with a list from xml, and then create links from those items. Secondly, I would like to to the same, but with a list and a second xml property.

ComboBox - with the list being the "name" property.

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

List - with the list being the "name" property.

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

Linking example:

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

Would generate the link:
/content/index.php/physician/specialty/1

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

Would generate the link:
/content/index.php/physician/single/1

Thanks in advance.

Adam

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自我难过 2024-08-03 01:21:11

这应该会让你走上正轨:

<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>

This should get you on the right track:

<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>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文