Hi,
I am trying to pull a value in from my XSP page into an XSP Logicsheet. At the moment no value is being pulled in. What am I doing incorrectly?

1. XSP Page (snippet)
<?xml version="1.0"?>

<xsp:page language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:artistDetails="http://www.beyarecords.com/artistDetails/1.0" -- LOGICSHEET REF:
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:util="http://apache.org/xsp/util/2.0"
>

<page>
<xsp:logic>
int artistID = Integer.parseInt(<util:get-sitemap-parameter name="artistID"/>); --VALUE PULLED IN FROM SITEMAP
</xsp:logic>


<artistDetails:id>
</xsp:expr> --- VALUE HELD HERE
</artistDetails:id>

2. XSP Logic Sheet
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsp="http://apache.org/xsp"
xmlns:util="http://apache.org/xsp/util/2.0"
xmlns:artistDetails="http://www.beyarecords.com/artistDetails/1.0"
-- LOGICSHEET REF:
version="1.0">


<xsl:template match="xsp:page">
<xsp:page>
<xsl:apply-templates select="@*"/>


<xsp:structure>

</xsp:include>

</xsp:include>
</xsp:structure>


<xsp:logic>
int artistID = Integer.parseInt(<xsl:apply-templates select="artistDetails:id/node()"/>); -- WANT VALUE PULLED INTO HERE
Artist artist = Artist.getArtist(artistID);


int id = artist.getID();
String artist_name = artist.getArtistName();
String info = artist.getArtistInfo();
String basePhoto1 = Base64.encodeBytes(artist.getArtistPhoto1());
String basePhoto2 = Base64.encodeBytes(artist.getArtistPhoto2());
</xsp:logic>
<xsl:apply-templates/>
</xsp:page>
</xsl:template>

many thanks in advance

On 3 Mar 2004, at 21:07, beyaNet Consultancy wrote:

Christopher,
thanks for your reply. I have implemented your solution but am getting an error. I have attached both my XSP page and the XSP Logic sheet. Please let me know what i am doing here...


many thanks in advance

Andrew

<artist-details.xsp><artistDetails.xsl>
On 3 Mar 2004, at 16:02, Christopher Painter-Wakefield wrote:

<xsp:logic>
int myID = [code to get parameter value here];
</xsp:logic>

<my-logic:get-data>
<my-logic:id><xsp:expr>myID</xsp:expr></my-logic:id>
</my-logic:get-data>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to