|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: <xsl:choose> <xsl:when> and graphics salad!
> It looks like: haha at last some information:-) > <document> so your root element is called document. so the xpath expression /text/@text.role will always return an empty node set, which counts as false to xsl:if. > Should I just do <xsl:template match="packet"> > <xsl:value-of select="text"/> well that is always empty, judging by your example, packet only has para and illust children, no text children. Of course I don't have any idea what the desired output should be but I'd guess you want to have <xsl:template match=packet"> .... and then have queries like select="para" select="illust/image" etc. you need to use relative queries from the current node, not absolute paths starting with / if yoxrmu intend to get different values for different instances of the template. The current node will be whichever node you specify in the match attribute to xsl:template. David 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








