Archive For The “Markup Language – XSL” Tutte le categorie:

GET VALUE VIA {}

<order customer="{ordine/cliente/@codice}"  item="{count(ordine/righe/riga)"}

XSLT TRANSFORMATION

set xmlIn = CreateObject(“Microsoft.XMLDOM”) set xslGen = CreateObject(“Microsoft.XMLDOM”) xmlIn.async = false xslGen.async = false strServerPath= MyServerPath.Value xmlIn.load strServerPath & “baz.xml” xslGen.load strServerPath & “baz.xsl” result.innerHTML= xmlIn.transformNode(xslGen.documentElement)

FORMAT NUMBER

con 3 decimali:  format-number($value, ‘###.###0,000’)

VIEW TEXT

Tag per la visualizzazione del testo  <xsl:text>:</xsl:text>

IMPORT XML DOCUMENT

<?xml version=”1.0″?> <xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” version=”1.0″>  <xsl:variable name=”authors” select=”document(‘authors.xml’)/authors” /> <xsl:template match=”/”> <html> <body> <ul> <xsl:for-each select=”books/book”> <li> <xsl:value-of select=”@title” /> [<xsl:value-of select=”$authors/author[@idAuthor = current()/@idAuthor]/@name” />] </li> </xsl:for-each> </ul> </body> </html> </xsl:template> </xsl:stylesheet>

SORT

<?xml version=3D”1.0″?> <xsl:transform xmlns:xsl=3D”http://www.w3.org/1999/XSL/Transform” version=”1.0″> <xsl:template match=”/”> <html><body> <xsl:for-each select=3D”products/tangible | products/service”> <xsl:sort select=”local-name(.)” /> <div><xsl:value-of select=”@id” /> – <xsl:value-of select=”@name”/></div> </xsl:for-each> </body></html> </xsl:template> </xsl:transform>

Go Top