Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

including .htc / .css files

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
My jsp page generates table output by using Xml Data Islands. For the table sorting functionality I am using a combination of Xml + javascript + Xsl + Css + htc.. Question iz while I can embed the xml,xsl,javascript in the jsp page I need to find a way to embed the .css & .htc code in the jsp/html page.. how iz it possible & how would I reference the functions in these code in my html..??? Thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Not sure what you are looking for, but an external file?

<link rel="stylesheet" href="somefile.css" type="text/css">

I think htc is like this

<?import namespace="theName" implementation="someFile.htc"/>
 
Sarran Vidyakumar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
<xsl aram name="sortorder" select="'descending'"/>
<xsl aram name="sortfield" select="'com_device'"/>

<xsl:template match="ROOT">
<ROOT>
<xsl:apply-templates/>
</ROOT>
</xsl:template>

<xsl:template match="read">
<read>
<xsl:apply-templates>
<xsl:comment><xsl:sort select="*[name()=$sortfield]" order="{$sortorder}" /></xsl:comment>
<xsl:sort select="com_device" order="ascending"/>
</xsl:apply-templates>
</read>
</xsl:template>

<xsl:template match="read/*">
<xsl:element name="{name()}">
<xsl:value-of select="." />
</xsl:element>
</xsl:template>

</xsl:stylesheet>


Hey Guys:
am using the above xsl to sort xml file below
<ROOT>
<read><oneCol>data</oneCol><twoCol>data</twoCol><read>
<read><oneCol>data</oneCol><twoCol>data</twoCol><read>
<read><oneCol>data</oneCol><twoCol>data</twoCol><read>
<read><oneCol>data</oneCol><twoCol>data</twoCol><read>
<read><oneCol>data</oneCol><twoCol>data</twoCol><read>
<read><oneCol>data</oneCol><twoCol>data</twoCol><read>
......
</ROOT>

Problem iz the output produces the same xml file.. The sorting does not occur ?? Any Suggestions ?? Thanks..
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Keep topics one per post. Moved other post to XML...closing this one.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic