Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: Pavel Lepin <p.lepin@-------.--->
To: NULL
Date: 9/7/2007 5:18:00 PM


Kniffel <twongoracer@g...> wrote in
<1189172607.583006.120940@w...>:
>> 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´t get the clue!
> I tested with preceding and peceding-sibling, but I think
> I didn´t 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.


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