Thank you very much for the very fast response.

 

 

Maybe good to know for you:

 

By now I take

   xmlns:saxon="http://icl.com/saxon"  

without troubles. Since saxon:evaluate-node()

 

 

Now I take

   xmlns:saxon2="http://saxon.sf.net/"

 

 

   xmlns:saxon="http://icl.com/saxon"  

        <xsl:value-of  select="function-available('saxon:evaluate-node')"/>             FALSE

 

   xmlns:saxon2="http://saxon.sf.net/"

        <xsl:value-of  select="function-available('saxon:evaluate-node')"/>             TRUE

 

 

With best regards

Michael

 

 

 

 

 


Von: Michael Kay [mailto:mike@saxonica.com]
Gesendet: Donnerstag, 14. Mai 2009 17:08
An: 'Mailing list for the SAXON XSLT and XQuery processor'
Betreff: Re: [saxon] Saxon solved an string-Result as XPath ?

 

I think what you are looking for is the saxon:evaluate() or saxon:evaluate-node() extension function.

 

See

 

http://www.saxonica.com/documentation/extensions/functions/evaluate.html

 

http://www.saxonica.com/documentation/extensions/functions/evaluate-node.html

 

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay

 


From: Burkert, Michael [mailto:Michael.Burkert@gigatronik.com]
Sent: 14 May 2009 15:12
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Saxon solved an string-Result as XPath ?

Hello !

 

Is it possible, to simulate an Getter/Setter Interface ?

 

 

The wanted way:

 

Instead of   <xsl:value-of   select=“//table/title“ />

Saxon execute the return as XPath: <xsl:value-of   select=“{//XPath[ @name=’Title’ ]}“ />

 

The {} like in       <xsl:result-document href="{$Zieldokument}" >

 

So an xml document defines it owne access.

 

 

<table>

    <XPaths>

                        <XPath name="Title">//table/title</XPath>

    </XPaths>

            <title>troubleshooting</title>

            <tr>

                        <td name="symptom">wet</td>

                        <td name="symptom">muddy</td>

                        <td name="cause">raining</td>

                        <td name="solution">get hat</td>

                        <td name="solution">wear boots</td>

            </tr>

            <tr>

                        <td name="symptom">hungry</td>

                        <td name="cause">lunch time</td>

                        <td name="solution">eat lunch</td>

            </tr>

</table>

 

 

With best regards

Michael