fix xslt template

終了済み 投稿 Jul 1, 2015 着払い
終了済み

We have one a database that we publish data on a web using a xslt, the main issue is that the data in access is not homogeneius and the xslt template gives us wrong result depending the value in the database

We have a database with values $a, $b ... $a is not repetible, but $b it may be one or more

At the end of each $a , $b or $c it may appear a dot '.' or not in the database

$a AAAA

$b BBBB

$b CCCC

We wish to show always "AAAA. BBBB. CCCC" the xslt should manage if there is '.' or not... if there is a '.' just add a blank space, if not add '. '

This is the current xslt, but now it is not managing at all spaces and '.'

<xsl:template name="nameABCDN">

<xsl:for-each select="marc:subfield[@code='a']">

<xsl:call-template name="chopPunctuation">

<xsl:with-param name="chopString" select="."/>

</xsl:call-template>

</xsl:for-each>

<xsl:for-each select="marc:subfield[@code='b']">

<xsl:value-of select="."/>

<xsl:choose>

<xsl:when test="position() != last()">

<xsl:text> -- </xsl:text>

</xsl:when>

</xsl:choose>

</xsl:for-each>

<xsl:template name="chopPunctuation">

<xsl:param name="chopString"/>

<xsl:variable name="length" select="string-length($chopString)"/>

<xsl:choose>

<xsl:when test="$length=0"/>

<xsl:when test="contains('.:/ ', substring($chopString,$length,1))">

<xsl:call-template name="chopPunctuation">

<xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>

</xsl:call-template>

</xsl:when>

<xsl:when test="not($chopString)"/>

<xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>

</xsl:choose>

</xsl:template>

HTML パール XSLT

プロジェクトID: #7976379

プロジェクトについて

11個の提案 リモートプロジェクト アクティブ Aug 7, 2015

11 人のフリーランサーが、平均€23/時間で、この仕事に入札しています。

danagnostos

Hello, I’d like to be considered for your project. I am a senior developer with over 20 years of experience in software development, using mainly open source technologies (PHP, Zend Framework, CodeIgniter, Apache, もっと

€28 EUR / 時間
(19件のレビュー)
6.0
poornachand

I have 6 years experience in XSLT and ready to fix it.

€18 EUR / 時間
(24件のレビュー)
5.3
PerlIsFun

It would obviously help if you could provide, alongside the description, a small set of test values. Equally interesting, on what platform (OS, packages, ...) you'll want to run the XSLT program. There might be [intere もっと

€25 EUR / 時間
(29件のレビュー)
5.3
grammal

Hi, As I understand, you would like to fix the given xsl transform. It currently produces: AAAABBBB -- CCCC and you would like it to produce: AAAA. BBBB. CCCC Is this correct? I can provide you with もっと

€18 EUR / 時間
(8件のレビュー)
3.9
superior5

George Bailey here from Los Angeles, USA. I am expert in XSLT and have done similar task already. I would like to help you out in the project. Hope to hear back soon, Regards,

€28 EUR / 時間
(57件のレビュー)
7.4
jeet1212

I am expert in XML technologies like XML, DTD/Schema XSLT, CSS, XPATH, XQuery etc.. and following are some of my past projects (not a comprehensive list): 1. Boeing: Converted XML to PDF documents (technical documen もっと

€18 EUR / 時間
(8件のレビュー)
4.2
JaksonRus

Hi, I have strong skills in XSLT development and years of experience. -------------------------------------------------------------------------------

€22 EUR / 時間
(0件のレビュー)
0.0
kukuashu

Hi This is Ashutosh and I am applying for the project to "fix xslt template". For the past 7 years I have been working as a freelancer with firms like Airtel, Vodafone, InfoVista, Wipro, Tech Mahindra, Accenture. もっと

€22 EUR / 時間
(0件のレビュー)
0.0
perl6

I from Ukraine. Skills: PERL (MVC Catalyst, Mojolicious), jQuery (javascript), Ruby (Ruby on Ralis), git, sql (mysql, pgsql), php, freebsd/linux; Experience of more than 7 years of Perl+jQuery+FreeBSD; Junior Ruby (Ru もっと

€18 EUR / 時間
(0件のレビュー)
0.0