From owner-freebsd-current@freebsd.org Fri Jun 9 09:24:38 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DBB98BF06B4 for ; Fri, 9 Jun 2017 09:24:38 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pf0-x232.google.com (mail-pf0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ADD9E84E3A for ; Fri, 9 Jun 2017 09:24:38 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pf0-x232.google.com with SMTP id x63so26613566pff.3 for ; Fri, 09 Jun 2017 02:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=NlNfqF+ooFKYn8EnlkHUgE3Zxost5I0IhQklCvbRZSA=; b=FbrxNmzy7xalZF81w+U+w0tqon1jIkgrSkfeTqPMFAEgbrLPxGZrnRSsjJBUzuG19S xkrkFdTinaIu7hrM/dZlASEBJX0FEiu+vJX4OxIaj1j15lTvGAiPRdJyPjFmZ/3NtfvM NrEHBCjDs+2WmSW+86IvMFnhvz13UDBNzisqoiR4AawkwM/fCbLvQRZPA38XovEB6vS5 wpPnspUUdO9jYIrC8ge30kzJxRFjgh1fbeFYftw+C52Wv/6hkB9d/STrWw7oHyhE6m7B gz79sEXM5IwBiJZEzx3qlofLn2HAb1SXsc1AMbYhNFoHdEFd25v2Ip0XIf6xohEftoF3 00TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NlNfqF+ooFKYn8EnlkHUgE3Zxost5I0IhQklCvbRZSA=; b=DC23D+LrRmHGSNyg+akwc5OGpe8KdoL9VKT7ZwtVgIVlSN9RXEXJVTn17gqUBXkyIm nqzeqz8PtAYl/it/zETm5trW+Qv8lKK8IGXmcQp8pETbC/bWKcs2zhZPfkgKUs4FIdly a2GQoFCGHAh2oIhGF9B8LxGfVNg7K8bIPxY5w+Y/2AfxeZ8tJ6rQqAX4OkdE/684SeN1 ue77EKND+USV2HMy8uf13qCIjoZ/Wq/YCh7eZr+tl9TzeCFNBtzxAmo+eTVXDL0hm610 izOEbedtzeca3aTR4/9T6RmQatlV8ddf92/4kGk8OjgA/qz9iK9ThpUC/Loss1HEiK+W SoNQ== X-Gm-Message-State: AODbwcA5QbwFp1wthfaNYaHJ3bMZpGr0IJ2F3/Ppyhm3+CDJYBuIr9Q0 11AY/jbIYSdATbc6Yus3lUhGeauediIf X-Received: by 10.98.0.69 with SMTP id 66mr2857787pfa.127.1497000277496; Fri, 09 Jun 2017 02:24:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.162.5 with HTTP; Fri, 9 Jun 2017 02:24:37 -0700 (PDT) From: blubee blubeeme Date: Fri, 9 Jun 2017 17:24:37 +0800 Message-ID: Subject: xsltproc outputting nothing To: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2017 09:24:39 -0000 I tried sending this email to the gnome mailing list but no responses. Can possibly get some help with this here: === Hi I am trying to convert a .xsl file to a hpp file but the output is only a blank file. Here's the commands that I am running: ======================================== xsltproc --verbose --stringparam format hpp ./lib/tag.xsl > TAGS.hpp creating dictionary for stylesheet reusing dictionary from ./lib/tag.xsl for stylesheet xsltParseStylesheetProcess : found stylesheet xsltPrecomputeStylesheet: removing ignorable blank node xsltParseTemplateContent: removing text xsltCompilePattern : parsing 'tags' xsltCompilePattern : parsed tags, default priority 0.000000 added pattern : 'tags' priority 0.000000 parsed 1 templates Resolving attribute sets references freeing dictionary from stylesheet here's the tags.xsl file: ======================================== // Automatically generated from lib/tag.xml using lib/tag.xsl. #ifndef utsushi_tag_hpp_ #define utsushi_tag_hpp_ #include <set> #include <boost/operators.hpp> #include "key.hpp" #include "string.hpp" namespace utsushi { struct tag { //! Collect options and groups by the aspects they affect /*! A %tag::symbol is a string-like key that can be used to indicate * which aspects are affected by an option or group. An option may * specify zero or more %tag symbols. * * Similar to a descriptor, every %tag::symbol provides name() and * text() accessors describing its purpose. A user interface may * use this information to provide a more human-oriented and mostly * self-documenting view of tags. * * \note The UI is responsible for the translation of name() and * text() as well as any formatting of the text(). * * \sa descriptor::name(), descriptor::text() */ class symbol : boost::totally_ordered< symbol > { public: symbol (const key& key, const string& name, const string& text); //! \copybrief descriptor::name const string& name () const; //! \copybrief descriptor::text const string& text () const; bool operator== (const symbol& ts) const; bool operator< (const symbol& ts) const; operator key () const; private: key key_; string name_; string text_; }; static const symbol none; static const symbol ; }; class tags { private: typedef std::set< tag::symbol > container_type; static container_type set_; static void initialize (); public: typedef container_type::size_type size_type; typedef container_type::const_iterator const_iterator; static size_type count (); static const_iterator begin (); static const_iterator end (); }; } // namespace utsushi #endif /* utsushi_tag_hpp_ */ // Automatically generated from tag.xml using tag.xsl. #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "utsushi/i18n.hpp" #include "utsushi/tag.hpp" namespace utsushi { tag::symbol::symbol (const key& key, const string& name, const string& text) : key_(key), name_(name), text_(text) {} const string& tag::symbol::name () const { return name_; } const string& tag::symbol::text () const { return text_; } bool tag::symbol::operator== (const symbol& ts) const { return key_ == ts.key_; } bool tag::symbol::operator< (const tag::symbol& ts) const { return key_ < ts.key_; } tag::symbol::operator key () const { return key_; } const tag::symbol tag:: ( "_", SEC_N_(""), CCB_N_("") ); tags::container_type tags::set_; void tags::initialize () { container_type::iterator hint = set_.begin (); hint = set_.insert (hint, tag::); } tags::size_type tags::count () { if (set_.empty ()) { initialize (); } return set_.size (); } tags::const_iterator tags::begin () { if (set_.empty ()) { initialize (); } return set_.begin (); } tags::const_iterator tags::end () { if (set_.empty ()) { initialize (); } return set_.end (); } } // namespace utsushi Best, Owen