Sean C Sieger | 4 Mar 2005 03:06
Picon
Favicon

xpath20.el


Could an xml file be searched directly using XPath 2.0
in nxml-mode? Or, put another way, could xpath.el
http://www.emacswiki.org/elisp/xpath.el
and path-parser.el
http://www.emacswiki.org/elisp/xpath-parser.el
be hacked into something like an xpath20.el that could
run XPath 2.0 expressions against a file in nxml-mode?

Forgive the naive question, I am new and looking for a
project in elisp xml.

-Sean

	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

(Continue reading)

drkm | 7 Mar 2005 15:39
Picon
Favicon

Re: ** Where Is James Clark? **


James Clark <jjc <at> auth-only.jclark.com> writes:

> What happened is that I started doing a bit of open source advocacy in
> Thailand (where I've lived for some time), and ended up getting asked to
> manage the Thai Government's effort to promote open source.

  Good news.

>                                                                   So I
> hope you'll forgive me if I temporarily give priority to this work over
> supporting/hacking nXML mode.

  We'll try to survive (hum, at least, I'll try).  Thanks for your
work, and good luck,

--drkm

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

(Continue reading)

drkm | 8 Mar 2005 15:03
Picon
Favicon

Re: spell checking and xml:lang


Vidar Gundersen <vbg-list <at> bitjungle.com> writes:

> (add-hook 'nxml-mode-hook
>   (lambda ()
>     (save-excursion
>       (when (search-forward-regexp "xml:lang=\"no\"" 250 0)
> 	(setq ispell-local-dictionary "norsk")))))

  Maybe the following can interest you.  It is a little bit more
general.  It read the value of the xml:lang attribute (conforming to
RFC 3066), and look in an alist for the associated dictionnary name.
It is also a little bit more rigorous, in permitting spaces between
"xml:lang", "=" and ['"], and check pairing of ' or ".

  Also, I incremented the bound in search-forward-regexp (250 is too
less, think for examlpe about comments in the beginning of the file).
IMHO, 2500 is not so an huge value for Emacs.  In comparison, this
message body count +/- 2000 characters.

    (defvar nxml-flyspell:xml-lang-to-ispell-lang-alist
      '(("no"    . "norsk")
        ("en-US" . "american")
        ("en"    . "english")
        ("fr"    . "french"))
      "TODO: ...")

    (add-hook 'nxml-mode-hook
      (lambda ()
        (save-excursion
(Continue reading)

purpled17 | 10 Mar 2005 04:51
Picon
Favicon

pretty printing /formating existing XML


Hi All,

Not sure if this is the right place to go but I've installed nxml, 
psgml, and XAE, and read about them yet cannot find a solution to my 
problem.

I have some existing xml documents without any whitespace between the 
elements. I would like to load such a document (without a DTD or 
schema) through an Emacs editor mode and run a command to format the 
xml document.  I want to turn the giant one line of text into a 
indented, color coded, tree-like structure for easy viewing.  I'm 
thinking along the lines of xml display in MS Internet Explorer - 
none of the actual document's format would change, only the alignment 
of whitespace.  I don't need active buttons to click that would 
expand and collapse elements, but something in Emacs that would make 
my existing xml readable would be nice.  Does such a mode/command 
exist?  Thanks for the help,

-Glenn B.

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

(Continue reading)

Pawson, David | 10 Mar 2005 09:15
Picon

RE: pretty printing /formating existing XML


    -----Original Message-----
    From: purpled17 

    Not sure if this is the right place to go but I've 
    installed nxml, psgml, and XAE, and read about them yet 
    cannot find a solution to my problem.

    I have some existing xml documents without any whitespace 
    between the elements. I would like to load such a document 
    (without a DTD or
    schema) through an Emacs editor mode and run a command to 
    format the xml document. 

    
    http://www.dpawson.co.uk/xsl/sect2/identity.html#d5257e13

XSLT using an identity transform with the output set to indent="yes"
Make sure you use a processor that treats this properly, Xalan
and Saxon do.

HTH DaveP

--

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
(Continue reading)

Paulo Sequeira | 10 Mar 2005 14:47
Picon
Favicon

Re: pretty printing /formating existing XML


purpled17 wrote:
> 
> Hi All,
> 
> Not sure if this is the right place to go but I've installed nxml, 
> psgml, and XAE, and read about them yet cannot find a solution to my 
> problem.
> 
> I have some existing xml documents without any whitespace between the 
> elements. I would like to load such a document (without a DTD or 
> schema) through an Emacs editor mode and run a command to format the 
> xml document.  I want to turn the giant one line of text into a 
> indented, color coded, tree-like structure for easy viewing.  I'm 
> thinking along the lines of xml display in MS Internet Explorer - 
> none of the actual document's format would change, only the alignment 
> of whitespace.  I don't need active buttons to click that would 
> expand and collapse elements, but something in Emacs that would make 
> my existing xml readable would be nice.  Does such a mode/command 
> exist?  Thanks for the help,
> 
> -Glenn B.
> 
mmm... I had the same problem. What I do in such cases is to pass the 
XML document through xmllint --format, so I don't solve it with Emacs 
nor nxml.

Paulo.

 
(Continue reading)

David Abrahams | 10 Mar 2005 15:58
Picon
Picon
Favicon
Gravatar

Re: ** Where Is James Clark? **


James Clark <jjc <at> auth-only.jclark.com> writes:

> On Tue, 2005-02-15 at 09:27 -0500, David Abrahams wrote:
>> 
>> Sorry for the loud subject line, but has anyone heard from him since
>> 26 Oct 2004?  I am stuck with some things related to nxml-mode, and
>> I'm hoping he hasn't dropped off the face of the planet because it
>> seems like nobody else can answer my questions.
>
> I'm still here, but unfortunately I haven't been able to find any time
> to give to nXML mode since November 2004, and am unlikely to be able to
> find any at least until November 2005.
>
> What happened is that I started doing a bit of open source advocacy in
> Thailand (where I've lived for some time), and ended up getting asked to
> manage the Thai Government's effort to promote open source.  Frankly it
> was a lot more fun hacking nXML mode, than it is putting on a suit and
> tie, going to the office everyday at 8.30 and spending most of my time
> sitting in meetings and writing proposals, but I see this as a once in a
> lifetime opportunity to really make a difference, and I feel I need to
> make a 100% effort to try to make this most of this opportunity.  So I
> hope you'll forgive me if I temporarily give priority to this work over
> supporting/hacking nXML mode.

Thanks for replying.  Sorry not to reply sooner, but I understand
you.  Good luck with your project!

--

-- 
Dave Abrahams
(Continue reading)

Adrian Robert | 10 Mar 2005 16:43
Favicon

Re: pretty printing /formating existing XML


> I have some existing xml documents without any whitespace between the
> elements. I would like to load such a document (without a DTD or
> schema) through an Emacs editor mode and run a command to format the
> xml document.  I want to turn the giant one line of text into a
> indented, color coded, tree-like structure for easy viewing.

Haven't run nxml mode lately to check this works, but Ctrl-X,h , Meta-x 
'format-region' should do it.

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Adrian Robert | 10 Mar 2005 16:59
Favicon

Re: pretty printing /formating existing XML


On Mar 10, 2005, at 10:43 AM, Adrian Robert wrote:

>
>> I have some existing xml documents without any whitespace between the
>> elements. I would like to load such a document (without a DTD or
>> schema) through an Emacs editor mode and run a command to format the
>> xml document.  I want to turn the giant one line of text into a
>> indented, color coded, tree-like structure for easy viewing.
>
> Haven't run nxml mode lately to check this works, but Ctrl-X,h , Meta-x
> 'format-region' should do it.

Sorry, I meant 'indent-region'.

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Lennart Borgman | 10 Mar 2005 17:06
Picon
Picon
Favicon

Clickable links in a xhtml document


I have asked this question before, but I will try to be more specific this
time:

I would like to have clickable links (a-tags) in an xhtml document editied
with nxml-mode in Emacs. I would like this links to take me to the link
address in the document (or in another document) - still in nxml-mode.

Is there someone who has an idea how to implement this? Are there any points
in the parser where it is easy to catch links (a-tags) and targets (id=.. or
name=...)?

- Lennart

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


Gmane