String expressions in XSL

Attila Torcsvari arcpub at
Fri Sep 18 09:29:19 BST 1998


in my XML file I have
<subclass id=A01B>
<ref to="A01B001/00"/>
<subclass id=A01C>
<ref to="A01B001/00"/>

I have to generate the following HTML sequences:

from the first reference:
<A href="@A01B001/00">1/00</A>

...because I am in subclass A01B, thus the user should see only
which is sufficient for the user to recognize the referred location.

from the second reference:
<A href="@A01B001/00">A01B 1/00</A>
...because it is in another subclass, thus the user _must_ now that the
reference points to another subclass.

(The "@" designates "late-bound reference", used by another tool which
will resolve it a separate step.)

I have got about 800.000 of such references in about 20*15 MB XML data.

Have I got in XSL _any_ chance to generate these sequences?

I guess _no_. There seems to be _no_ string expression language neither
for patterns nor for "value-of".

Do I have to contaminate my source XML code with redundant data
(which I do now but I do not like it)
should I generate temporal XML files in Java, which is a neverending
story due to the sizes of the files
is it planned that at least regexp patterns will appear in XSL
is there a chance that there will be _again_ ECMAScript in XSL?
is there any XML transformation tool which is less painful to use than a
set of Java/Python/C/AWK/Perl programs?

Samples can be reached at
These files were generated with proprietary tools which I plan to change
to XML tools, if I can.

I guess my problems are not too special.

Thanks for help.

Attila Torcsvari
Arcanum Development

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list