[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] String expressions in XSL
XSLers, in my XML file I have <subclass id=A01B> ... <ref to="A01B001/00"/> ... </subclass> ... <subclass id=A01C> ... <ref to="A01B001/00"/> ... </subclass> 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 1/00 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) or should I generate temporal XML files in Java, which is a neverending story due to the sizes of the files or is it planned that at least regexp patterns will appear in XSL or is there a chance that there will be _again_ ECMAScript in XSL? or 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 http://www.arcanum.com/patclass/index.htm 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@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|