W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2003

Re: XSL :: String Search

From: Colin Savage <sav912@hotmail.com>
Date: Mon, 27 Oct 2003 12:45:40 +0200
To: <www-xsl-fo@w3.org>
Message-ID: <BAY7-DAV25aeuUcYiQy0000d913@hotmail.com>

These questions are better suited to an xslt mailing list, this is xsl
formatting objects.
Try this

<xsl:value-of select="books/book/text()" />

Colin

----- Original Message ----- 
From: "karthikeyan.balasubramanian"
<karthikeyan.balasubramanian@aspiresys.com>
To: <www-xsl-fo@w3.org>
Sent: Monday, October 27, 2003 12:15 PM
Subject: XSL :: String Search


>
> Hi,
>
>   I have an xml like this:
>
>   <books>
>         <book>XSLT Reference
>             <author>Micheal Kay</author>
>             <price>$20.00</price>
>         </book>
>   </books>
>
>   In my xsl if i put
>
> <xsl:value-of select="book" />
>
>   I get all the items(including author and price) but I just want
>   [ XSLT Reference ]
>
>   I have no control over this xml so I can't make a tag for
> [ book name :: XSLT Reference ]
>
>   I can't use substring-before($sting, $string-search) cause
> I dont know what is the delimiter.
>
>   Any ideas, clues, pointers :)
>
>   Have a great day.
>
> Karthikeyan B
>
>
>
>
>
Received on Monday, 27 October 2003 05:45:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT