Jump to content

ymeyaw

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by ymeyaw

  1. hi,The output is not under my control as it is system generated. But anyway, thanks for ur advise. I already know how to do that by using:<xsl:value-of select="substring-after(attribute[@name=address],'poscode=')"/>Anway, once again..thanks :)

    I would suggest redesigning the element:
    <address>  <building>28</building>  <road>Thomson Road</road>  <postcode>75500</postcode></address>

    Instead of using this as an attribute, you can then make it a sub-element of you main element:

    <objectelement>    <data1>    <data2>    <data3>    <address>       <building>28</building>       <road>Thomson Road</road>       <postcode>75500</postcode>    </address></objectelement>

    This will make it easier to navigate the address.Usually attributes are saved for things like id or colour (although these can also be treated as elements), because these are more likely to be used as attributes by HTML - that's how I think of it anyway.In theory, you don't have to have any attributes at all!!Dooberry.

  2. hi,The output is not under my control as it is system generated. But anyway, thanks for ur advise. I already know how to do that by using:<xsl:value-of select="substring-after(attribute[@name=address],'poscode=')"/>Anway, once again..thanks :)

    I would suggest redesigning the element:
    <address>  <building>28</building>  <road>Thomson Road</road>  <postcode>75500</postcode></address>

    Instead of using this as an attribute, you can then make it a sub-element of you main element:

    <objectelement>    <data1>    <data2>    <data3>    <address>       <building>28</building>       <road>Thomson Road</road>       <postcode>75500</postcode>    </address></objectelement>

    This will make it easier to navigate the address.Usually attributes are saved for things like id or colour (although these can also be treated as elements), because these are more likely to be used as attributes by HTML - that's how I think of it anyway.In theory, you don't have to have any attributes at all!!Dooberry.

  3. i have one of the attributes in xml where it is too long to put into table. I wish to do some filtering before convert t o HTML:<attribute name="address">28 thomson road,poscode=75500</attribute>which part of my code (below) should be modified in order to select only the poscode value instead of the whole string?<xsl:value-of select="attribute[@name=address]"/>looking forward for u help..thanks :)

  4. hi,Need help here. I succesfully converted data in xml to html table. However, i wish freeze the title of the table so that when i scroll down the html page, i am still able to see description of each column of the table.

  5. hi ,Good day. I had a problem when selecting data from a table which look like this:source targeta ba cb ab cwhat basic SQL statement i should use inorder to :1) select data with two ways define in the table , with result like this:source target (2 ways) a b b a2) select data with only one way define in the table, with result look like this:source target (1 way) a c b cThanks in advance....

×
×
  • Create New...