xsl-list
[Top] [All Lists]

Re: [xsl] collections

2011-01-19 04:16:53


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(_dot_)szabo(_at_)lexisnexis(_dot_)at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146






--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--
Gerrit Imsieke
Geschäftsfü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(_dot_)imsieke(_at_)le-tex(_dot_)de, http://www.le-tex.de

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

Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>