Hirdetés
- Nothing Phone 2a - semmi nem drága
- Milyen okostelefont vegyek?
- Yettel topik
- Kiszivárgott, mikor érkezik a Galaxy S26
- Android szakmai topik
- Megjelent a Redmi Turbo 5 Max, az első telefon Dimensity 9500s-sel
- Vivo X300 Pro – messzebbre lát, mint ameddig bírja
- Szívós, szép és kitartó az új OnePlus óra
- Honor Magic8 Pro - bevált recept kölcsönvett hozzávalókkal
- Neked tükröt, az iPhone Airnek emléket állít a Realme
-
Mobilarena

Új hozzászólás Aktív témák
-
Jester01
veterán
válasz
zserrbo
#6654
üzenetére
Az xmlns miatt nem megy. Ugye ha namespace-be teszed az elemeket akkor már nem az a neve, hogy "body" ...
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:template match="xhtml:body" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<!-- first div -->
<xsl:variable name="root" select="xhtml:div" />
<xsl:element name="entity">
<xsl:attribute name="id">
<xsl:value-of select="$root/@id" />
</xsl:attribute>
<xsl:attribute name="type">
<xsl:value-of select="substring-before(substring($root/@class, 3), ' ')" />
</xsl:attribute>
<xsl:attribute name="top">
<xsl:value-of select="substring-before(substring-after($root/@style, 'top:'), 'px;')" />
</xsl:attribute>
<xsl:attribute name="left">
<xsl:value-of select="substring-before(substring-after($root/@style, 'left:'), 'px;')" />
</xsl:attribute>
<xsl:value-of select="normalize-space(string($root))" />
<xsl:for-each select="$root/following-sibling::xhtml:div">
<xsl:element name="property">
<xsl:attribute name="id">
<xsl:value-of select="@id" />
</xsl:attribute>
<xsl:attribute name="type">kulcs</xsl:attribute>
<xsl:attribute name="top">
<xsl:value-of select="substring-before(substring-after(@style, 'top:'), 'px;')" />
</xsl:attribute>
<xsl:attribute name="left">
<xsl:value-of select="substring-before(substring-after(@style, 'left:'), 'px;')" />
</xsl:attribute>
<xsl:value-of select="normalize-space(string(.))" />
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Új hozzászólás Aktív témák
● olvasd el a téma összefoglalót!
- BESZÁMÍTÁS! Apple Macbook Air 13 2022 M2 8GB 512GB notebook garanciával hibátlan működéssel
- 137 - Lenovo Legion Pro 7 (16IRX9H) - Intel Core i9-14900HX, RTX 4080 - 4 ÉV GARANCIA!
- 131 - Lenovo Legion Pro 7 (16IRX9H) - Intel Core i9-14900HX, RTX 4080 (ELKELT)
- Telefon felvásárlás!! Samsung Galaxy A70/Samsung Galaxy A71/Samsung Galaxy A72
- PS Plus előfizetések kedvező áron
Állásajánlatok
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest



