PageSourceSearch

https://mp0373-lmsxi.vercel.app/assets/js/cd092646.7803d7a4.js

js mp0373-lmsxi.vercel.app collected 2026-10-03 07:20:58 UTC 6,159 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkacceso_datos=self.webpackChunkacceso_datos||[]).push([[5025],{33604:(n,e,a)=>{a.r(e),a.d(e,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>r,metadata:()=>t,toc:()=>c});var s=a(74848),i=a(28453);const r={},o="Privadas",t={id:"unidades/04/contenidos/dtd/sintaxis/notaciones/tipos/system",title:"Privadas",description:"Las notaciones privadas son aquellas que no est\xe1n recogidas en ning\xfan est\xe1ndar p\xfablico.",source:"@site/docs/unidades/04/01-contenidos/02-dtd/02-sintaxis/05-notaciones/02-tipos/01-system.md",sourceDirName:"unidades/04/01-contenidos/02-dtd/02-sintaxis/05-notaciones/02-tipos",slug:"/unidades/04/contenidos/dtd/sintaxis/notaciones/tipos/system",permalink:"/docs/unidades/04/contenidos/dtd/sintaxis/notaciones/tipos/system",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"Unidad4",previous:{title:"Uso",permalink:"/docs/unidades/04/contenidos/dtd/sintaxis/notaciones/uso-notaciones"},next:{title:"P\xfablicas",permalink:"/docs/unidades/04/contenidos/dtd/sintaxis/notaciones/tipos/public"}},d={},c=[];function l(n){const e={a:"a",code:"code",h1:"h1",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...n.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e.header,{children:(0,s.jsx)(e.h1,{id:"privadas",children:"Privadas"})}),"\n",(0,s.jsx)(e.p,{children:"Las notaciones privadas son aquellas que no est\xe1n recogidas en ning\xfan est\xe1ndar p\xfablico."}),"\n",(0,s.jsxs)(e.p,{children:["Una ",(0,s.jsx)(e.strong,{children:"notaci\xf3n privada"})," tiene la siguiente sintaxis:"]}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{children:'<!NOTATION name SYSTEM "helper">\n'})}),"\n",(0,s.jsx)(e.p,{children:"Donde:"}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.code,{children:"name"})," es el ",(0,s.jsx)(e.strong,{children:"nombre de la notaci\xf3n"})," que queremos definir."]}),"\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.code,{children:"SYSTEM"})," hace referencia a que se trata de una notaci\xf3n privada."]}),"\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.code,{children:"helper"})," es el nombre del sistema encargado de procesar el tipo de fichero."]}),"\n"]}),"\n",(0,s.jsx)(e.p,{children:"Consideremos el sigiuente documento XML:"}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-xml",children:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<!DOCTYPE frutas [\n   <!ELEMENT frutas (fruta)*>\n   <!ELEMENT fruta EMPTY>\n   <!ATTLIST fruta foto ENTITY #REQUIRED>\n   <!ENTITY manzana SYSTEM "manzana.jpg" NDATA jpg>\n   <!ENTITY naranja SYSTEM "naranja.jpg" NDATA jpg>\n   <!NOTATION jpg SYSTEM "image/jpeg">\n]>\n<frutas>\n   <fruta foto="manzana"/>\n   <fruta foto="naranja"/>\n</frutas>\n'})}),"\n",(0,s.jsx)(e.p,{children:"En el documento anterior, se indica que:"}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsxs)(e.li,{children:["Los elementos ",(0,s.jsx)(e.code,{children:"fruta"})," que se escriban tienen que incluir obligatoriamente el ",(0,s.jsx)(e.strong,{children:"atributo"})," ",(0,s.jsx)(e.code,{children:"foto"}),", donde su ",(0,s.jsx)(e.strong,{children:"valor"})," ser\xe1 una ",(0,s.jsx)(e.strong,{children:"entidad"}),".","\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-xml",children:"<!ATTLIST fruta foto ENTITY #REQUIRED>\n"})}),"\n"]}),"\n",(0,s.jsxs)(e.li,{children:["Existen ",(0,s.jsx)(e.strong,{children:"dos entidades"})," (",(0,s.jsx)(e.code,{children:"manzana"})," y ",(0,s.jsx)(e.code,{children:"naranja"}),"), donde sus valores ser\xe1n cargados de ",(0,s.jsx)(e.strong,{children:"ficheros externos"})," (",(0,s.jsx)(e.code,{children:"manzana.jpg"})," y ",(0,s.jsx)(e.code,{children:"naranja.jpg"}),"). Estos ficheros no deben ser interpetadas por el procesador XML, sino por la aplicaci\xf3n definida en la ",(0,s.jsx)(e.strong,{children:"notaci\xf3n"})," con nombre ",(0,s.jsx)(e.code,{children:"jpg"}),".","\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-xml",children:'<!ENTITY manzana SYSTEM "manzana.jpg" NDATA jpg>\n<!ENTITY naranja SYSTEM "naranja.jpg" NDATA jpg>\n'})}),"\n"]}),"\n",(0,s.jsxs)(e.li,{children:["La notaci\xf3n ",(0,s.jsx)(e.code,{children:"jpg"})," indica que se debe utilizar la aplicaci\xf3n ",(0,s.jsx)(e.a,{href:"https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#jpeg_joint_photographic_experts_group_image",children:(0,s.jsx)(e.code,{children:"image/jpeg"})}
1)," para interpretar correctamente los ficheros vinculados a esta notaci\xf3n.","\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-xml",children:'<!NOTATION jpg SYSTEM "image/jpeg">\n'})}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(e.p,{children:["Si queremos ser m\xe1s espec\xedficos, podemos especificar la ruta del programa a utilizar. Por ejemplo, si en el sistema existe un programa capaz de procesar im\xe1genes JPG, llamado ",(0,s.jsx)(e.code,{children:"jpg-viewer.exe"})," y ubicando dentro del directorio ",(0,s.jsx)(e.code,{children:"apps"}),", tambi\xe9n se podr\xeda escribir:"]}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-xml",metastring:"{8}",children:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<!DOCTYPE frutas [\n   <!ELEMENT frutas (fruta)*>\n   <!ELEMENT fruta EMPTY>\n   <!ATTLIST fruta foto ENTITY #REQUIRED>\n   <!ENTITY manzana SYSTEM "manzana.jpg" NDATA jpg>\n   <!ENTITY naranja SYSTEM "naranja.jpg" NDATA jpg>\n   <!NOTATION jpg SYSTEM "apps/jpg-viewer.exe">\n]>\n<frutas>\n   <fruta foto="manzana"/>\n   <fruta foto="naranja"/>\n</frutas>\n'})})]})}function p(n={}){const{wrapper:e}={...(0,i.R)(),...n.components};return e?(0,s.jsx)(e,{...n,children:(0,s.jsx)(l,{...n})}):l(n)}},28453:(n,e,a)=>{a.d(e,{R:()=>o,x:()=>t});var s=a(96540);const i={},r=s.createContext(i);function o(n){const e=s.useContext(r);return s.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function t(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(i):n.components||i:o(n.components),s.createElement(r.Provider,{value:e},n.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.