|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] evaluate
hi!
i am new to xsl and i have a little problem ...
while generating a xml-file with saxon i want to put an xpath-expression
into the doc.
i can assign values, but i cant get any xpath ...
here is some code:
<xsl:for-each select="document(concat($xml_path, $area,
'/groups.xml'))/groups/group[descendant::a]">
<xsl:choose>
<xsl:when test="@area">
<saxon:assign name="area_test" select="@area"/>
<saxon:assign name="title" select="document(concat($xml_path,
'definitions.xml'))/definitions/global/areas/element[@name =
$area_test]/@translation"/>
</xsl:when>
<xsl:otherwise>
<saxon:assign name="title" select="@title"/>
</xsl:otherwise>
</xsl:choose>
<saxon:assign name="templateName" select="descendant::template/@name"/>
<group ID="{@ID}" title="{$title}" template="temp_{$templateName}">
<xsl:for-each select="descendant::a">
<saxon:assign name="href" select="@href"/>
<saxon:assign name="hrefinhalt" select="."/>
<saxon:assign name="hreftitle" select="document(concat($xml_path,
'structure.xml'))/descendant::*[@ID = $href]/@title"/>
<a href="{$href}" title="{$hreftitle}" contents="{$hrefinhalt}"/>
</xsl:for-each>
</group>
</xsl:for-each>
i would like to get the xpath for 'hreftitle'
=> in this form: /structure[1]/group[2]/group[4]/group[3]/target[3]
hope u can help me - im almost desperate ...
Michael Paffrath
fatmedia - agentur für interaktive medien
Schillerstraße 6
50968 Köln
Tel. 0221 - 660 36 63
Fax. 0221 - 276 03 98
http://www.fatmedia.de/
eMail: paffrath@xxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








