Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question