[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: select an element

Subject: Re: select an element
From: Honglei Chen <hlchen@xxxxxxxxx>
Date: Wed, 18 May 2005 15:04:08 -0500
honglei chen
Thanks, David. I got it work now by using <xsl:message>.... It is so
powerful to do debug thing. I did not know it since I am new on xsl.
The "Entry_form" is C! rather than "&#00E1" or "/xE1", very weird
though.


Thanks
Helen


On 5/17/05, David Carlisle <davidc@xxxxxxxxx> wrote:
>
>
>  Thanks, David. I tried what you said put the $word="\xE1"; and give
>  initial value for parameter in <xsl:param name="Kentry"
>  select="'\xE1'"/>. And made the line like this:   <xsl:for-each
>  select="/reportname/Entry[substring(ENTRY_FORM,1,$wordLength) =
>
> No: In XML files you need to use XML conventtions so &xE1;
> in PHP files you need to use php conventions which (google tells me) are
> \xE1 so in the XML quoted above you should use XML & notation, although
> if you are passing in a parameter it doesn't matter what you put there
> as the default value is not used.
> What's $wordlength?
>
> change
> <xsl:for-each
> select="/reportname/Entry[substring(ENTRY_FORM,1,$wordLength) =
> substring($Kentry,1,$wordLength)]">
>
> to
>
> <xsl:for-each
> select="/reportname/Entry">
>
> so that you get something and add
>
> <xsl:message>
> ENTRY_FORM=<xsl:value-of select="ENTRY_FORM"/>
> $Kentry=<xsl:value-of select="$Kentry"/>
> $wordLength=<xsl:value-of select="$wordLength"/>
> </xsl:message>
>
> to the for each loop so you see the values that you are testing.
>
> David
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.