Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML/XSL/XPATH how to get a element value

From: Kniffel <twongoracer@---.-->
To: NULL
Date: 9/7/2007 7:26:00 AM

On 7 Sep., 16:18, Pavel Lepin <p.le...@ctncorp.com> wrote:
> Kniffel <twongora...@gmx.de> wrote in
> <1189172607.583006.120...@w3g2000hsg.googlegroups.com>:
>
> >> Read W3C's XPath 1.0 spec. Section 2.2, Axes, is of
> >> particular interest in your predicament.
>
> > Oh I read this some Hours ago, but I can=B4t get the clue!
> > I tested with preceding and peceding-sibling, but I think
> > I didn=B4t have the right syntax.
> > Everytime I get a Error "The stylesheet does not contain a
> > document element. ...maybe empty, or not well-formed..."
>
> Your stylesheet is riddled with well-formedness bugs. I
> recommend you drop whatever you're doing right now and read
> a basic XML tutorial. Then an XPath tutorial. Then some
> sort of introductory XSLT reading. Then get an XML parser
> and an XSLT processor somewhere (I normally recommend
> xmllint and xsltproc--those are command-line tools that
> come with libxml2/libxslt). Armed with your newfound
> knowledge and tools try debugging your stylesheet. If
> there's still something you don't understand, come back
> with a more specific request.
>
> --
> This chickenus crossed the roadus while yodelingus.

My example I showed in my first post, is really minimal to the things
I have running!
The real XSL-file have 320 lines of code. Working Code! And I have 3
other XSL-files also running perfect!
And that thing I try is getting me the error!
When I remove these xsl:choose/when statement everything works!
And I only need the XPATH statement at this little point, because at
this point I have to jump back!
Till now I haven't to do that XPATH thing, but now!

Please help me more!



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent