[oXygen-user] The last problems

Aga Shirazi
Wed Nov 12 15:24:12 CST 2003


George,

	I greatly appreciate your help in this. Im a C++ programmer, and it seems 
XML doesnt use the same logic at certain instances. I just have 2 more 
problems:

FIRST:
In this problem, I just need the last four digits of the ISBN. But the 
catch is that the ISBN length is not constant, but is always greater than 4.


XML FILE
<ISBN>23fds783222s</ISBN>
<ISBN>f2h123as</ISBN>
<ISBN>2hgfhhgf3432h123asssz</ISBN>


XSL FILE:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0">
<xsl:output encoding="UTF-16" method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="ISBN"/>
    <xsl:value-of select="substring-after(select="string-length()", 4)"/>
</xsl:template>
</xsl:stylesheet>


SECOND:
I have no idea how to go about this one. I just have to select the text 
before the number. Do you have any idea?

XML FILE
<INFO>hotmail 1990</INFO>
<INFO>some text here 2000</INFO>
<INFO>some more text gere 9092</INFO>

I greatly appreciate your help George.

Thanks a MILLION
Aga Shirazi







More information about the oXygen-user mailing list