From owner-freebsd-gnome@freebsd.org Fri Jun 9 07:17:34 2017 Return-Path: Delivered-To: freebsd-gnome@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 B0726BD3528 for ; Fri, 9 Jun 2017 07:17:34 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8E61D8178E for ; Fri, 9 Jun 2017 07:17:34 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 8AAD5BD3527; Fri, 9 Jun 2017 07:17:34 +0000 (UTC) Delivered-To: gnome@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 8A425BD3526 for ; Fri, 9 Jun 2017 07:17:34 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pf0-x234.google.com (mail-pf0-x234.google.com [IPv6:2607:f8b0:400e:c00::234]) (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 583BF8178D for ; Fri, 9 Jun 2017 07:17:34 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pf0-x234.google.com with SMTP id l89so25553012pfi.2 for ; Fri, 09 Jun 2017 00:17:34 -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=Uda0BYbJVoTuTwNNY7AOLN3Ws2nDNFJh2pBEF7+Q5IA=; b=hEF8Tns+Xw06AikdIXx6rrWikr+FQAs8HS9KRORTAQXvqj4huzMDB+9mOit6ArqfoD SLD/w8yzYnOZf0gFyQ9T4pLwehljL9+Cbi0uMLzJBpPUobRCBI/7606ev8bCmENheLD7 UDXj/h2JXD6KKnNIC1/r7gGGgh3sNtdmZR+FWAew0AhMhWNEfQ/K1bLtZ/g2pZtciGck wshO0LiWes8zfpbX2xQE0d6ntIZmiZ/x1xrGqVQOFXvhQl9eL6/Tj01xa9kOR6Yl5kO3 mdDno87EL19lFbcaYm0Iez0AJUjqEQXef6XBm/9LGenFkDVmUe+ZFsDiOGzJ9JS0HYss VrMQ== 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=Uda0BYbJVoTuTwNNY7AOLN3Ws2nDNFJh2pBEF7+Q5IA=; b=r9R4tblcDby7NZSZ5EcXO/OYJhSKKrzWFP0q61t3FEUe+URnY9lmaNtt4srkzUyyIJ dlUrVVaeSQfO2DicAHq73LccmoN3XSSx/aYELF0MqUlWAdx8TC39BGjFBN0R+5W1JuXl asW5rTixWbgtZv3TVX2yo/dTlTAralfne86SMbTarYhHBJAKe39niAgiHRtdFK68iGVB pR2hl1Hz+cusnIy7yg/jD7EFr0GrBfpfqAs1h6wy7TLTW1IN2j/StOOiss3FM3lIfZkT Lo86k1iqD57Xg6ZHFFnMXlQ+puQ+zD+Udct8B+Lc1Te5w6QkVvyaoRvuhHNRKDqnMHOG WYKA== X-Gm-Message-State: AODbwcAmaJ14xLM8PWnS+NKbjo64mgabc3moSddxm469XWp+2bmj0FY9 LLMX1VPPO5uJqncxXXTCxLRYflcwttew X-Received: by 10.99.165.29 with SMTP id n29mr42270630pgf.233.1496992653573; Fri, 09 Jun 2017 00:17:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.162.5 with HTTP; Fri, 9 Jun 2017 00:17:33 -0700 (PDT) From: blubee blubeeme Date: Fri, 9 Jun 2017 15:17:33 +0800 Message-ID: Subject: xsltproc outputting nothing. To: gnome@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2017 07:17:34 -0000 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