From: Ralph H. <ra...@ra...> - 2005-11-06 10:09:20
|
=20 I want to have a link, that jumps to a normal web page when I click on = it. Nothing added automatically. In my *xq file (which I started from = biblio.xq) I have =20 <NR id=3D"{ $current//idno[@type=3D"DB"]/text() }"> = { $current//idno[@type=3D"DB"]/text() }=20 </NR> =20 Where an id number is written in *.xsl with =20 <xsl:template match=3D"NR"> <a href=3D"xml/{@id}s.xml"> <xsl:apply-templates/> </a> </xsl:template> =20 I have experimented with different ways but=85.. I get the number, = eg 1129, but with this procedure, when I hold the arrow over the link, I = get =20 http://localhost:8080/exist/axel/xml/1129s.xml =20 and I wanted to produce =20 http://blabla.com/xml/1129s.xml =20 Any idea??? If I write all of blabla.com/xml/ after the href, I get it = all added to the localhost:8080/exist. =20 =20 And next problem that I have not started on yet =96 if I get a number = less than 1000, like 35, I want to produce a link like =20 http://blabla.com/xml/0035s.xml =20 Any hint would be real nice=85=85. Any easy way to concatenate some = zeroes and then only save the last 4 characters or something?=20 =20 =20 Ralph =20 Ralph Haglund, Sl=E5tterv=E4gen 2B, SE-22738 LUND, Sweden=20 <mailto:ral...@gm...> ral...@gm...=20 <mailto:ra...@ra...> ra...@ra... ral...@ya... Preferred when I travel. http://ralphhaglund.info Main website. http://ralphtheogre.no-ip.info In local computer, most updated. =20 |