Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListCan another select be added?Can another select be added?
Previous
 
Next
New Post
5/13/2008 10:49 AM
 

I'm not sure if this is possible or I'm using the wrong syntax, but I'd like to add a second condition to the udt:Data[contains  is possible.

Something along the lines of <xsl:variable name="currentData" select="udt:Data[contains(udt:Lists,'P')]" /> and <xsl:variable name="currentData" select="udt:Data[contains(udt:Display,'true')]" />

Thanks in advance!

 
New Post
5/13/2008 11:51 AM
 

Why not use <xsl:if test="field=value">?

The XSL will have to look at all of the underlying XML data anyway, so the speed/performance should be the same.

 
New Post
5/13/2008 12:17 PM
 

I took a crack at that, but my syntax isn't correct, as I get an error:   Error Description:XSLT compile error

 

<xsl:template match="/udt:UserDefinedTable">
    <xsl:if test="Display=true">
    <xsl:variable name="currentData" select="udt:Data[contains(udt:Category,'administrator')]" />
    <xsl:apply-templates select="$currentData" mode="list">
    </xsl:apply-templates>
    </xsl:if>
</xsl:template>

 
New Post
5/23/2008 5:07 PM
 

Did you try 
<xsl:variable name="currentData" select="udt:Data[contains(udt:Lists,'P') and
contains(udt:Display,'true')]" />

If the column Display is of type boolean, the correct statement is

<xsl:variable name="currentData" select="udt:Data[contains(udt:Lists,'P') and  udt:Display_UDT_Original='true'  ]" /> 

 
New Post
6/3/2008 2:46 AM
 

I had the same question, and the first syntax worked for me where both were text fields.

Thanks again to all you geniuses for your help on these boards!!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListCan another select be added?Can another select be added?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out