Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
Alter Hase
Beruf: Softwareentwickler (aktuell Web/Node); Freiberuflicher Google Proxy
Quellcode |
|
1 2 3 4 |
<?xml version="1.0" ?> <svg xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width="180" height="180" fill="white"/> </svg> |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 |
<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width="60" height="60" fill="white"/> <rect x="60" y="0" width="60" height="60" fill="white"/> <rect x="120" y="0" width="60" height="60" fill="white"/> <rect x="0" y="60" width="60" height="60" fill="white"/> <rect x="120" y="60" width="60" height="60" fill="white"/> <rect x="0" y="120" width="60" height="60" fill="white"/> <rect x="60" y="120" width="60" height="60" fill="white"/> <rect x="120" y="120" width="60" height="60" fill="white"/> </svg> |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" /> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> |
Alter Hase
Beruf: Softwareentwickler (aktuell Web/Node); Freiberuflicher Google Proxy
Alter Hase
Beruf: Softwareentwickler (aktuell Web/Node); Freiberuflicher Google Proxy
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" /> <xsl:variable name="var"> <xsl:value-of select="svg/rect/@width"/>> </xsl:variable> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="@width"> <xsl:attribute name="width"> <xsl:value-of select="$var"/> </xsl:attribute> </xsl:template> </xsl:stylesheet> |
XML |
|
1 2 3 4 5 |
<xsl:template match="@width|@height"> <xsl:attribute name="{name()}"> <xsl:value-of select="number(.) div 3"/> </xsl:attribute> </xsl:template> |
Alter Hase
Beruf: Softwareentwickler (aktuell Web/Node); Freiberuflicher Google Proxy
XML |
|
1 2 3 4 5 |
<xsl:template match="@width|@height"> <!-- Für jedes width- oder height-Attribut... --> <xsl:attribute name="{name()}"> <!-- Erstelle ein Attribut des selben Namens (und überschreibe damit das alte) im Element... --> <xsl:value-of select="number(.) div 3"/> <!-- Und weise ihm dessen Wert geteilt durch 3 zu. --> </xsl:attribute> </xsl:template> |
Alter Hase
Beruf: Softwareentwickler (aktuell Web/Node); Freiberuflicher Google Proxy
Alter Hase
Beruf: Softwareentwickler (aktuell Web/Node); Freiberuflicher Google Proxy
Werbeanzeige