V
V
Vanes Ri_Lax2015-10-08 08:50:03
PHP
Vanes Ri_Lax, 2015-10-08 08:50:03

How to make a quick transition to another element of the information system?

Hello, I'm trying to make a site on hostcms,
to view one element of the information system, I wrote an XSL template:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:hostcms="http://www.hostcms.ru/"
   exclude-result-prefixes="hostcms">
   <xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
   
   <xsl:template match="/">
      <xsl:apply-templates select="/informationsystem/informationsystem_item[active = 1]" />
   </xsl:template>

   <xsl:template match="informationsystem_item">
      <div class="col-lg-3">
      </div>
      <div class="col-lg-9">
         
         <h3>
            <xsl:value-of disable-output-escaping="yes" select="name"/>
         </h3>
         <xsl:value-of disable-output-escaping="yes" select="text"/>
      </div>
   </xsl:template>
</xsl:stylesheet>

Everything works, but I can’t figure out how to make it so that when viewing an IP element there is a link to the next element, when the user clicks on it, it goes directly to viewing the next IP element. If the user is viewing the last element of the IS, then the link must refer to the first element.
How do I get a link to the next IP element?
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question