Jump to content

faizal_md

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by faizal_md

  1. Hi all, Got the solution.<xsl:if test="count(//subjectidentification/######/item) != position()">/</xsl:if>Thanks
  2. Hi , I need to add "/" (Slash) in between the display data. Can anyone help?here is my xml<?xml version="1.0" encoding="windows-1252"?><?xml-stylesheet type="text/xsl" href = "sample.xsl"?><subjectidentification> <######> <item>MALE </item> <item>FEMALE</item> <item>UNKNOWN</item> </######></subjectidentification> here is my xsl<?xml version="1.0" encoding="windows-1252"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Root template --><xsl:template match="/"><HTML><BODY><H4> SUBJECT INDENTIFICATION DATA </H4><TABLE ><TR><TD align="left">######:</TD> <xsl:for-each select="subjectidentification/######"> <xsl:for-each select="item"> <TD align="left"> <xsl:value-of select="."/> </TD> </xsl:for-each> </xsl:for-each></TR></TABLE ></TABLE></BODY></HTML></xsl:template></xsl:stylesheet>>My output should look like thisSUBJECT INDENTIFICATION DATA ###### : MALE / FEMALE / UNKNOWN(Please note the "/" between male and female and unknown, how can we display "/" between the data dynamically, "/" should not apear before or after the last data.)Any help ?Thank you.
  3. Hi , I need to add "/" in between the display data. Can anyone help?here is my xml<?xml version="1.0" encoding="windows-1252"?><?xml-stylesheet type="text/xsl" href = "sample.xsl"?><subjectidentification> <######> <item>MALE </item> <item>FEMALE</item> <item>UNKNOWN</item> </######></subjectidentification> here is my xsl<?xml version="1.0" encoding="windows-1252"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Root template --><xsl:template match="/"><HTML><BODY><H4> SUBJECT INDENTIFICATION DATA </H4><TABLE ><TR><TD align="left">######:</TD> <xsl:for-each select="subjectidentification/######"> <xsl:for-each select="item"> <TD align="left"> <xsl:value-of select="."/> </TD> </xsl:for-each> </xsl:for-each></TR></TABLE ></TABLE></BODY></HTML></xsl:template></xsl:stylesheet>>My output should look like this SUBJECT INDENTIFICATION DATA ###### : MALE / FEMALE / UNKNOWN(Please note the "/" between male and female and unknown, how can we display "/" between the data dynamically, "/" should not apear before or after the last data.)Any help ?Thank you.
×
×
  • Create New...