Subject: Re: [xsl] toknize() not working with saxon9 From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx> Date: Tue, 16 Mar 2010 20:32:05 +0100 |
XSL-List is provided as a forum for discussion of all things XSL, including answering beginner questions. The experts, including Michael Kay, who participate, do so as they choose and to the extent that they choose.
I am offended by both your implication that a beginner should not ask questions on XSL-List and by your implication that experts should not answer. It is not appropriate on XSL-List to mediate that interaction, or even to suggest that the interaction should be mediated.
It seems to me that you owe apologies to both Mr. Kay and Mr. Kusa.
-- Tommie Usdin Owner, XSL-List
This makes me reflect on whether the world is better off with immediate availability of the most able persons to everyone, or whether these espaecially gifted people should be secluded so that they wisdom may flourish undisturbedly. The danger with seclusion is of course that these people might not see real-life problems any more. Michaels' accessibility and groundedness, listening to user's needs, has rendered Saxon useful to a very high degree. But I think, like in Hollywood or in every banana republic, at some point an aide has to jump in and protect the important people from all-too mundane things. Well, I'm not that aide to understand a kusa's issue without further information, so I'll appeal to another aide that is closer to Michael (or to himself, as he listens to users like me) to refrain from enganging too much in fields that don't bring our case forward.
Just my 2 pence, as a self-declared XSLT2 cheerleader.
(Glad you find your time to work on things like XSLT 2.1 with all these cheerleaders cheering at you...)
Gerrit
On 15.03.2010 21:30, Michael Kay wrote:
Start by answering the question implied in my previous response:
(you don't say anything about how you are running Saxon or which XML parser you are using)
And I also suggested:
Also try showing the value of static-base-uri() in both cases.
It's a little frustrating that I suggested three things for you to do and you only did one of them.
Regards,
Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay
Some XML
On Fri, Mar 12, 2010 at 5:17 PM, Michael Kay<mike@xxxxxxxxxxxx> wrote:processors. Also
Start by seeing what the value of $temp1 is with bothtry showing the value of static-base-uri() in both cases.to an absolute URI.
Since your System ID is a relative URI, the chances are it has something to do with the way the relative URI is expanded
Certainly the problem is much more likely to be with unparsed-entity-uri() than with tokenize(), since the former is inherently far more dependent on your system environment.needs for thisparsers don't even report the information that Saxon'/')[last()]"/>function (you don't say anything about how you are runningSaxon or which XML parser you are using).
Regards,
Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay
-----Original Message----- From: a kusa [mailto:akusa8@xxxxxxxxx] Sent: 12 March 2010 21:50 To: xsl-list Subject: [xsl] toknize() not working with saxon9
Hi
I am trying to use tokenize() to grab the name of an entity.
Here is my input XML:
<!DOCTYPE test [ <!ENTITY g1 SYSTEM "123-g1.tif" NDATA CCITT4>]> <test>
<image id="g1" res="34" inbr="g1"/> </test>
Here is my XSL snippet:
<xsl:template match="image">
<xsl:variable name="temp1" select="unparsed-entity-uri(@inbr)"/> <xsl:variable name="temp2" select="tokenize($temp1,the value of<graphic> <xsl:attribute name="href"><xsl:value-of select="$temp2"/></xsl:attribute> <xsl:attribute name="id" select="@id"/> </graphic>
</xsl:template>
When I run this on an individual file in XML Spy, I getsaxon, itcariable temp2 as '123-g1.tif'. But when I run this usingis empty.
Can anyone help point out what is the issue here?
Thanks in advance.
-- Gerrit Imsieke Geschdftsf|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
Geschdftsf|hrer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard Vvckler
-- Gerrit Imsieke Geschdftsf|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
Geschdftsf|hrer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard Vvckler
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] toknize() not working wit, Imsieke, Gerrit, le- | Thread | [xsl] [ANN] XML Prague live streami, Jim Fuller |
[xsl] Call for Participation: Journ, Jeff Beck | Date | [xsl] How to tell the parser it's n, Jacobus Reyneke |
Month |