Re: [xsl] collections

Subject: Re: [xsl] collections
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Wed, 19 Jan 2011 11:16:33 +0100
On 19.01.2011 11:05, Szabo, Patrick (LNG-VIE) wrote:
Hi,

I'm using XSLT 2.0.
I'm storing a couple of file in a collection by doing that:

<xsl:variable name="collection"
select="collection(../Journals/ARD/final/2011/?select=ARD_2011_6106_*.xm
l)"/>

Now I've got 2 questions.

1.
Am I using collection() correctly ?!

You should submit the argument to collection as a string:
collection('../Journals/ARD/final/2011/?select=ARD_2011_6106_*.xml')
AFIK, the internal structure of this argument is implementation specific. Above usage is ok for saxon. I cannot judge whether it's ok for other XSLT 2 processors.



I want to select all files which's filenames start with ARD_2011_6106_.

2.
I want to output the file-names of those files that are stored in the
collection - how do I do that ?!

<xsl:for-each select="$collection/*"> FILE: <xsl:message select="base-uri(.)" /> </xsl:for-each>

-Gerrit


Thanks in advance ! Kind regards

. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
  XSLT-Entwickler
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.szabo@xxxxxxxxxxxxx
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146


-- Gerrit Imsieke GeschC$ftsfC<hrer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke@xxxxxxxxx, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

GeschC$ftsfC<hrer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard VC6ckler

Current Thread