cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naegeli Margrit <margrit.naeg...@ecofin.ch>
Subject RE: XML/XSL Problem
Date Mon, 30 Oct 2000 15:17:25 GMT
hi,

for the moment, try <table width="/page/@width">

for the future, i strongly advise you read up on xsl-t and xpath. also i
recommend posting xsl-questions in xsl-lists, cause they are off-topic here.

this list is getting lots of traffic and people start getting tense.

greetings maggie


> -----Original Message-----
> From: Bjarne Olsen [mailto:Bjarne.Olsen@gmx.net]
> Sent: Monday, October 30, 2000 4:03 PM
> To: cocoon-users@xml.apache.org
> Subject: XML/XSL Problem
> 
> 
> Hi! 
> Once again a boring XML/XSL problem that has stolen me hours of work.
> 
> My XML-File looks like this
> 
> <page width="50%">
> 	<category>
> 		<name>...</name>
> 	</category>
> </page>
> 
> 
> In my XSL-File I have a template for categories. Within this template
> block I want to access the width-attribute of the top-element page.
> 
> <xsl:template match="category>
> 	
> 	<table width="{@width}">
> 	</table>
> 
> </xsl:template>
> 
> I have no clue how to achieve this...
> 
> bye, Bjarne
> 
> 
> 
> <
> 
> -- 
> Sent through GMX FreeMail - http://www.gmx.net
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

Mime
View raw message