mxl-compile

Convert compact JSON layouts into MXL Template.xml for 1C tabular documents.

413|90|Updated Aug 31, 2025
One-click install
npx skills add https://github.com/comol/cursor_rules_1c --skill mxl-compile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mxl-compile
Source: https://github.com/comol/cursor_rules_1c/tree/main/.cursor/source/mxl-compile
Command: npx skills add https://github.com/comol/cursor_rules_1c --skill mxl-compile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Этот навык упрощает создание MXL-шаблонов для табличных документов 1С, автоматически конвертируя компактное JSON-определение в корректный Template.xml.

Core Features & Use Cases

  • Преобразование DSL JSON в структурированный MXL, включая области, строки, ячейки и объединения.
  • Поддержка настроек стилей и шрифтов, цветов и выравниваний для точного соответствия требованиям документа.
  • Использование в сценариях проектирования форм и шаблонов табличных документов, где требуется воспроизводимый макет.

Quick Start

Поместите JSON-определение макета и запустите mxl-compile с указанием путей к JSON и выходному Template.xml.

Frequently Asked Questions about mxl-compile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a 1C MXL template from a JSON file?

To generate a 1C MXL template from a JSON file, you provide a compact JSON layout containing columns and areas to a PowerShell script, which converts it into a valid Template.xml for tabular documents.

Can I define page sizes and fonts for 1C tabular documents using JSON?

Yes, you can define page sizes and fonts for 1C tabular documents using a JSON DSL definition, which the compiler translates into structured MXL output with specific style and cell configurations.

What is the best way to automate MXL template creation for 1C?

The best way to automate MXL template creation for 1C is using a JSON DSL definition processed by a PowerShell script, ensuring reproducible layouts without manual XML editing.

Does this MXL compiler require any external dependencies to run?

No, the MXL compiler requires no external dependencies to run, utilizing only standard PowerShell scripts to transform your JSON definitions into the final Template.xml output.

How to convert a JSON layout into a Template.xml for 1C?

You convert a JSON layout into a Template.xml for 1C by running the provided PowerShell script with specified input and output paths, transforming DSL definitions into structured MXL areas and cells.

Are there limitations when converting JSON to MXL templates for 1C?

Limitations when converting JSON to MXL templates involve relying entirely on the DSL schema's accuracy for areas, rows, and cell merges, as the PowerShell script directly maps these JSON definitions to XML.